All things Shopify and commerce
how to Reduce unused JavaScript in google tag and facebook and the code not in the theme its through the app !
Hello Hassantanna,
Thanks for reaching out to the community!
Removing the unused or dead JavaScript in Google Tag and Facebook Tag depends from theme to theme. However, you can consider the most common method:
Go to the Shopify Admin → Select Online Store → Select Themes → Click on Actions from the dropdown button from your active theme → Click on Edit Code
Now, look in the <head> and <body> sections, where you can find the unused JavaScript, here you can modify or completely remove it.
However, if you’re using third-party apps for Google Tag and Facebook Tag, then you may not find the unused code on the script.
(If you’re unsure about the unused or dead JavaScript, consult a Shopify developer here)
Once identified all the unused JavaScript codes can be removed or modified on the store theme or apps. You can make use of development tools to identify unused code and remove it from your apps.
Hope it helps!
Leesha
SEOKart
User | RANK |
---|---|
44 | |
42 | |
42 | |
28 | |
21 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023