OptimeleonOptimeleon
Request Access
Setup

How to track conversion events

Conversion events are the backbone of Optimeleon. Create, test and integrate event tracking for your campaigns.

Conversion events are the backbone of Optimeleon's functionality. We currently allow each campaign to be assigned a single conversion event. Your campaign's performance is measured as the percentage of visitors on the campaign page who convert.

Tip
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.
  2. Type in a name for your event and click the “Create New Event” button.
  3. You should see a new entry in the table.
app.optimeleon.com/events
The Optimeleon Events Manager, listing created events and their code snippets.
Each event in the Events Manager comes with a ready-to-paste code snippet and a live fire count.

Testing the event

To test the event, copy the code snippet from the table and paste it wherever you want the event to fire from – e.g. on the click of certain buttons, on page view, etc. Read the section below to quickly understand the code.

Integrating the event code

The event code looks as follows:

track event
optimeleon("track", "your_event_name")

where your_event_name is 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 the event directly into your HTML page, you can wrap the snippet within <script></script> tags. (When you copy the snippet from the Events Manager, we automatically wrap it in script tags for you.)

For Shopify Pixel only

For events inside a Shopify pixel (these occur on your checkout page), the code needs to be slightly modified:

shopify track event
optimeleon("shopify_track", "your_event_name")

We replaced "track" with "shopify_track" to tell Optimeleon that this is a special Shopify event. If everything is 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. Use them 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 when you want to conditionally track conversions. Apart from these cases, you should also create a custom event to test Optimeleon's integration.