How to add a pixel?

How do I create a GA event for form fills?

Florent avatar
Written by Florent
Updated over a week ago

If you want to track your conversions to check which campaigns (Facebook, Twitter...) are the most effective, you can also do it with a tracking pixel.

The pixel is an image in 1x1 format, it comes in the form of a script (JS) to be inserted on the site or your Plezi landing page.

To find out how to get the script, we invite you to look at the tutorials available on the various sites that offer the pixel (Google, Facebook, etc.)

How do I add the pixel to my landing page?

To add the block, you need to put an HTML block:

Put it at the top of your landing page and paste in your script, save the changes, and voilà!

Set a pixel on form submission

Would you rather have the pixel triggered as soon as a contact submits a form? 📝 It's possible! To do this, you need to add your script to the thank you message.

Here's what you need to put, obviously replacing the analytics URL to fit yours ;)

<div style='font-family: verdana; color: #666; text-align: center; '><br><span style='color: #e6536c;'><strong>DEMANDE D'INSCRIPTION</strong></span></div><div style='font-family: verdana; color: #666; text-align: center;'><br><span style='color: #393939;'> Merci, votre inscription est bien enregistrée ! </span></div>

<div style='font-family: verdana; color: #666; text-align: center;'><br><span style='color: #393939;'> Vous recevrez une confirmation par email. </span></div>

<script>

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

m=s.getElementsByTagName(o)

[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

console.log("event declenche");

ga('send', {

hitType: 'event',

eventCategory: 'Plezi Form',

eventAction: 'submit',

});

</script>

Then in the desired form, in the workflow, select the thank you message that contains your pixel.

Did this answer your question?