Articles in this section
Category / Section

Enrich Existing Data With Webhooks (Use Case Example: Profit Tracking)

2 mins read

You can enrich data in Tracklution by utilising our webhook feature and sending the data fully server-side to Tracklution.

Enriching existing data with webhook

With Tracklution’s webhook, you can enhance existing web conversion data, such as obtaining insights from sources that may not be directly linked to the website or safeguarding sensitive information that you don't want to be available to anyone via the browser.

Enriching could mean additional contact information or for example setting value for Purchase event in case the value is not available on the web (e.g. recording profit data instead of revenue data). Read this article to learn more about Profit tracking with webhooks. 

To enrich existing data successfully, Tracklution has to be able to match webhook data with existing session data. Read more about Matching webhook data with other session data.

Use Case: Profit Tracking with Webhook

Webhook enables companies to operate advertising based on profit data instead of revenue data. Profit data can be securely recorded server-side so that profit data is not made available via the web session (as it would be if recorded via tracking pixels). Here we provide an example setup of tracking profit data with Tracklution webhook.

Instead of firing a Purchase event when a purchase happens in web, you can only fire a ContactInfo tag with data for session matching, such as ´externalId´. External ID can be any unique ID for the purchase that you have available in the web session and in your eCom or other backend system, such as order ID.

<script>
    tlq('set', 'ContactInfo', {externalId: '123-abc'});
</script>
You can also pair this with a Custom Event if you still wish to record also an event of a Purchase in the web session side:
<script>
    tlq('track', 'WebPurchase');
    tlq('set', 'ContactInfo', {externalId: '123-abc'});
</script>
Then, set up a webhook that will track the actual Purchase event along with the profit value. This way, the actual Purchase event with Profit value is recorded fully server-side, without access to profit data during the web session. For background information: Read more about setting up webhooks.
Comments (0)
Please  to leave a comment
Access denied
Access denied