You can use the "Additional scripts" option in the Eventive Configurator in order to embed tracking code. 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 pageviews (e.g. 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!

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!

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 ).
  • 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>

If you're looking to send additional information to your tracking system, please let us know & we'll be happy to look into adding it!

Did this answer your question?