function generateUniqueId(){const randomBytes=new Uint8Array(16);window.crypto.getRandomValues(randomBytes);const hexString=Array.from(randomBytes).map((byte)=>byte.toString(16).padStart(2,'0')).join('');const uniqueId='event_'+hexString;return uniqueId;}
const eventId=generateUniqueId();window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}
gtag('consent','default',{'security_storage':'granted','functionality_storage':'granted','personalization_storage':'denied','ad_storage':'denied','analytics_storage':'denied','ad_personalization':'denied','ad_user_data':'denied','wait_for_update':700});;function setConsentUpdateAfterSec(){gtag('consent','update',{'ad_storage':'granted','analytics_storage':'granted','ad_personalization':'granted','ad_user_data':'granted','personalization_storage':'granted'});};setTimeout(setConsentUpdateAfterSec,400);function drop_fb_pixel_consent(){try{fbq('consent','grant');}
catch(err){setTimeout(function(){drop_fb_pixel_consent();},1000);}}
jQuery(document).ready(function(){drop_fb_pixel_consent();});;function etrackerGAcookieproEvent(){var groups=OnetrustActiveGroups.split(',');var ev_category="OneTrust CMP platform consent stat";var ev_action=["Cookie Consent Granted","Cookie Consent Denied","Strictly Necessary Cookies"];var ev_label=["C0001 Ściśle niezbędne pliki cookie","C0002 Pliki cookie wydajności","C0003 Funkcjonalne pliki cookie","C0004 Pliki cookie związane z reklamami i ich odbiorcami","C0005 Pliki cookie mediów społecznościowych"];for(var i=0;i<5;i++){if(groups.includes('C000'+(i+1))){if(i==0){gtag('event',ev_action[2],{'event_label':ev_label[i],'event_category':ev_category,'non_interaction':true});}else{gtag('event',ev_action[0],{'event_label':ev_label[i],'event_category':ev_category,'non_interaction':true});}}else{gtag('event',ev_action[1],{'event_label':ev_label[i],'event_category':ev_category,'non_interaction':true});};}};function OneTrustisLoadedAndParsed(){OneTrust.OnConsentChanged(etrackerGAcookieproEvent);};gtag('js',new Date());gtag('set',{'allow_enhanced_conversions':true,'currency':'PLN','anonymize_ip':false,'custom_map':{'dimension16':'ecomm_prodid','dimension17':'ecomm_pagetype','dimension18':'ecomm_totalvalue','dimension19':'ecomm_category','dimension20':'ecomm_offline','metric5':'avg_page_load_time'}});gtag('set',{'content_group5':'Product Page','content_group4':'Meble do jadalni','content_group':'Meble do jadalni'});gtag('config','G-JLP8VM7EHV');var beforeload=(new Date()).getTime();window.seconds=0;function getPageLoadTime(seconds){var afterload=(new Date()).getTime();window.seconds=(afterload-beforeload)/ 1000;}
jQuery(document).ready(function(){getPageLoadTime();});;jQuery(document).ready(function(){window.uetq=window.uetq||[];window.uetq.push('event','view_item',{'ecomm_prodid':'NF-32','ecomm_pagetype':'product','ecomm_category':'Meble do jadalni','ecomm_totalvalue':'868.0000','revenue_value':'868.0000','currency':'PLN','items':[{'id':'NF-32','name':'Fotel dębowy tapicerowany NF-32','list_id':'product_page','list_name':'Product Page','list_position':1,'brand':'Woodica','category':'Meble do jadalni','price':'868.0000','google_business_vertical':'retail'}],});function drop_tiktok_pixel(){try{ttq.identify({"email":'',"phone_number":''});ttq.track('ViewContent',{"contents":[{"content_id":'NF-32',"content_type":'product',"content_name":'Fotel dębowy tapicerowany NF-32',"content_category":'Meble do jadalni',"quantity":1,"price":'868.0000',"brand":'Woodica'}],"value":'868.0000',"currency":'PLN'},{"event_id":eventId,});}
catch(err){setTimeout(function(){drop_tiktok_pixel();},1000);}}
jQuery(document).ready(function(){drop_tiktok_pixel();});gtag('event','view_item',{'content_group5':'Product Page','content_group4':'Meble do jadalni','ecomm_pagetype':'product','ecomm_prodid':'NF-32','ecomm_totalvalue':'868.0000','ecomm_category':'Meble do jadalni','currency':'PLN','value':'868.0000','items':[{'id':'NF-32','name':'Fotel dębowy tapicerowany NF-32','list_id':'product_page','list_name':'Product Page','list_position':1,'brand':'Woodica','category':'Meble do jadalni','price':'868.0000','google_business_vertical':'retail'}],'avg_page_load_time':window.seconds});});;jQuery(document).ready(function(){window.dataLayer.push({'ecomm_prodid':'NF-32','ecomm_pagetype':'product','ecomm_totalvalue':'868.0000','ecomm_category':'Meble do jadalni'});});;var autoLoadDuration;var eventList;var autoLoadTimeout;autoLoadDuration=10;eventList=["keydown","mousemove","wheel","touchmove","touchstart","touchend"];autoLoadTimeout=setTimeout(runScripts,autoLoadDuration*1000);eventList.forEach(function(event){window.addEventListener(event,triggerScripts,{passive:true})});function triggerScripts(){runScripts();clearTimeout(autoLoadTimeout);eventList.forEach(function(event){window.removeEventListener(event,triggerScripts,{passive:true});});}
function runScripts(){document.querySelectorAll("script[delay]").forEach(function(scriptTag){scriptTag.setAttribute("src",scriptTag.getAttribute("delay"));});};