How to Track Conversions on My Registration Pages?

Looking to track your registrations in Google Analytics or Facebook Ads for example? Do you need to send an event to a third party software when someone fills out the registration form? This article will help you.

IN THIS ARTICLE:


Custom Code Integration

Log in to your Livestorm account. Go to  Settings > Integration > Custom code. You can just paste your custom code between script tags for instance. You can even tell Livestorm if you want to have it automatically set up for each new webinar you create.

Important note: integrations you set up will be disabled by default for your previously created webinars. If you want to enable the integration for a previous webinar, just go to the webinar settings page and enable it under "integrations"

How it works

To trigger something after a registration you need to know when it's is successful. This is why we provide the following method:

<script>  
livestorm.on('registration-success', function () {   
  // YOUR CODE
})
</script>

We also provide specific methods for any kind of pixels:

  • livestorm . addPixel  to add a link to an image based pixel
  • livestorm .addTag to add a tag based pixel like a javascript file or an iframe.

To display a tracking pixel after registration

<script> 
livestorm.on('registration-success', function () {   
  livestorm.addPixel('HTTPS://TRACKINGPIXEL.gif') 
}) 
</script>

To execute a tracking script after registration

<script> 
livestorm.on('registration-success', function () {
  livestorm.addTag('script', 'src', 'https://TRACKINGSCRIPT.js')   
})
</script>

To execute a tracking iframe after registration

<script> 
livestorm.on('registration-success', function () { 
  livestorm.addTag('iframe', 'src', 'THE LINK HERE') 
})
</script>

Example with Facebook Ads Tracking Code

Here is a custom code snippet for instance that will allow you to send track events to Facebook Ads once someone has registered: 

<script>
  // You add the Facebook Ads tag here on all pages
  !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
  n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
  document,'script','https://connect.facebook.net/en_US/fbevents.js');

  fbq('init', 'YOUR FB ID HERE');
  fbq('track', 'PageView');
  
  // You add the livestorm method to trick your FB event when a registration is sucessful 
  livestorm.on('registration-success', function () { 
    fbq('track', 'CompleteRegistration')
  })
</script>

Send Events via Zapier

Another easy way to track registrations is to send events via Zapier ( what's Zapier) once someone has registered. Then you can send events to Facebook Ads, Adroll, or even Google Analytics. 

For Google Analytics, you don't need to use this method to track registrations as we have a native Google Analytics integration. You may check out our dedicated page to learn more about this ➡️ Connect Google Analytics & Livestorm

In any case, here's the Zapier example to track registrations. The first step will be the trigger called "New registrant". 

Then specify to which dimension and construct the event:

Using Google Tag Manager

Instead of using the custom code you can just load Google Tag Manager and handle the code on GTM's end. You can define triggers that will help you create the action within Google Tag Manager.

First, you need to put your GTM tag in your custom code integration.

Then, in the GTM interface, you can use the same methods as above: