Jump to content
thirty bees forum

StatCounter


AndyC

Recommended Posts

Hi Yet again

Can anyone help with my stat counter code...

The instructions are to place it just before the header on the footer.tpl. I have done that and it doesn't work. I've even gone as far as placing it in the header , global and various other places and it just doesn't work

I have even gone as far as placing literal tags around it as 1 post suggested ,still no go ...

My code looks something like this

<!-- Default Statcounter code for my website
https://www.my website.co.uk,  www.mywebsite.co.uk -->
<script type="text/javascript">
var sc_project=00000000;
var sc_invisible=1;
var sc_security="00000000";
var sc_https=1;
</script>
<script type="text/javascript"
async></script>
<noscript><div class="statcounter"><a title="web counter"
href="https://statcounter.com/" target="_blank"><img
class="statcounter"
src="https://c.statcounter.com/041095/0/099ef/1/"
alt="web counter"></a></div></noscript>
<!-- End of Statcounter Code -->

 

tia

Link to comment
Share on other sites

Well the {literal}{/literal} stuff should actually help. Have you checked what is the output on the browser? Does the html code have your js code?

In general I am a bit confused, what this is. Is this a counter how many visits your shop has? IMHO this is very outdated... I used this as a kid in the early 2000 🙂

Link to comment
Share on other sites

lol... Yes it is , the code hasn't changed since I started using it in 2011 ,but it shows where people are visiting ,pages visited etc ,much like google analytics except it is almost instant  

Edited by AndyC
Link to comment
Share on other sites

10 hours ago, AndyC said:

<!-- Default Statcounter code for my website
https://www.my website.co.uk,  www.mywebsite.co.uk -->
<script type="text/javascript">
var sc_project=00000000;
var sc_invisible=1;
var sc_security="00000000";
var sc_https=1;
</script>

<script type="text/javascript"
async>
</script>
<noscript><div class="statcounter"><a title="web counter"
href="https://statcounter.com/" target="_blank"><img
class="statcounter"
src="https://c.statcounter.com/041095/0/099ef/1/"
alt="web counter"></a></div></noscript>
<!-- End of Statcounter Code -->

I think the problem is in the highlighted section -- there's no src attribute in this <script> tag, so the whole snippet doesn't do anything. It just declares few variables, but doesn't utilize them in any way

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...