Reputation: 5794
I recently switched a client over from an old Blueprint theme to Stencil. Everything works great on my local environment, but after applying the theme on the live site, I've run into issues with scripts in the <head>
. It's pulling in a custom script that was built for the former theme.
How do I access and purge these old scripts?
I presume the scripts are coming through {{{head.scripts}}}
in my template file, but I can't find anywhere in the Stencil docs where this template var is mentioned.
Upvotes: 1
Views: 1370
Reputation: 5794
Found it. Looks like the former developer hacked it in under Advanced -> Web Analytics -> Google Analytics.
I was also told that developers sometimes hide code in Advanced -> Affiliate Conversion Tracking.
Neither of these seem like good practices, especially when BigCommerce allows users to input custom footer scripts in Storefront Design -> Design Options -> Scripts.
Upvotes: 0