How to track conversion events

Conversion events are the backbone of Optimeleon's functionality. We currently allow each campaign to be assigned a single conversion event. Performance of your campaign is measured as the percentage of conversions for the total amount of visitors on your campaign page.

Create your events before creating a campaign so that they are available during campaign creation.

How to create an event?

1. Visit the Events Manager page after logging into Optimeleon

  1. Type in a name for your event and click the "Create New Event" button.

  2. You should see a new entry in the table.

Testing the event

To test the event, copy the code snippet from the table. Paste it wherever you want the event to be fired from. E.g on click of certain buttons, on page view etc. Please read the below section to quickly understand the code.

Integrating the event code

The event code looks as follows optimeleon("track", "your_event_name") where "your_event_name" will be the name of your event and should be different for each event. This piece of code instructs optimeleon to track your event.

For GTM or similar tools or to embed this event directly into your html page, you can wrap the above snippet within <script></script> tags. (When you copy the snippet from the Events Manager page, we automatically wrap the snippet inside script tags for you)

For Shopify Pixel only

For events inside shopify pixel (these events will occur inside your checkout page), the code needs to be slightly modified and should look like optimeleon("shopify_track", "your_event_name"). We replaced "track" with "shopify_track" to tell Optimeleon that this is a special Shopify event.

If everything was integrated correctly, you should be able to see the count (number of times the event was fired) on the table.

When to create an event?

Custom events are powerful and can be used when your conversions lie outside of the campaign page, on a subdomain (enable cookies for cross domain tracking), when you want to track special events or want to conditionally track conversions.

Apart from the above cases, you should also create a custom event to test Optimeleon's integration.

How to track conversion events

Conversion events are the backbone of Optimeleon's functionality. We currently allow each campaign to be assigned a single conversion event. Performance of your campaign is measured as the percentage of conversions for the total amount of visitors on your campaign page.

Create your events before creating a campaign so that they are available during campaign creation.

How to create an event?

1. Visit the Events Manager page after logging into Optimeleon

  1. Type in a name for your event and click the "Create New Event" button.

  2. You should see a new entry in the table.

Testing the event

To test the event, copy the code snippet from the table. Paste it wherever you want the event to be fired from. E.g on click of certain buttons, on page view etc. Please read the below section to quickly understand the code.

Integrating the event code

The event code looks as follows optimeleon("track", "your_event_name") where "your_event_name" will be the name of your event and should be different for each event. This piece of code instructs optimeleon to track your event.

For GTM or similar tools or to embed this event directly into your html page, you can wrap the above snippet within <script></script> tags. (When you copy the snippet from the Events Manager page, we automatically wrap the snippet inside script tags for you)

For Shopify Pixel only

For events inside shopify pixel (these events will occur inside your checkout page), the code needs to be slightly modified and should look like optimeleon("shopify_track", "your_event_name"). We replaced "track" with "shopify_track" to tell Optimeleon that this is a special Shopify event.

If everything was integrated correctly, you should be able to see the count (number of times the event was fired) on the table.

When to create an event?

Custom events are powerful and can be used when your conversions lie outside of the campaign page, on a subdomain (enable cookies for cross domain tracking), when you want to track special events or want to conditionally track conversions.

Apart from the above cases, you should also create a custom event to test Optimeleon's integration.