Personalized checkout and custom promotions with Shopify Scripts
Hi! I need delete google ads tracking for all pages, but I can't find where add this script. I check all theme files and checkout code. Can you help me find where add this code?
Me need delete only google ads tracking, because they add for all site. Corect code I add in code checkout, this old code for all site I need delete
This two code:
Hi @ivan93
This is all coming from a file called pixel.js.
Presumably, it was some kind of app install that added this file.
In turn, pixel.js is loaded by another file which looks like it's something to do with Hubspot cookie consent?
Section of the file in question that loads pixel.js is here:
window._hsp.push(["addPrivacyConsentListener", function (consent) {
if (consent.categories.advertisement) {
if (!config) {
fetchConfig({
jsonUrl: `${configDomain}/hs-script-loader-public/v1/config/pixel/json`,
jsonpUrl: `${configDomain}/hs-script-loader-public/v1/config/pixel/jsonp`
}, cfg => {
config = cfg;
addPixels(cfg, utk);
}, 'addPixels');
} else {
reinstallPixels(config, utk);
}
} else if (config) {
disablePixels(config);
}
}]);
window._hsq = window._hsq || [];
Without seeing the backend of the store it's difficult to know exactly what's happening but may at least give you a starting point!
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025