|
Azounstone
[ # ]
March 08, 2012 05:44AM
|
Registered: 1 year ago Posts: 13 |
<!-- START CODE - Clicky -->
<script type="text/javascript">
var clicky_site_ids = clicky_site_ids || [];
clicky_site_ids.push(xxxxxxxx);
(function() {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = '//static.getclicky.com/js';
( document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] ).appendChild( s );
})();
var clicky_custom = {};
clicky_custom.session = {
username: "{$this->memberData['members_display_name']}",
group: "User"
};
</script>
<!-- END CODE - Clicky -->
I am using this code for Piwik:
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://domain.com/piwik/" : "http://domain.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://domain.com/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
If any one could adjust the Piwik code to include the relevant changes I would be most appreciative!
|
Azounstone
[ # ]
March 08, 2012 05:17PM
|
Registered: 1 year ago Posts: 13 |
piwikTracker.setCustomVariable(1, "username", "{$this->memberData['members_display_name']}" );
// this is before the call to trackPageView()
|
Azounstone
[ # ]
March 08, 2012 08:22PM
|
Registered: 1 year ago Posts: 13 |
|
Azounstone
[ # ]
March 08, 2012 11:08PM
|
Registered: 1 year ago Posts: 13 |
|
Azounstone
[ # ]
March 09, 2012 03:15AM
|
Registered: 1 year ago Posts: 13 |
|
Azounstone
[ # ]
March 09, 2012 03:17AM
|
Registered: 1 year ago Posts: 13 |
Free Forum support is provided by the Piwik Community.
If you require any urgent or professional help, contact Piwik Professional Services team!