Overview
The Rokt Conversions Web Pixel enables accurate attribution of conversions from your Shopify store to Rokt campaigns. This helps optimize your marketing performance by tracking user activity through Shopify’s Web Pixels API.
Step 1: Install the AfterSell App
You will be provided with a special installation link by your account manager.
Click the link to be redirected to the Shopify App Store.
You will be prompted to install the AfterSell app.
During installation, Shopify will prompt you to accept scopes related to pixel tracking — specifically
read_customer_events
andwrite_pixels
.Click Update to accept the permissions and continue.
Accepting these scopes will allow AfterSell to inject and activate the Rokt Web Pixel automatically.
Step 2: Accept Terms and Conditions
After granting the required permissions:
You will be prompted to review and accept our Terms and Conditions.
Press Save & Continue to proceed.
Step 3: Activate Free Plan
Following the Terms and Conditions:
You will be prompted to accept the AfterSell Free Plan (Rokt Ads).
Click Approve to complete the activation.
Once approved, your onboarding is complete, and you will be redirected to the Rokt Ads dashboard, where you will see your newly created Rokt Account ID.
Step 4: Web Pixel Activation
After completing onboarding, the Web Pixel installation will be triggered automatically.
Please allow up to 5 minutes for the activation to complete.
To Verify Pixel Activation:
On the Rokt Ads page (inside AfterSell), click the link labeled Customer Events Settings. This will take you directly to the right page in your Shopify Admin.
Alternatively:
Navigate manually to Shopify Admin → Settings → Customer Events.Once there:
Under App Pixels, look for "AfterSell".
Ensure the status is listed as Connected.
If the pixel does not appear immediately or shows "Disconnected," it may still be processing. Please wait a few minutes and refresh the page.
Additional Notes:
This activated web pixel does two things:
Adds a cookie when a customer lands on your site from one of your Rokt campaigns. Rokt will automatically add the “rtid” query parameter to the URL of the landing page.
Records conversions. If the customer has a cookie from step i) then the conversion will be attributed to your Rokt campaign.
The following settings will be applied automatically by the web pixel app.
Permission: Required > Marketing and Analytics. These are the default settings for new pixels. This is most relevant for customers in the EU and UK. To learn more, see Shopify’s documentation here.
Data sale: Data collected does not qualify as data sale. Conversion data is collected to optimize and monitor advertising campaigns and is not sold by Rokt.
For details on the Web Pixels API, see Shopify’s developer documentation here.