A snippet does not look valid (UA-xxxx-x)

SMB
New Member
1 0 0

I’m trying to connect google analytics to my Shopify account and keep getting an error error message of analytics snippet does not look valid (UA-xxxx-x). I have googled and tried everything and it’s still not working! Does anyone know how to fix this ?

 

thanks in advance

0 Likes
jimmychen
New Member
2 0 4

when you create site in google analytics   , you need to click "Universal Analytics" options,it will create "UA-xxx"

if no click the option ,default create "G-xxx"

CosmosCooking
New Member
1 0 0

this is also happening to me. Do you know where i can go to change that setting? i have tried to google everything but cannot find it at all.

0 Likes

It looks like it's not possible to change the setting. You'd need to create a new property. When creating the property, click on Show advanced options and enable Create a Universal Analytics property

image.png

I'm a software engineer. I make things happen automatically.
ChrisRobilliard
New Member
1 0 0

Same happened to me.

Thanks to @LukaszWiktor recommendation I was able to solve it. I would just add that once the "Create a Universal Analytics property" is checked, Google by default creates two properties, the G-XXX one and the UA-XXX; and you are redirected to the G-XXX by default too. So what you need to do is select the UA-XXX property so you can copy / paste the correct tag.

0 Likes