Wrong format of code for Google Analytics

Solved
MarioKan
Excursionist
29 1 5

Hi!

I created a Google Analytics account however I cannot add the code as it is saying the format should be "UA"

I just created the account, how can I add this to Shopify?

Thanks

0 Likes
JHKCreate
Shopify Partner
2046 331 445

HI @MarioKan 

What code are you using exactly? Did you create the GA account recently or a while back?

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
MarioKan
Excursionist
29 1 5

Hello,

I created it 2 days ago. What do you mean by what code? 

 

0 Likes
JHKCreate
Shopify Partner
2046 331 445

This is an accepted solution.

If you created it recently then Google Analytics has generated a new type of embed code that doesn't work on Shopify's GA Integration. 

You need to go to your theme.liquid file and paste the code there under the <head> part of your code. 

Let me know if you start seeing traffic once this is done!

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
MarioKan
Excursionist
29 1 5

Awesome! It is now added 

Thank you 

0 Likes