All Collections
Advanced options
Adding conversions to Datatrics
Adding conversions to Datatrics

This article explains all the ways Datatrics can track conversions, how you can import and check them.

Odin Bergman avatar
Written by Odin Bergman
Updated over a week ago

There are multiple ways of tracking conversions and synchronizing them to Datatrics.

If you have an e-commerce or booking webshop, the best and most clean way of tracking conversions is via enhanced e-commerce. To read more about enhanced e-commerce, follow this link.

When we track enhanced e-commerce conversions, these will be automatically linked to a visitor. When the email address is known, or the conversionid is similar to the conversion within the source system, we can connect these. That way, we know which profile out of the source converted.

Furthermore, we will track the correct revenues and other relevant information.

Custom Conversions

Of course, not all webshops are e-commerce based. These can set up a custom conversion within the platform. You can set up custom conversions based on several rules, for example, an URL or a button on the website. This way of tracking can be applicable for vacancies to gather leads or newsletter subscribers. To read more about custom conversion and how to set these up, please read the following documentation.

When the above has been configured, we can track conversions live on the website when a visitor converts.

Custom Importer and API

The other way to add conversions to Datatrics is via API or custom importer. Adding conversions this way can be handy, especially if you want to add historical conversions to Datatrics and the profiles. You can read more about adding conversion via the custom importer here and more about the structure to send conversions via our API here. It is important to note that you should add an email address and profileid when adding conversions with the API or via the custom importer. The above is needed to link the data to an existing known profile from a source.

When connecting a source system, we will also capture the conversions from that system. These will not be directly linked to a visitor on the website. Some examples of sources we get conversions from are; Magento, Shopify, Lightspeed, and Woocommerce.

How to check if the conversion is set up correctly?

1. There are multiple ways of validating your conversion.

The easiest way to check if we measure conversions is within the platform. You can validate them here.

2. You can also check if we measure conversions via the developer mode on your computer. Simply; right-click β†’ inspect β†’ network β†’ filter on idgoal. After this, perform a test conversion.

If the conversions are tracked succesfully, you will see the following in your network tab:

Below you can find the different goalid's belonging to different kinds of conversions:

Goalid

conversion type

0

enhanced e-commerce

-1

abandoned cart

1-X

custom conversions

The custom conversions get a goalid on creation. You need to use that number within the above endpoint.

4. To check conversions that have been added via the API or custom importer, you can use the following endpoint:

Below is the response:

This concludes all the ways Datatrics can track conversions, how you can import and check them.

Did this answer your question?