Repository navigation
Closed
Labels
ai trafficAI-sourced traffic: tracking snippet and analyticse-commerceShopping, product catalog, store and marketplace connectorsenhancementNew feature or requestintegrationsSearch Console, Analytics, Composio, webhooks
Description
Summary
A product URL in a feed tagged utm_source=chatgpt.com&utm_medium=feed lets us tell a visit from a ChatGPT Shopping product card apart from one through a ChatGPT text answer.
Today:
- The AI Traffic snippet (
tracking-script.js) countsutm_source=chatgpt.comas ChatGPT. The match uses the source list inai-sources.json. /trackstores the visit assource_platform = 'chatgpt.com', with the full landing URL and the list'ssource_list_version.utm_mediumis in the stored URL, but nothing reads it.
So ChatGPT Shopping visits and their sales disappear into ChatGPT.
Scope
- Source list.
- Give ChatGPT a shopping surface in
ai-sources.json:utm_medium = feedmarks ChatGPT Shopping. - Add a
changesentry and bumpversion, asai-sources.jsrequires.
- Give ChatGPT a shopping surface in
- Snippet and
/track.- When the source is ChatGPT and the landing URL's
utm_mediumisfeed, store the visit with a surface marker (for examplesource_surface = 'shopping'). - The visit stays under ChatGPT, so ChatGPT's totals don't change.
- The visit also records the list version that counted it.
- Older rows carry their landing URL, so they can be marked by a one-off pass.
- When the source is ChatGPT and the landing URL's
- Reads.
- The AI Traffic page shows ChatGPT Shopping as its own row under ChatGPT, in the platform breakdown and the KPIs.
- It appears in Products' AI revenue once Products exists.
- Google Analytics.
ga-sync.jsreadssessionSourceonly. AddsessionMedium, and store it on the AI stats rows, so GA sessions with mediumfeedfrom ChatGPT count as ChatGPT Shopping too.
- Shopify orders. The order attribution in feat(integrations): Shopify integration, from install to App Store listing (epic) #1265 applies the same rule to the visit's
utmParameters. - Readiness check.
- We can already see whether the brand's feed links carry the tag: own-store ChatGPT Shopping cards keep their link in
prompt_result_shopping_cards.merchant_url. - Report the share of those links tagged
utm_medium=feed. - It becomes a Readiness row once Readiness exists.
- For Shopify brands, the fix that adds the parameters to feed URLs ships with the Shopify integration.
- We can already see whether the brand's feed links carry the tag: own-store ChatGPT Shopping cards keep their link in
Acceptance criteria
- A visit landing on
…?utm_source=chatgpt.com&utm_medium=feedis stored as ChatGPT, surface shopping, with the new list version. - It shows as ChatGPT Shopping on the AI Traffic page. ChatGPT's total still includes it.
- A visit with only
utm_source=chatgpt.comstays plain ChatGPT. - GA sessions with source
chatgpt.comand mediumfeedcount as ChatGPT Shopping. - Tests cover the snippet match,
/track, and the GA mapping.
Metadata
Metadata
Assignees
Labels
ai trafficAI-sourced traffic: tracking snippet and analyticse-commerceShopping, product catalog, store and marketplace connectorsenhancementNew feature or requestintegrationsSearch Console, Analytics, Composio, webhooks
Activity
feat(traffic): count ChatGPT Shopping visits from feed links tagged u…