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></noscript>
<!-- End of StatCounter Code -->
Thanks, in advance.
Carl

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/

Similar Messages

  • Adding Statcounter code with HTML Snippet

    On an earlier thread, someone posted a message that they could add the Statcounter code using an HTML Snippet. Does anyone know how to do that (and make sure it gets put in the right location)?
    Thanks,

    You can add statcounter using HTML Snippet.
    but if you need statcounter to track different pages then HTML Snippet will give you bad results.
    Because when you add statcounter code or any code for that matter, iweb adds the code to another page aka widget(#)_markup.html and links these pages to you target pages by way of iframe element. (unless iweb'09 does thing differently, but I doubt it)
    example: let say you have twenty pages and add statcounter to each of them, you will see the results point to widget(#)_markup pages and not your page URL.
    You came get away with all that if you know javascript (statcounter code is javascript).
    I've been doing this for years, here is my example: http://home.cyclosaurus.com/Welcome.html
    scroll all the way to the bottom, see that iweb look-a-like hit counter? it's a statcounter!
    So, how are you with javascript?

  • Please help me install StatCounter code

    I registered with StatCounter and got the code. I went to iweb, made a text box, positioned it beneath my Blogline Blogroll, typed in place holder text, published, synced my iDisk, used MassReplaceIt to substitute the placeholder code for the StatCounter generated code, resynced, and it came up weird at the bottom of my web page.
    http://web.mac.com/knittsings/iWeb/knittsings/knittsings/knittsings.html
    I have successfully used the above approach to add Blog Ring code as well as the Bloglines Blogroll code.
    What am I not getting about StatCounter? I'm also confused why it is dumping itself down to the bottom of the page when the text box in iWeb is directly below my Blog roll.
    Thanks,
    Kathryn

    okay, perhaps I am playing with the big kids and I should go home! This is what I am doing:
    In Taco (downloaded as per discussion group) I open File/Open/iDisk/Web/Sites/iWeb/ClassicQuiltDesigns/Welcome.html
    Then I paste my statcounter code directly in the text I find there after <body> and before </body>.
    I did it on each of my three pages. Then I publish all.
    I did download massreplaceit but I'm not sure how to use it differently.
    Perhaps I should yell uncle. I'm not sure my itty bitty website is worth this.
    http://web.mac.com/nancyjane2/iWeb/ClassicQuiltDesigns/Welcome.html
    by any chance would the fact that I purchased the name ClassicQuiltDesigns.com from "GoDaddy" have anything to do with my problem?
    if anyone has the patience to continue to help me I'll be very happy. If not, I understand!!
    oh, and by the way, I wonder why/how I have notepad if it is a pc thing
    thanks again, njw2
    I think I need the statcounter for dummies edition.
    http://www.varkgirl.com/Varkgirl/Selective%20Statcounter.html
    Forget notepad (isn't that a PC thing?) - Get massreplaceit
    http://www.hexmonkeysoftware.com

  • Retain Statcounter Code while uploading

    Every time I update my pages and upload them, the Statcounter Code gets erased. I then have to add it manually, using TacoEdit. Surely there must be a way around this.
    Thanks!
    Geert
    www.geertvanderkolk.com
    iMac   Mac OS X (10.4.9)  

    Geert:
    Welcome to the Apple Discussions. No, there's no way to keep in the newly published page. That's why many users put in a text box with "StatCounter" on the page where they want the counter to be located so they can easily find the text after republishing and replace it with the code. I keep a copy of the html file for each page that has the code on it so I can cut and paste into the new version.
    Do you Twango?
    MBP 2.16Ghz; G5 Dual Core 2GHz, 2G RAM ea, 250G HD; G4 Dual 1Ghz, 1.5G RAM;   Mac OS X (10.4.10)   22" LCD, 710G FW HDs, Canon: SD700IS/i850/LIDE 50, Epson R200, 30G iPod, 2G Nano

  • How can I code to play audio continuously from page to page in iBooks for reflow ePub

    Hi,
    I have tried and successfully completed the iBooks ambient soundtrack option in Fixed Layout ePub. It works fine.
    But while trying the same in Reflow ePub, it is not working in iPad iBooks. I have latest iBooks version and latest iOS version in my iPad.
    Please let me know how can I code to play audio continuously from page to page in iBooks for reflow ePub?
    Thanks,
    Sundaram

    As soon as the user turns to the next page, the audio stops.
    That's how it works in all cases.
    the book is a read aloud book.
    See the 'How-To Read Aloud' section in iBA Tips and Tricks 01

  • What is the code at the top of new pages?

    DW inserts this code at the top of new pages:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    Any reason to have it?
    Most of my inner pages of my site do not have it actually.

    these page are not that critical -- my more important sites are now on flash.
    Goodness - that's pretty risky.  You know all the reasons one wouldn't want to do that, right?
    Is it worth time to insert this in several hundred pages?
    It's up to you.  I wouldn't leave a page without a doctype on a commercial site, but that's me.  This is entirely your decision....
    some of my pages have this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    The new pages insert this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    The doctype should be consistent with the code used on the page.  If you use an XHTML doctype, you would want to use XHTML tag syntax, not HTML tag syntax.  You can easily change from one (or none) to the other using DW's menu option - FILE | Convert > YOUR DOCTYPE "FLAVOR" HERE.

  • Getting a printed QR code to point to a specific page within my mobile site?

    Hi All,
    I'm createing a printed marketing campaign for my business and I want to direct a QR code to a page within my mobile muse site (not the home page).
    I can change the url of the QR code but I'm unsure what the url path should be?
    The page is called QR, so I thought that www.wearebrightlights.com/QR would work but I get a 404 error.
    Here are the pages below. The QR code should link to the red page on the right, called QR.
    Any suggestions?
    Thanks,
    Ben

    That file will process a form that is submitted.  If your contact page uses that file then the filename should appear somewhere in the contact page code.

  • HT1212 I want to eliminate putting in a code to get to my home page.

    I want to eliminate having to enter a four digit code to get to my home page on my Iphone.

    Settings - General - Passcode Lock (turn it off)

  • How I post HTML and Video embed code from my component to landing page?

    Hi there,
    How I post HTML and Video embed code from my component to landing page?
    My Components are developed in NODEJS and PHP.
    Thanks

    Answered here http://topliners.eloqua.com/thread/7944

  • Can I code in EL expression on the page?

    Hi,
    I wonder to know can I code in EL expression on the page? e.g: There is an inputtext on the page, the value property is something like #{bindings.EmployeeId.inputValue}, and if this EL expression values 1, the value of this inputtext will be "The first person", otherwise as "Others". How can I achieve this?
    Thanx, best wishes!
    Eleven.Xu

    Please refer
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/jstl_el_adf/jstl_el_adf.html
    http://blogs.oracle.com/DavidGiammona/2008/11/expression_language_or.html

  • How do I move analytics' script (code) to the bottom of the page?

    I use Google Analytics and Statcounter to track Web site usage. I also track document (PDF, Word, etc) downloads.
    I can place the Analytics scripts in the head of the HTML using page properties or master page properties, but having the script in the head of the document can prevent the script in Statcounter from tracking downloads.the script must be at the bottom of the HTML near the end </body> tag.
    Any suggestions appreciated.
    C

    Hi,
    You can try Exporting your site as HTML and then manually open the Html page of your website and add the code in that.
    Regards,
    Rohit Nair

  • Link to HTML Snippet rather than Page

    I am uploading a 'Video' page with all of the videos embedding from Vimeo.com using HTML Snippets.
    I only want to have one 'featured' video and then thumbnails below of the other videos. The only way I can think move the thumbnail videos to the 'featured' spot is by copying/pasting the page, switching the embed code, and making visitors reload the entire page.
    Simply put, I would like to know if there is a way (or widget) which would allow you to switch the code on an HTML snipped via a hyperlink.
    Hope this makes sense & thanks in advance,
    Alex

    Hello Alex,
    Alex0liver wrote:
    http://vimeo.com/channels/hpx170
    I've had no experience with Vimeo but it seems this is your gallery there, correct ?
    If so, you can show only that gallery with iFrames :
    <iframe name="my vimeo"
    src="http://vimeo.com/channels/hpx170"
    onload="window.frames yyy'my vimeo'qqq.scrollTo(23,660)"
    style="width:930px; height:220px;
    border-width:2px;
    border-color:#339900;
    border-style:solid;"
    scrolling="no" >
    </iframe>
    replace qqq with ]
    and yyy with [
    the brackets are special mark up codes here to include a link... so can't have them in the iFrame sample code here.
    scrollTo(23,660) from left, top is how to position the content.
    Note : the gallery is 930 px long so your page that contains the iFrame must be a bit longer.
    Kind regards,
    Leo

  • Can i enter php code into html snippets?

    I am an sql/php newbie ... and have my site hosted by a company which offers me sql and php hosting (unlike dotmac I understand) ...
    I have created an sql database on their server and have written a page in html/php to display the results of a simple search ... can I insert this into iweb page using snippet - as I have tried and get a page cannot be displayed message where the snippet box would be on the webpage. (you can see this by clicking on the guestbook link on www.antandcleopuss.com)
    I am wondering if iweb can insert php or if it is only html?
    If iweb doesn't like php inserts then I will have to export my pages to a folder, then open them in a text editor to insert the php there?? (seems like an awfully long way round)
    Any help gratefully received
    ant

    You can add PHP code AFTER publishing the webpage.
    Then change the extension to .php.
    Here's a page the explains how to do it. It's not PHP specific but the routine is the same.
    http://web.mac.com/wyodor/Ajax/
    Of course you can add a PHP page to the HTML Snippet with an iframe.

  • Help on jsp code to display data in same page using using ajax ?

    Is there any jsp code to display in same page using using ajax ?

    Re: need help on how to display data in same jsp page. Locking.

  • On Firefox 3.6.x on Mac and Windows, Google Analytics tracking code leads to an Error 400 page

    Our business sent out an email campaign that has several links containing Google Analytics tracking code in the URL.
    In the tracking code, which is automatically generated via the email campaign software, is an em-dash. The URLs works in every browser (Google Chrome, Safari, Windows) and in older versions of FireFox. They do not work in 3.6.x versions of FireFox in both Mac and Windows.
    As a result, when customers click on a link in the email, they get a page that says "HTTP Error 400 - request is badly formed" because FireFox interprets the em-dash as garbage.
    Once this error occurs none of the pages in the site can be accessed unless a specific cookie is removed.
    Seeing how many people do not know how to clear cookies - it is especially cryptic in the Windows version of FF 3.6.10 - what are the chances that there will be a release of Firefox to remedy this problem? And is there anything else that could be done?

    Weird. We are having this same problem as well. Ours happens in Chrome as well. What I have figured out is -at least for us - is its somethign to do with the Google Analytics tracking cookie on our site. If I go to cookies and then delete the _umtz cookie, the site will load fine. In the time being I have set "pageTracker._setCampaignTrack(false); " in our tracking code to keep the script from dropping the cookie in users browsers.

Maybe you are looking for

  • Antworten bei PDF-Formularen in Tabelle zusammenführen

    Acrobat Pro 9 Problem:<br /><br />Bei dem Einlesen der Antworten (als Anhang von Mails) wird immer nur die aktuelle Datei in die Tabelle geschrieben, es erscheint also immer nur ein Datensatz. <br /><br />Beim Klick auf den Mail-Anhang <Dateiname>_ve

  • Color scanning problem with Photosmart 7520

    I can not get my new Photosmart 7520 to scan in color.  The device scans to PDF, sending the file directly to my Mac computer but when I open the file the document is in b/w. Everything else about the process works fine. What should I do to capture c

  • How can you do this effect in Premiere?

    Hi The cycling team Saxo Tinkoff have produced some very cool videoes. A lot of the effects, I can figure out how to do, but one is puzzling me.  The effect can be seen in the video about Roman Kreuziger here at 6 seconds and 55 seconds: http://www.s

  • Automated email to client

    dear all, we have a requirement ... the requirement is about financial department. we have received post dated cheque from client , let say '10-apr-10'. and we want to inform to particular client before 7 days that their cheque date is coming please

  • Return calls without "EditDial" at directories received/missed calls

    Dear sir, Everytime we retrieve missed call or received call from "directories" softkey at ip phone, we will need to "EditDial" to add 9 in front of all number for calling out. Any way to automatically add a prefix 9 to it everytime we return call at