Skip to content

feat(traffic): count ChatGPT Shopping visits from feed links tagged utm_medium=feed #1283

Closed

Description

@gkhngyk

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) counts utm_source=chatgpt.com as ChatGPT. The match uses the source list in ai-sources.json.
  • /track stores the visit as source_platform = 'chatgpt.com', with the full landing URL and the list's source_list_version.
  • utm_medium is in the stored URL, but nothing reads it.

So ChatGPT Shopping visits and their sales disappear into ChatGPT.

Scope

  1. Source list.
    • Give ChatGPT a shopping surface in ai-sources.json: utm_medium = feed marks ChatGPT Shopping.
    • Add a changes entry and bump version, as ai-sources.js requires.
  2. Snippet and /track.
    • When the source is ChatGPT and the landing URL's utm_medium is feed, store the visit with a surface marker (for example source_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.
  3. 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.
  4. Google Analytics.
    • ga-sync.js reads sessionSource only. Add sessionMedium, and store it on the AI stats rows, so GA sessions with medium feed from ChatGPT count as ChatGPT Shopping too.
  5. 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.
  6. 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.

Acceptance criteria

  • A visit landing on …?utm_source=chatgpt.com&utm_medium=feed is 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.com stays plain ChatGPT.
  • GA sessions with source chatgpt.com and medium feed count as ChatGPT Shopping.
  • Tests cover the snippet match, /track, and the GA mapping.

Activity

  1. added
    enhancement
    ai traffic
    integrations
    e-commerce
    on Oct 20, 2026
  2. added a commit that references this issue on Oct 23, 2026
    76c8736
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai traffice-commerceenhancementintegrations

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions