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!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024