Where can we find the code to fill "Additional Analytics Javascript" field under Google analytics?

ytcrocks
New Member
3 0 0

We have clicked "use enhanced ecommerce", do we still need to add the JS? If so, where can we find the code? (There are a lot of codes that we can find on Google Analytics. so it will be great if you can be specific.  thank you

0 Likes
AvidBrio
Shopify Expert
217 10 17

@ytcrocks   You want to add more Google analytics code   you need to add into java script ode into theme code file

  1. Click Actions > Edit code.

The code editor shows a directory of theme files on the left, and a space to view and edit the files on the right.

AvidBrio_0-1632207980535.png

 

<!--  code the code from the google analytics and  put before the </head> tag -->
</head>
If you find our comment helpful, hit the like button and accept it as a solution.
Want us to implement custom changes in your store? Contact us
Email me directly - jim@avidbrio.com
0 Likes
ytcrocks
New Member
3 0 0

Thanks for the help but as you see- but the question is "where can we find the code to fill the "additional analytics javascript" field 

1.  There are so many codes from Google analytics.  Which code exactly to fill? and where to find it. 

2.  Based on your answer, what code should we insert to the edit code then..? 

 

Thank you

 

Screen Shot 2021-09-21 at 2.47.31 PM.png

 

0 Likes