Referral Tag Setup for Rokt Click ID
This page covers adding the Rokt referral tag to your landing page to store the Rokt Click ID, so it can be returned to Rokt when a customer converts.
Before you start, make sure you've generated the Rokt Click ID by adding it to your campaign's traffic URL. For those steps and an overview of how Rokt Click ID attribution works, see the Rokt Click ID overview.
Add the Rokt referral tag to your landing pageDirect link to Add the Rokt referral tag to your landing page
The Rokt referral tag stores the Rokt Click ID in the browser between the click and the conversion. To return the stored ID to Rokt at conversion time, you'll also need the Rokt Web SDK or Event API.
Capture the Rokt Click ID on your confirmation pageDirect link to Capture the Rokt Click ID on your confirmation page
Setting up automatic conversion reporting helps you clients measure the impact of your campaigns on your business. Rokt offers a variety of ways to integrate your conversion data. For greatest accuracy, we recommend using the Rokt Web SDK and Event API.
If you are capturing conversions using the Web SDK, please ensure the data attribute passbackconversiontrackingID is integrated.
Though less accurate, we also support conversion reporting through third-party measurement tools, file transfer, and manual upload.
Premium integration: Combining the Web SDK and Event APIDirect link to Premium integration: Combining the Web SDK and Event API
If possible, we recommend setting up conversion reporting through both the Web SDK and Event API. This helps identify any anomalies and provides redundancy if there are any issues on the frontend or backend.
If you choose to set up both integrations, ensure you populate one of transactionid or confirmationref in both the Web SDK and Event API integrations. Rokt can then deduplicate incoming your conversion events using these variables, ensuring your reporting is accurate.
Test the Rokt Click IDDirect link to Test the Rokt Click ID
Please feel free to check in with your account manager to have Rokt validate the implementation for you.
To check that the Rokt Click ID is functioning correctly on your campaign’s landing page:
- Go to your campaign’s landing page.
- Navigate to your browser’s Developer Tools.
- Go to the “Network” tab and check that
referral-tag.jsnetwork request have a status code of 200. - Go to the “Application” tab and select Local Storage. Verify that the
RoktTransactionIdis present and matched thertidUTM parameter in the URL.
To check that the Rokt Web SDK is correctly attributing conversions with the Rokt Click ID:
- Navigate to a confirmation page from your campaign’s landing page after accepting an offer.
- Navigate to your browser’s Developer Tools.
- Go to the “Network” tab. Once there, select the experiences asset.
- From there, go to the “Payload” tab and check that the
passbackconversiontrackingidfield contains the value from thertidin Local Storage.