\n
\n"},"updatedAt":"2024-03-06T17:24:10.348Z","id":"Wq8pndFRgrXn0EUyiXY9"}} || {};
const resetMetafields = false || {};
const {integration: avadaCbIntegration} = cookieBarMetaFields;
const shopNameCookie = 'Loog Guitars Europe';
window.AVADA_COOKIES_BAR = {
shopName: shopNameCookie,
shopId: cookieBarMetaFields.shopId,
status: cookieBarMetaFields.status,
...(window.AVADA_COOKIES_BAR || {}),
...cookieBarMetaFields.settings,
translation: cookieBarMetaFields.translations,
cookies: cookieBarMetaFields.cookies,
integration: avadaCbIntegration,
customer: {
id: null,
email: null,
first_name: null,
last_name: null,
phone: null
},
reset: resetMetafields,
brandData: {
primaryBackground: null,
primaryForeground: null,
secondaryBackground: null,
secondaryForeground: null,
logo: null
}
};
(() => {
const getCookie= (name) => {
const nameEQ = name + '=';
const ca = document.cookie.split(';');
for (let i = 0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
if (c.indexOf(nameEQ) === 0) return JSON.parse(decodeURIComponent(c.substring(nameEQ.length, c.length)));
}
return {};
}
window.AVADA_COOKIE_CONSENT = getCookie('avada_cookie_consent');
})();
try {
const metaPixelScript = avadaCbIntegration?.metaPixel?.script || '';
window.metaPixelFunc = new Function(metaPixelScript);
if(avadaCbIntegration?.metaPixel?.enabled && window.AVADA_COOKIE_CONSENT.analytics && window.AVADA_COOKIE_CONSENT.marketing) {
window.metaPixelFunc();
}
} catch (e) {
console.error('Something went wrong in Meta Pixel:', e)
}
try {
const tiktokPixelScript = avadaCbIntegration?.tiktokPixel?.script || '';
window.tiktokPixelFunc = new Function(tiktokPixelScript);
if(avadaCbIntegration?.tiktokPixel?.enabled && window.AVADA_COOKIE_CONSENT.analytics && window.AVADA_COOKIE_CONSENT.marketing) {
window.tiktokPixelFunc();
}
} catch (e) {
console.error('Something went wrong in Tiktok Pixel:', e)
}