Statcounter code in a snippet on a page

Hi all

I copied the code that statcounter provided -- see below. Can I insert the code on a page as a snippet or do I have to open the file in text edit and apply the code to a placeholder? Also if the website has multiple pages and I want to track usage do I insert the code on each page or put a snippet on each?

<!-- Start of StatCounter Code -->
<script type="text/javascript">
sc_project=3688292;
sc_invisible=0;
sc_partition=44;
sc_security="0eb48cde";
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript>
User uploaded file
</noscript>
<!-- End of StatCounter Code -->




Thanks, in advance.

Carl

24 inch Alum iMac 2.8 GHz intel core 2 Duo with 2GB Ram, Mac OS X (10.5.2), Airport Express, 180 GB Maxtor external HD, Dell Latitude lap top Windows XP

Posted on May 10, 2008 4:43 PM

Reply
1 reply

May 12, 2008 5:36 AM in response to F. Carl McIvor1

Hi,

Putting the code on the page in an html snippet works fine.
You need to add the code to each page that you want to track statistics for; There are some options to generate code for a visible counter for your home page and invisible ones for the others, etc.

Or check out iTweak, a free app that will add stats counter code (& other stuff) to all your pages after publishing to your idisk. You'll have to run it each time you edit your pages: http://guimkie.com/projects/itweak/

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Statcounter code in a snippet on a page

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.