Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Did you know you can use your Google Analytics checkout values to integrate power your preezie pixel?Here’s how…

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:

    Image Added
  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

Info

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>

...

languagejs

...

<script>
window.addEventListener("load",

...

function()

...

{
prz("event",

...

"transaction",

...

"ga-purchase");
});
</script>

Anchor
findevent
findevent
How do I find my GA purchase event name?

...