Jump to content
thirty bees forum

Recommended Posts

Posted

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

Posted

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 🙂

Posted (edited)

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
Posted
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

Posted
On 6/17/2019 at 2:33 PM, AndyC said:

I started using it in 2011

A Lot has changed in 8 years.  That is like Ancient History in IT years...😎

  • Haha 1
Posted

Sorry, 
I also consider this function to be totally obsolete. the customers / visitors of the page / shops do not have to see that.
This may negatively affect actual orders.

Posted

Hi

Customers don't see it at all and is similar to google analytics . By showing where customers come from who is viewing what . What screens they are using etc etc A lot of useful info

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...