Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Statcounter?
I'm using statcounter to monitor my traffic on the rest of my site. Is there a way to use this on my Vanilla pages as well?
http://www.mormonmomma.com/board
0
This discussion has been closed.
Comments
Here you go, just for you.
Statcounter 1.0
Just replace the code in the default.php with your statcounter account code for your project, and it should work without a hitch.
There are two counters - Slimstat and Shortstat - which I understand do it all on your own computer, which I like better. You will probably want to stay with what you already have working, but there is discussion on these two at http://lussumo.com/community/discussion/2688/2/shortstat-13
Hope this is all correct - if not, someone will correct me : )
@Alison - Do you see where it says and down below in the example code? You'll have to create or retrieve your code from your Statcounter account and place it exactly in the same spot. Then you'll save that edited file and upload the directory to your_vanilla_path/extensions/ directory.
if(in_array($Context->SelfUrl, array("index.php", "categories.php", "discussions.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))){ $statcounter = <<< ENDCODE <div class="statcode"> <center> <!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=1721070; var sc_invisible=1; var sc_partition=16; var sc_security="e8628c17"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c17.statcounter.com/counter.php?sc_project=1721070&java=0&security=e8628c17&invisible=1" alt="hit counter code" border="0"></a> </noscript> <!-- End of StatCounter Code --> </center> </div> ENDCODE; $Panel->AddString($statcounter,150); } ?>
If you choose in Statcounter for the counter to be invisible you actually won't see anything in the sidepanel. But if you choose to display a counter, that counter should show up at the bottom of the panel. It won't display below the copyright info though. But I think somewhere towards the bottom is a good place for it.
Let me know if you need any more help.