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. (link to the enhanced e-commerce decision tree).

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 (link to new functionality).

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:

3. To validate your conversion, you can check them via the API. The call to use is:

https://api.datatrics.com/2.0/project/{{projectid}}/sale?q[goalid]=0&apikey={{apikey}}

When successful, you will see a response with a conversionid, and the different items linked to it:

You can use the above call for custom conversions and carts as well. See the following screenshot:

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:

https://api.datatrics.com/2.0/project/{{projectid}}/sale?q[source]={{sourcename}}

Instead of using the source name of your imported conversions, you can also use the name of your integration in the above endpoint. E.g. Magento, Shopify, Lightspeed.

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?