Tag your ChatGPT ad URLs
How Prism recognises ChatGPT Ads clicks, and the one tracking template that adds campaign and ad level attribution.
Prism recognises a click on a ChatGPT ad automatically. When someone clicks your
ad, ChatGPT adds a click token (oppref) to your landing page URL, and Prism
counts that visit as ChatGPT Ads. Visits from ChatGPT that did not come from
an ad (a link in a normal answer) stay in ChatGPT, the organic channel.
New to ChatGPT Ads? How to set up ChatGPT Ads on Shopify covers the account, the Shopify app, conversion tracking and budgets.
What needs one small change is campaign and ad level attribution: which of your ChatGPT campaigns and ads actually drove orders according to Prism's own models. The click token tells Prism the visit came from ChatGPT Ads, but not which campaign. To get that, add a tracking template so ChatGPT stamps the campaign and ad IDs onto every click.
Like all attribution in Prism, this works forward from the day you add it. Orders before that stay at the channel level. The ChatGPT Ads channel row works either way.
The tracking template
In ChatGPT Ads Manager, set this as the campaign's URL parameters (the
query_string_template). ChatGPT replaces the {...} macros at click time:
pr_campaign_idandpr_ad_idare Prism's own parameters. Prism reads them first, so they keep matching even if you rename a campaign.- Prism works out the ad group from the ad, so you don't need an ad group macro.
utm_source=chatgpt&utm_medium=cpckeeps the visit labelled ChatGPT Ads in other analytics tools too.
If you already use a template (for example campaign names in utm_campaign, or
another tool's parameters), keep it and add the two pr_ parameters to the end:
Example: a landing page of https://yourstore.com/products/best-seller is
clicked as
Previews and test clicks
Clicks from the Ads Manager preview carry a placeholder token such as
oppref=preview_mock or oppref=test. Prism ignores those, so your own preview
clicks are not counted as ChatGPT Ads traffic.
How to tell it's working
- New visits from your ads show up under ChatGPT Ads on the Attribution page.
- Once a tagged click turns into an order, open the ChatGPT Ads drill-down to see campaign and ad rows with Prism's attributed orders and revenue.
- If your ChatGPT Ads account is connected in Prism, the same rows also show spend, clicks and the platform's own ROAS.