x

Google Analytics not working, please help

Hi all,

I have been trying to set up Google Analytics and it doesnt seem to be working. I have copied the Google Analytic tracking ID and also the code into the footer and header section in the SEO settings but still not luck, I have even tried to create new Google Analytic accounts and deteled the old ones, but nothing seems to be working?

Can anyone help?

Thanks 

3,342 Views
Message 1 of 20
Report
19 REPLIES 19

@hangryblog

Website url?

3,333 Views
Message 2 of 20
Report

3,319 Views
Message 2 of 20
Report
Square

I think you might be using the wrong code for analytics, @hangryblog. Make sure you use code that looks like the code shown in our guide here:

http://hc.weebly.com/hc/en-us/articles/201979698-Google-Analytics

3,265 Views
Message 2 of 20
Report

Thank you for your help! I've got it working now. 

3,203 Views
Message 2 of 20
Report
Square

Awesome! Glad to hear that!

3,201 Views
Message 2 of 20
Report

I have been facing the same issue. It's been two weeks, can't get Google Analytics working.

Site: www.scrummastered.com

I copied the code as stated in Google Analytics Admin panel under Tracking Info -> Tracking code:

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=hereIsMyTrackingCode"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'hereIsMyTrackingCode');
</script>

2,967 Views
Message 2 of 20
Report
Square

Hi @daria2b. That doesn't look like the proper code. If you check out this article it will give you exact instructions on which code to use. The code should look like this:

image

https://hc.weebly.com/hc/en-us/articles/201979698-Google-Analytics

2,964 Views
Message 2 of 20
Report

The code started to work after I used a program to remove white space (from another post I found on the forum, don't have the link now).

The other code is actually from Google Tag Manager which is a different thing. After all, I copied exactly the code that Google provides in the Google Analytics console that's why I was confused about why it doesn't work.

2,960 Views
Message 2 of 20
Report
Square

Glad to hear it's working for you. I had something similar happen once in the past with some scripting code I copied from somewhere. It took me a while to figure out that one of the new lines had some white space with it.

2,958 Views
Message 2 of 20
Report

I also have a problem with Google Analytics. Google Analytics doesn't work. I added the code Google says I should use. 

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-120806238-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-120806238-1');
</script>

If I use this code in the header the design of my site doesn't work anymore and Analytics stil doesn't work. 

Maybe I should use the other code mentioned on this page, but this code I can't paste. I have to retype it. Is this the solution? I am stuck now. My site is worldcup18.nl 

1,721 Views
Message 2 of 20
Report
Square

From what you describe it sounds like broken code from a bad paste, though your code looks okay and your site loads fine for me. Are you still having trouble since you first posted this?

1,714 Views
Message 2 of 20
Report

Nevermind, solved

1,609 Views
Message 2 of 20
Report

I am also having problems installing GA. I think I have followed the directions but to no avail.

The site is here

I did not set up the site but only recently have been brought in to try and improve it.

TIA!

1,597 Views
Message 2 of 20
Report
Square

Do you see any errors in the Google dashboard?

1,595 Views
Message 2 of 20
Report

Hi,  I am facing a similar issue. Can you explain in detail how did you fix your Google Analytics

1,584 Views
Message 2 of 20
Report
Square

Hi @Wuser What is the name of your site and the code you are using? 

1,577 Views
Message 2 of 20
Report

Hi there, I was able to resolve this issue. Now, I can get Google Analytics work on my Weebly site. I wrote down the steps here: http://bit.ly/2UyoqWs 

thanks.

1,572 Views
Message 2 of 20
Report
Square

Glad to hear you were able to sort it out and thanks for posting the info! Smiley Happy 

1,566 Views
Message 2 of 20
Report

This is great. Do you have this code as text or only as a photo? Do I really need to type the entire code, seems not so user friendly and prone to mistakes.

809 Views
Message 2 of 20
Report