kmotoyama
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Membership] Member statisticsHello, ctuxboy
Thank you for replying.
For my site, it was not worked by your original code. So I customized the code.
The following is my customized code based on your code.<!-- Piwik trackingcode --> <?php $auth = SwpmAuth::get_instance(); $user_data = (array) $auth->userData; $user_data['membership_level_alias'] = $auth->get('alias'); extract($user_data, EXTR_SKIP); ?> <script type="text/javascript"> var _paq = _paq || []; _paq.push(['setCustomVariable','1','Members','<?php echo $user_name ?>', 'visit']); /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://example.jp/piwik/"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', '2']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Piwik Code -->
I removed the plugin “WP-piwik”, and added the code in themes header.php, between the <head>…</head> tags.
Now I can see the member statistics ( Piwik -> Visitors -> Custom variables / Piwik -> Visitors -> VisitorLogs).
Your code is great hint for me.
Thank you again!
KmotoyamaForum: Plugins
In reply to: [Simple Membership] Member statisticsHello,ctuxboy
Your solution is exactly what I have been looking for.
I would like to know more detail.
I am using WP-Piwik.
Is this possible to do it by using WP-Piwik?
If so, please give me advice how to do it.Thank you
Kmotoyama
Thank you for message and sending updated code files.
I tested them. It is working well!
Thank you for resolving the issues.
Thank you again!
Kmotoyama
Hello,
Thank you for your support!
Thank you again.
kmotoyamaDear PressTigers,
Thank you for quick replying again!
The followings are textual strings;
1)English strings as title in each field -> they are added perfectly
name >text field
furigana >text field
Japanese postal code >text field
Prefecture >text field
City >text field
Street >text field
Bldg. >text field
e-mail >e-mail address field2)Japanease strings as title in each field -> some of them are added
名前 >text field
フリガナ >text field
郵便番号 >text field
都道府県 >text field
市区町村 >text field
番地以降 >text field
建物名、部屋番号 >text field
メールアドレス >e-mail address fieldIn addition, job board -> settings -> job job_features also happens same error.
When I types the following Japanese String in feature and click “save and change”, some of them are added but not all of them.
おすすめのポイント
仕事内容
求める人材
給与
勤務地
勤務時間
雇用?契約形態
募集背景
待遇?福利厚生
休日?休暇
選考プロセスRegards,
KmotoyamaThank you for quick reply.
It is very helpful.
>Could you please share the non-added Japnese characters/strings?
I attached the pdf file.
https://docdro.id/7icIo8RIs this PDF file(including non-added Japnese characters/strings) useful for your test?
Regards,
Kmotoyama