For advertisers, the Web SDK is one of Rokt's suggested conversion reporting mechanisms. Sharing conversion data enables Rokt to optimize campaigns towards the customers most likely to convert on your site. The Web SDK should be placed on the page where a conversion is recognized (e.g., your order confirmation page), either directly or through a tag manager.
To unlock this capability:
roktTagidin the example script below with the unique tag ID for your account in the Rokt platform. If you need assistance, reach out to your account manager.
- Place the script on the conversion page that your campaign is driving customers towards. For best results, place the script in the header of your page (i.e., within the
- Populate the script with attributes unique to the conversion event, such as email and amount. For example, in the example script below, email@example.com should be replaced with the actual email of a customer who landed on the page. See attributes for more details on what data Rokt can accept.
Once placed, the Web SDK fires whenever a customer lands on this page. Rokt can then begin attributing conversions and optimizing your campaign. Note that Rokt only attributes conversions for customers that we can identify as Rokt-generated referrals.
Looking for a no-code solution for conversion reporting? Shopify store owners can install the Rokt Ecommerce app with one click to start sharing conversion data. Contact your account manager if you'd like to explore the Shopify option.
Example Web SDK script
Using a tag manager
If you prefer, you can integrate the Web SDK through a tag manager such as Google Tag Manager. You can read more about setting up Google Tag Manager here.
Read our guide on testing your integration.