All Collections
Integrations
Add Additional Scripts
Add Additional Scripts

Inject tracking pixels, analytics code, and more.

Theo Patt avatar
Written by Theo Patt
Updated over a week ago

Use the Additional Scripts and Order Completion Scripts options in the Misc tab of the Configurator to embed tracking code on your Eventive Native Site.

To track activity on Eventive Virtual Watch Sites, add your tracking info via the Virtual tab in the Configurator.

There are two types of scripts that can be added:

1. General additional scripts

Injected into every page of an event bucket. Useful for tracking page views with Google Analytics or Facebook Pixel.

  1. Launch the Eventive Configurator and click the Misc tab

  2. Scroll down to Additional scripts

  3. Paste your script content, ensuring that you include enclosing <script> tags as necessary

  4. Click Save and you're live!

Please click here to read Google's resource on how to use the global site tag (gtag.js) to configure a site for Google Analytics.

2. Order completion scripts

Injected only into the order confirmation page shown after a customer completes an order. Useful for ROI / conversion tracking.

  1. Launch the Eventive Configurator and click the Misc tab

  2. Scroll down to Order completion scripts

  3. Paste your script content, ensuring that you include enclosing <script>  tags as necessary

  4. Click Save and you're live!

Please click here to read a Google Analytics resource on how to fire a gtag tracking event (if your main tracking script includes the phrase "gtag").

Please click here to read a Google Tag Manager resource on how to fire an event (if your main tracking script includes the phrase "dataLayer").

Available parameters

In order to provide greater insights within your tracking, we set the following global JavaScript variables upon order completion, which you can then reference within your tracking code.

These global variables include:

  • ORDER_ID : A randomly-generated, unique identifier string for the order (e.g. 59405deb8ff46a0011a02e5f ).

  • PERSON_ID : Eventive customer account ID (e.g. 59405deb8ff46a0011a02e5d)

  • PERSON_EMAIL: Eventive customer account email address (e.g. john.doe@example.com)

  • PURCHASE_PRICE: The gross amount of the order, in dollars (e.g. 12.91).

  • NET_PRICE: The net amount of the order (i.e. gross purchase price amount minus fees), in dollars (e.g. 10.00).

  • TICKETS, PASSES, and ITEMS: Arrays of (respectively) the tickets, passes, and items contained within the order, following the following format:

window.TICKETS = [
  {
    id: '59405deb8ff46a0011a02e5f',
    event_id: '59405deb8ff46a0011a02e5f',
    event_name: 'Test Event',
    ticket_bucket_id: '59405deb8ff46a0011a02e5f',
    ticket_bucket_name: 'General Admission',
    price: 10.00
  },
  ...
];

window.PASSES = [
  {
    id: '59405deb8ff46a0011a02e5f',
    pass_bucket_id: '59405deb8ff46a0011a02e5f',
    pass_bucket_name: 'Test Pass Bucket',
    price: 250.00
  },
  ...
];

window.ITEMS = [
  {
    id: '59405deb8ff46a0011a02e5f',
    item_bucket_id: '59405deb8ff46a0011a02e5f',
    item_bucket_name: 'Test Item Bucket',
    price: 17.99
  },
  ...
];

For example, to track ticket orders, you could set your "order completion scripts" to something like:

<script>
  if (window.TICKETS.length) {
    fireTrackingEvent('ticketOrder', {
      quantity: window.TICKETS.length,
      value: window.TICKETS.reduce((total, t) => total + t.price, 0)
    });
  }
</script>

Did this answer your question?