Setting up conversion tracking
Christine DuBois avatar
Written by Christine DuBois
Updated over a week ago

What is the Mantis pixel?

As a Mantis advertiser, you can use our conversion tracking pixel to track which publications and audience segments in the network are generating both the best and worst results.

Note: Conversion tracking capabilities are only available to ad accounts that spend $5,000 per month or more with Mantis publishers. Please contact us to learn more.

The Mantis conversion tracking pixel is flexible and can track all types of conversions (e.g., a purchase or sign up that occurred as a result of activity with your ad).

Understanding your conversion data allows you to:

  • Learn which campaigns are converting best and identify trends in the data

  • Determine which messaging on your creatives is working and what needs your attention

  • Track conversions and attributed revenue PER publication within your Mantis account

---

How to set up conversion tracking in Mantis

To install the Mantis pixel and begin tracking conversions:

  1. Log in to Mantis (or sign up for a new account)

  2. Click on the Conversions tab in the left navigation

  3. Navigate to the Pixel Code tab at the top of the page

  4. Copy and paste the provided Javascript code to the header or footer code section of your website (not just the checkout thank you page)

  5. Once the code has been added to your website, click on the Conversion Goals tab at the top of the page

  6. Click the green button labeled Create a New Goal

  7. On this page, fill out the requested fields and click the green Submit button to save your new goal

Note: If the steps were performed correctly, conversion data will begin generating on your Conversions tab (typically within 1-2 hours)

IMPORTANT: Be sure to add the Mantis conversion tracking pixel to every page of your website, such as in your website header or footer code (not just the checkout thank you page), to support retargeting and other conversion tracking features in the future.

An example of step 3-4 of the conversion tracking set up process:

---

How to customize your conversion code

  1. Locate the transaction: line item in the code and add a unique value (if applicable), such as a purchase id, to trace conversions back to Mantis.

  2. Locate the revenue: line item in the code and set an amount (e.g., 99.99) that represents the total purchase amount.

  3. Finally, make sure you then add revenue= in the pixel at the bottom of the code block to match your value in step 2 (e.g., transaction=123$&revenue=99.99).

---

Choosing the right goal URL for conversion tracking

Do not include the URL protocol or domain

  • Depending on your website structure, it may not be ideal to track conversions based on the beginning of the URL.

  • http://mysite.com/category/page1 – The entire URL should not be used for tracking

  • http://mysite.com/category/page1 – The correct way is to use the path at the end (excluding any parameters)

Choose a segment of the URL that is constant

  • Similar to advice above, beware of any URLs that are accessed with dynamic parameters. In this example, you should only include the URL path for tracking purposes.

  • http://mysite.com/category/page/action?param1=value1&param2=value2

Avoid overlap between similar URLs

---

Integrating with Shopify

If you use Shopify as your e-commerce platform of choice, you have the ability to use our conversion tracking on their checkout pages. To connect your Shopify account to your Mantis account using our one-click, no hassle integration:

  1. Log in to your Mantis buy-side account (or sign up for a new account)

  2. Navigate to the Conversions tab on the left-navigation menu

  3. Click on the Pixel Code tab in the menu at the top of the page

  4. On this page, enter your Shopify domain in the input field and click the Install Shopify Application button to connect your accounts (as shown below)

  • For the purposes of tracking purchases through our system, you will notice that the thank you page has a similar structure for each order: https://checkout.shopify.com/123456/orders/12345678910

  • When creating a goal for the thank you page (based on the advice given above), you should use the phrase “/orders” in your goal URL. This allows you to monitor all visits regardless of the unique store or customer identifier.

---

Integrating with WooCommerce

To connect your WooCommerce account to your Mantis account using our one-click, no hassle integration:

  1. Log in to your Mantis buy-side account (or sign up for a new account)

  2. Navigate to the Conversions tab on the left-navigation menu

  3. Click on the Pixel Code tab in the menu at the top of the page

  4. On this page, copy the identifier code provided to you

  5. Then click the link to install the WooCommerce Conversion Tracking plugin found here, and paste the identifier code you copied in the previous step

  6. You should be connected at this point; no further configuration is required

The latest version of the plugin will configure automatically. An example of the WooCommerce plugin can be found below. 

Note: You need to fill in the advertiser Identifier input field (not shown in image), otherwise the Mantis pixel won't fire and no data will feed into the Top Pixel Pages or Conversion Goals pages in your dashboard:

---

Event tracking

After implementing our conversion tracking pixel, you may also track individual events on pages across your website:

Javascript

<script type="text/javascript">
 mantis.push(['analytics', 'event', 'MyEventName'])
</script>

Pixel

<img src="//mantodea.mantisadnetwork.com/analytics/pixel?advertiser=MyAdvertiserId&event=MyEventName" />

---

FAQ

"Can I remove underperforming websites from my ad rotation?"

Yes, all buy-side accounts are provided with blacklisting capabilities. To remove (i.e., blacklist) specific publishers from your campaign's rotation, please ensure you have already:

  1. Installed our free conversion tracking pixel (following the steps above)

  2. Setup goals on your Conversions tab (to track said conversions)

  3. See conversion data on your Conversions tab, segmented by publisher

Once you have conversion data to support a publishers removal (e.g., a high CPL price), you can follow these steps to blacklist URLs.

Did this answer your question?