Hi,
that is possible, you can use cache plugin if you need. The only one thing to mind is: remember to flush the cache at any change you made in your website.
In my current project I’m using WP Supercache in combination with your plugin.
It works fine when a customer is not logged. After a successful login I see in the page rendered source-code the following:
var aepc_pixel = {"pixel_id":"1114159407828282","user":{"ct":"neun","zp":"91052","em":"[email protected]","fn":"schoko","ln":"shake"},"enable_advanced_events":"no","fire_delay":"0","enable_viewcontent":"yes","enable_search":"no","enable_addtocart":"yes","enable_addtowishlist":"no","enable_initiatecheckout":"yes","enable_addpaymentinfo":"yes","enable_purchase":"yes"},
My assumption is, that your plugin pulls a few WordPress accountdetails into every page which in turn will be pushed to facebook’s server. So when I’m using a cacheplugin, every page (except woocommerce-pages) will be statically served and only refreshed over time.
Do I miss anything?
Thanks for your time!!
Oh damn, that’s probable. Could you please try to contact the support of WP Supercache and ask them some solution about that? Otherwise, you could use some other cache plugin, less restrictive.
Wouldnt it be possible to ajaxify you plugin? Instead rendering nesseccary javascript serverside you could fetch the parts with ajax. Is it feasible?
It’s not possible because the Facebook pixel code must be loaded in the source code with the page.