Need Help With Google Analytics Custom Code

Highlighted
Shopify Partner
2 0 0

 

I have a custom which i need to paste on the google analytics custom code section. But when i am pasting the code and saving it the code is not going between </script> and <script> tag. It is going somewhere else on the top of my theme (i have checked by CTRL + U)...Even i cannot see the </script><script> on the Shopify setting see this http://i.is.cc/2GtflR6c.png but i want this http://i.is.cc/2Gtj8WYs.png...

Plz let me know how to paste the code between </script><script> of google analytics custom javascript...

Note: Google Analytics is working fine on my store ( I have checked)

 

0 Likes
Shopify Staff
Shopify Staff
390 17 27

Hello, @SoumyadipC!

 

Ted here from Shopify, thanks for reaching out to us. 

 

Are you following a guide to enter this code and if so, could you share the guide with me so I can make sure you are entering this into the correct area for Google Analytics? As well, could you share your store's URL with me? 

 

Feel free to reach out to our Support team any time as well. We're here 24/7 via Facebook, Twitter, chats, emails and phone. Just click 'talk to support’ for some more info.

 

Thanks a mill, 

Ted

Ted | Social Care @ 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
Shopify Partner
2 0 0

I already talked to one of the member from shopify support but he told me that i old version of the shopify admin area it has the Script tag on google analytics custom code javascript, but now there is no script tag there (plz see the screenshots i mentioned above)... and is the guide to paste the code https://conversionpirate.com/shopify-checkout-hack-3-0/.. so plz let me know where to paste this code directly into my theme liquid files so that i appears between the script tags

0 Likes
Shopify Staff
Shopify Staff
390 17 27

Hi, @SoumyadipC!

Thanks for getting back to me and letting me know. 

 

You are no longer able to see the <script> </script> field as shown in your second screenshot as this feature was removed from Shopify in January 2019. Instead, the Additional Google Analytics JavaScript field will now appear for all Shopify accounts.

 

While this area was always intended for tracking scripts only, in the past, this field was used to insert customizations into the checkout. Due to security concerns, this field was modified so that by default, scripts added to this field can’t be used to change the look or function of Shopify’s checkout. 

 

At the moment, there are some apps and third-party guides which prompt a merchant to insert code for non-analytics purposes/as part of their setup process. In order to ensure that Shopify's App Partners provide a working experience to all users; app developers/partners whose apps make use of this field have been instructed to prepare and update their apps and documentation, as checkout customizations that rely on this field will no longer work for all merchants going forward. If you are using a third-party guide such as conversionpirate.com, I'd recommend contacting them directly here to see if they can provide another alternative. 

 

I understand where you're coming from with this and at the moment there is no way to edit the checkout as of yet, however, the Additional Google Analytics JavaScript field will continue to work for reporting scripts.

 

We want to ensure a safe and stable checkout experience for all users and we sincerely thank you for your patience. If there is anything else I can help you with, please let me know, I'm happy to help!

 

Thanks a mill,
Ted

Ted | Social Care @ 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