Measuring conversions per Ad Creative

Joakim Stenberg Updated by Joakim Stenberg

Strossle Analytics can be configured to measure number of conversions generated per Ad Creative.

Implementation

  1. Implementation on the landing page

You can implement the following code snippet across your entire website or on individual landing pages.

<script async src="https://assets.strossle.com/strossle-analytics/1/strossle-analytics.js"></script>
<script>
window.strossleAnalyticsQueue = window.strossleAnalyticsQueue || [];
function strossleAnalytics() { strossleAnalyticsQueue.push(arguments); }
strossleAnalytics('config', 'deviceStorage', true);
</script>

In case your website hosts a TCF v2.0 compliant CMP, Strossle will automatically detect if we have consent to store information in localStorage. In such case it is enough to include the Strossle Analytics script:

<script async src="https://assets.strossle.com/strossle-analytics/1/strossle-analytics.js"></script>

  1. Implementation on the conversion page

The following code snippet should only be added to pages you want to register conversions on. If the user has previously clicked one of your ads and later arrives at the conversion page, a conversion will be registered.

<script async src="https://assets.strossle.com/strossle-analytics/1/strossle-analytics.js"></script>
<script>
window.strossleAnalyticsQueue = window.strossleAnalyticsQueue || [];
function strossleAnalytics() { strossleAnalyticsQueue.push(arguments); }
strossleAnalytics('config', 'deviceStorage', true);
strossleAnalytics('event', 'conversion');
</script>

As you might see, the only part that differs between the implementation on the landing page and the implementation on the conversion page is the following line of code:

strossleAnalytics('event', 'conversion');

In case your website hosts a TCF v2.0 compliant CMP, Strossle will automatically detect if we have consent to store information in localStorage. In such case you can omit the following line of code:

strossleAnalytics('config', 'deviceStorage', true);

  1. Modify Click URL of your Ad Creatives

An sclid macro must be added as a query parameter in the Click URL of your Ad Creatives. Detailed instructions can be found here:

Adding a sclid macro to your Ad Creatives

Note on privacy

Conversions are recorded without collecting any personal data. We require a consent to store the Ad Creative ID that led the user to your landing page as well as a timestamp indicating date and time the user arrived at your landing page. The Ad Creative ID and the timestamp are stored in localStorage on the users device. In case your site is using a Consent Management Platform (CMP) that supports IAB TCF v2.0 consent notifications we will automatically check if Strossle has consent to store and access information on the users device. In case you are collecting consent from the user in other ways, you must configure Strossle Analytics to allow usage of localStorage.

How did we do?

Including referrer in your click URL

Measuring engagement with your landing page

Contact