tpearl5
05-02-2012, 10:00 PM
Have you ever wanted to see whose threads get the most traffic? Well, this simple addition can make that happen.
Open SHOWTHREAD
Find
{vb:raw poll}
Add after:
<script type="text/javascript">
_gaq.push(['_setCustomVar', 1, 'Author', '{vb:raw threadinfo.postusername}',1]);
</script>
This is assuming that your Analytics code is in the header of your site
The report will be available in Google Analytics under Custom Variables.
Update 5/21/2012: 1.1 - changed added Google Analytics tag from memberaction_update to SHOWTHREAD so multi-page threads will be tracked. For example, if someone lands on page 3 of a thread, the author will still be tracked in Analytics.
Open SHOWTHREAD
Find
{vb:raw poll}
Add after:
<script type="text/javascript">
_gaq.push(['_setCustomVar', 1, 'Author', '{vb:raw threadinfo.postusername}',1]);
</script>
This is assuming that your Analytics code is in the header of your site
The report will be available in Google Analytics under Custom Variables.
Update 5/21/2012: 1.1 - changed added Google Analytics tag from memberaction_update to SHOWTHREAD so multi-page threads will be tracked. For example, if someone lands on page 3 of a thread, the author will still be tracked in Analytics.