How to Add Google Analytics, Google Tag Manager, and Facebook Pixel

Modified on Mon, 19 Feb at 10:14 AM

SimpleTix allows you to add Google Tag Manager, Google Analytics, and Facebook pixels directly to your event site. 

These tracking tools can be added to the event details page as well as the order complete page, allowing for retargeting and remarketing potential clients.



Watch the video below for steps on how to do so:





We recommend using Google Tag Manager (GTM)


When used correctly, you can automatically add someone to a re-marketing campaign when they visit your event page.

Once they complete their order, you can automatically remove them from the re-marketing campaign.


Here's an example of how to pass in the order number and total revenue using GTM:



For GTM (Google Tag Manager) here's an example on how to pass in the order # and total revenue


<!-- Google Tag Manager -->

<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':

new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],

j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=

'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);

})(window,document,'script','dataLayer','GTM-*********');</script>

<!-- End Google Tag Manager -->



window.dataLayer = window.dataLayer || [];

window.dataLayer.push({

  event: 'tix.purchase',

  ecommerce: {

    currencyCode: 'USD',

    purchase: {

      actionField: {

        id:  '[OrderID]',

        affiliation: '[EventId]',

        revenue: '[Revenue]',

      },

      products: [{

        id: '[OrderID]',

        name: '[EventId]',

        price: '[Revenue]',

        quantity: 1,

      }]

    }

  }

}); 



For Google Analytics:


gtag('event', 'conversion', {


      'send_to': 'AW-877946477/TAitCIKfktsBEO3M0aID',


      'value': [Revenue],


      'currency': 'USD',


      'transaction_id': '[OrderID]'


  });

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article