FB Pixel data causing huge cache
-
Hi there.
i have agregate js enabled within html.. and have issue with large cache.
When I analyze the autoptimize js file, there’s only 1 thing that’s causing seperate js files to be generated for product pages. It’s not for all products, some of them share the same autoptimize cache js file. Those that don’t have this different at the bottom.
I’m using facebook for woocommerce, i tried excluding fbpixel.js but that doesn’t help and I can’t figure what else to excludejQuery(function($){fbq(‘track’,’ViewContent’,{“source”:”woocommerce”,”version”:”3.9.3″,”pluginVersion”:”1.10.1″,”content_name”:”Verney Carron Ibex 3 In 1 Waterproof Jacket”,”content_ids”:”[\”PHVE001_1943\”]”,”content_type”:”product_group”,”value”:”168.95″,”currency”:”GBP”});$(‘.single_add_to_cart_button’).click(function(){ga(‘ec:addProduct’,{‘id’:’PHVE001′,’name’:’Verney Carron Ibex 3 In 1 Waterproof Jacket’,’quantity’:$(‘input.qty’).val()?$(‘input.qty’).val():’1′});ga(‘ec:setAction’,’add’);ga(‘send’,’event’,’UX’,’click’,’add to cart’);});ga(‘ec:addImpression’,{‘id’:’1964′,’name’:’Verney-Carron Sika Jacket’,’category’:’Mens Country Clothing/Mens Jackets/Mens Shooting Jackets/Verney Carron’,’list’:’Product List’,’position’:’2′});$(‘.products .post-1964 a’).click(function(){if(true===$(this).hasClass(‘add_to_cart_button’)){return;}
!! HERE IS WHERE THE DIFFERENCE STARTS !!!!
ga(‘ec:addProduct’,{‘id’:’1964′,’name’:’Verney-Carron Sika Jacket’,’category’:’Mens Country Clothing/Mens Jackets/Mens Shooting Jackets/Verney Carron’,’position’:’2′});ga(‘ec:setAction’,’click’,{list:’Product List’});ga(‘send’,’event’,’UX’,’click’,’ Product List’);});ga(‘ec:addImpression’,{‘id’:’1957′,’name’:’Verney Carron?? Perdrix Men Silent Hunting Jacket’,’category’:’Mens Jackets/Mens Shooting Jackets/Verney Carron’,’list’:’Product List’,’position’:’3′});$(‘.products .post-1957 a’).click(function(){if(true===$(this).hasClass(‘add_to_cart_button’)){return;}The page I need help with: [log in to see the link]
- The topic ‘FB Pixel data causing huge cache’ is closed to new replies.