Page 1 of 1

Where do I put statcounter code?

Posted: Wed Feb 09, 2011 10:04 am
by accampbell
I found a post here saying statcounter code should go in templates/bulletproof/index.tpl. I don't understand the syntax of this file very well. Whre should the code go - at the end?

Re: Where do I put statcounter code?

Posted: Wed Feb 09, 2011 10:18 am
by Timbalu
Hi Anthony

Yes, the index is ok for that.
But which template do you use? Bulletproof? Take the index of you template.
Somewhere in the footer section would be a choice, or with a nugget inside of the sidebar.

Ian

Re: Where do I put statcounter code?

Posted: Wed Feb 09, 2011 11:08 am
by kleinerChemiker
I think the Bulletproof theme has an option for counters in the setup.

Re: Where do I put statcounter code?

Posted: Wed Feb 09, 2011 3:15 pm
by accampbell
Thanks to both for replies. In the end I put the code at the bottom of templates/default/index.tpl and that is working.

Re: Where do I put statcounter code?

Posted: Wed Feb 09, 2011 4:08 pm
by yellowled
accampbell wrote:Whre should the code go - at the end?
In fact, it depends a little on the exact statcounter code, but in most of the case, you should be fine using the theme option recommended here.

The huge advantage of using the theme option is that it is safe in case of an update. Code in your index.tpl will be overwritten by the next update to S9y and/or BP, code inserted using the theme option box will still work. Of course, this does not apply if you're working with a copy of BP in a seperate directory.

YL