Data Studio
2.1K members online now
2.1K members online now
Ask questions about Data Studio
Guide Me
star_border
Reply

What does "Missing analytics.js script" mean?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

When I use Google Analytics tag assistant I get an error message that says "Missing analytics.js script". But I can't find anything to tell me what this means or what I need to do about it. Can anyone help please?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Karen W
June

What does "Missing analytics.js script" mean?

Explorer ✭ ✭ ✭
# 6
Explorer ✭ ✭ ✭

Hi Karen,

 

This will depend on your web host, so if this isn't something your confident with it's probably best to ask them as a first port of call. I would ask them if they can make the code change, if they can't then look to disable Cloudflare.

 

Hope that helps,

Ben

View solution in original post

What does "Missing analytics.js script" mean?

Explorer ✭ ✭ ✭
# 2
Explorer ✭ ✭ ✭

Hi Karen,

 

This is the code you put into your website when you setup Google Analytics, this error is telling you that it can't detect it on your website. Are you able to share a link to your website so I can take a look at the code?

 

Ben

What does "Missing analytics.js script" mean?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi Ben, it is https://www.worldwidewriter.co.uk

 

Thanks, Karen 

What does "Missing analytics.js script" mean?

Explorer ✭ ✭ ✭
# 4
Explorer ✭ ✭ ✭

Hi Karen,

 

From what I've read, I believe the issue could be related to you running Cloudflare on the site too, take a look at the following link:

https://stackoverflow.com/questions/28209156/google-analytics-missing-analytics-js-script

 

And in particular:

 

This error is caused by Cloudflare as it implements rocketscript to speed up the web load speed. Disabling the cloudflare will fix this but you don't need to do that. There is simple code to make cloudflare ignore that particular javascript code. Simply Change

<script type="text/javascript">

to

<script type="text/javascript" data-cfasync="false">

This is most efficent way.

 

Hope that helps!

Ben

What does &quot;Missing analytics.js script&quot; mean?

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Hi Ben

 

Thanks for this, but I am a bit of a novice! Where would I find that bit of code?

 

Thanks,

 

Karen 

Marked as Best Answer.
Solution
Accepted by topic author Karen W
June

What does &quot;Missing analytics.js script&quot; mean?

Explorer ✭ ✭ ✭
# 6
Explorer ✭ ✭ ✭

Hi Karen,

 

This will depend on your web host, so if this isn't something your confident with it's probably best to ask them as a first port of call. I would ask them if they can make the code change, if they can't then look to disable Cloudflare.

 

Hope that helps,

Ben

What does &quot;Missing analytics.js script&quot; mean?

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭

Hi Ben

 

I'm a bit reluctant to disable Cloudflare as it's a way of speeding up my site. However I could try my site host.

 

thanks,

 

Karen 

What does &quot;Missing analytics.js script&quot; mean?

Explorer ✭ ✭ ✭
# 8
Explorer ✭ ✭ ✭

Yes I would agree, the link I shared earlier (posted again below) has a couple of options you or the host could try to fix without disabling.

 

https://stackoverflow.com/questions/28209156/google-analytics-missing-analytics-js-script

 

Best of luck getting this sorted,

Ben

What does &quot;Missing analytics.js script&quot; mean?

Visitor ✭ ✭ ✭
# 9
Visitor ✭ ✭ ✭

Thanks, I'll have a go! 

 

Karen 

What does &quot;Missing analytics.js script&quot; mean?

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭

Estou com esse mesmo problema em meu site: 

http://liksjeans.com.br/

 

Por favor, você pode colocar a resposta em português?