Footer_script Statcounter tracking code

  • Hello,


    I have installed the tracking code from Statcounter (as attached) in the footer_script and it counts just fine. I am using ZP12, business.


    The problem is that both when I install code for a visible and for an invisible counter these 3 characters are shown in the lower left corner ");
    The visible counter is never shown.
    Do you have any idea why this happens please?


    Thank you for your help
    Kind regrds Vibeke

  • Using Firefox Console (not Google Chrome this time), it shows an unterminated string literal in this code:

    JavaScript
    var sc_project=10463975;var sc_invisible=0;var sc_security="3b4c211e";var scJsHost=(("https:"==document.location.protocol)?"https://secure.":"http://www.");document.write("<script type='text/javascript' src='"+scJsHost+"statcounter.com/counter/counter.js'>

    Looking more closely, it seems that after counter.js'> there is something missing, I guess it should read something like:

    JavaScript
    counter.js'></script>");
  • I added that and tried some other things too, but it does not help. I probably do not know well enough how to edit the java script. Maybe you would be kind enough to write the whole line for me?


    In the html validation I get this message
    [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.pngLine 1, Column 15547: Stray end tag script.
    …unter/counter.js'></script>");</script> <noscript> <div class="statcounter"><a…

  • Hi Uwe,


    I put code from 'HITWEBCOUNTER' before the Statcounter code and it counts and shows ok. The funny thing is that the fault "Stray end tag script" has now disappeared in the W3 html validation. I do not understand why.
    It's not a pretty solution but at least the customer has a counter to look at :-)