As you know, Clicky Analytics has a feature called Custom Data Tracking that allows website owners to track users engagement by their username. This feature is accomplished by attaching the username and user e-mail address to a session when the visitor is logged in to the website.
To be able to track usernames on phpBB, you have to use a special tracking code and some custom data variables. To implement it in phpBB is quite easy, all you have to do is to copy the code below on your overall_footer.html file.
If you don’t have a clicky account, you can register for free on clicky.com:
Open styles/subsilver2/template/overall_footer.html or your styles/prosilver/template/overall_footer.html.
Before:
</body>
Replace sitecode with your Site ID and add this code:
<!-- IF S_USER_LOGGED_IN --> <script type="text/javascript"> var clicky_custom = {}; clicky_custom.session = { username: '{S_USERNAME}' }; </script> <!-- ENDIF --> <script type="text/javascript"> var clicky_site_ids = clicky_site_ids || []; clicky_site_ids.push(sitecode); (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 ); })(); </script>
Go to your phpBB Administration Panel and run Purge the Cache to activate the new settings.
After doing this MOD, Clicky Analytics will be able to attach phpBB usernames to each visit on your phpBB forum.