Did you know you can use your Google Analytics checkout values to power your preezie pixel?
How it works
If you’re using Google Analytics then it is likely you have an event called ‘purchase’ firing when a purchase is made.
This event also contains all of the product variables that the preezie pixel needs, therefore by adding the code below to your checkout confirmation page you can pass the same data to preezie that is sent to your GA to also pass to preezie.
The code to add
Copy the code below but make sure you replace two things
Update the PRE-123456 value with your preezie id, this id can be found in your CMS by going to Code Snippets > Your preezie id:
Make sure the
"ga-purchase"
part matches your purchase event name after the ga- prefix.
e.g. if your event is called purchase it becomesga-purchase
if it’s called checkout it would bega-checkout
Most standard Google Analytics interations use purchase as the event name, but follow these steps below to check yours
<script>
!function(e,t,n,s,p,r){e.prz||((s=e.prz=function(){s.process?s.process.apply(s,arguments):s.queue.push(arguments)}).queue=[],s.t=+new Date,(p=t.createElement(n)).async=1,p.src="https://preeziecdn.azureedge.net/production/prz_pixel.min.js?t="+864e5*Math.ceil(new Date/864e5),(r=t.getElementsByTagName(n)[0]).parentNode.insertBefore(p,r))}(window,document,"script"),prz("init","PRE-123456");
</script>
<script>
window.addEventListener("load", function() {
prz("event", "transaction", "ga-purchase");
});
</script>
Add Comment