Google Analytics - Getting error code when I try to post script

Highlighted
New Member
2 0 0

Why am I getting this error when I try to post a script in the google analytics box? 'Analytics snippet does not look valid (UA-xxxx-x)'."

 

What can I do to solve this? 

 

Thanks 

0 Likes
Highlighted
Community Moderator
Community Moderator
3395 253 613

Hi Jenny, 

Nick here from Shopify. 

From what you have said it sounds like the error is because the Google Analytics snippet of code you have put in is either not valid or correct. Your best bet here might be to double check it is correct and maybe repeat the process to be sure. I took a look for you and found the guide Shopify has on this going through all the steps on this which you can see here

Hopefully the guide can help you and get this right, but if you try again and it doesn't work, don't hesitate to let me know in a reply and we can take a closer look into why this might be happening. 

All the best, Nick

Nick | Community Moderator @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes
Highlighted
New Member
5 0 0

Hi, I followed the guide that you have posted. Then also I get same error. How will I solve this issue?

0 Likes
Highlighted
New Member
1 0 0

Have you resolved this issue or received a response? I'm having the same challenge. Thanks! 

0 Likes
Highlighted
New Member
1 0 0

Go back to google analytics(GA) click the "?"(help button) in the top right hand corner, click get started with analytics. Even if you have created one before, just create a new property by following the directions on there and you will get a new code to enter in the box on shopify.

0 Likes
Highlighted
Excursionist
12 0 3

i had the same issue.

I created a new property and selected web only (previously i selected both app and web).

this time the jtag format included US-XXXX-X vs the previous one was G-XXXX)

 

i hope this helps.

Goodluck

Highlighted
New Member
2 0 1

Hi all, you have to make sure you selected "Web" as your property instead of "Web and App", hope that helps

Highlighted
New Member
1 0 0

Hi Nick,

I am having the same issue and I have retried several times. I even re-registered in GA to get new code but still got he same error message.

Thanks,

Don

Don't know why I didn't see it before but I just saw one of the other posters mentioned that it has to be Web only and noy web + apps. It worked just fine!

0 Likes
Highlighted
New Member
1 0 0

Hi ! I am getting the same error!

I have been watching 2 youtube videos additionally to reading carefully the link you share above and it still does not work. Could you have a look for me too please? Thank  you

0 Likes
Highlighted
So, firstly why google analytics is important for website. It is important for website because it analysis whole website traffic like how much user is available.
 
And even google analytics shows user's location, language, browser, devices.
 
google analytics also shows that is user is new or old.
 
And also show what type of traffic comes in website like direct, organic, returning, paid or refferal.
 
So, after learning about google analytics Now, we start how to create google analytics account.
So follow these simple steps here
 
How to see and add tracking code and I'd
First step login to google analytics
then go to admin where you see tracking code then copy code paste in your website
0 Likes