Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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

  1. 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:

  2. Make sure the "ga-purchase" part matches your purchase event name after the ga- prefix.
    e.g. if your event is called purchase it becomes ga-purchase
    if it’s called checkout it would be ga-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>

Using Google Tag Manager

Using other methods

How do I find my GA purchase event name?

  • No labels