- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Thank you for your help! I've got it working now.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Awesome! Glad to hear that!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- 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>
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
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:
https://hc.weebly.com/hc/en-us/articles/201979698-Google-Analytics
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- 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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
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?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
I am also having problems installing GA. I think I have followed the directions but to no avail.
I did not set up the site but only recently have been brought in to try and improve it.
TIA!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Do you see any errors in the Google dashboard?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I am facing a similar issue. Can you explain in detail how did you fix your Google Analytics?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Hi @Wuser What is the name of your site and the code you are using?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Glad to hear you were able to sort it out and thanks for posting the info!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report