![]() |
Statcounter Tracking / Plugin
Hello,
I have been trying to find an answer to this here and on the .com site, but cannot seem to find it. Everyone wants the statcounter code in the templates, but I would like to create a plugin for it. (Why? Because I have multiple templates and do not want to have to put it in all the footers) With that said.. How can I put <script> tags in a plugin? The counter doesn't appear to be tracking when it is put in there 'as is'. The code is this: Code:
<!-- Start of StatCounter Code --> I also tried: $output = '{code above}'; But didn't notice any tracking. Any help would be much appreciated! :) |
you need to put the javascript in a template and call the template with your plugin code.
for example create a template called mystatcounter, dump your block of code in there and save it. Then create a statcounter plugin with something like : PHP Code:
|
All times are GMT. The time now is 11:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|