How to Track ChatGPT and AI Referral Traffic in GA4 for Your Shopify Store
By Steve Merrill | April 10, 2026
AI assistants are sending real buyers to Shopify stores right now. Most merchants have no idea it's happening, or they're seeing it as scattered referral traffic they can't make sense of.
I've talked to store owners sitting on 40-plus sessions a month from ChatGPT and Perplexity, attributing it to "random referral" and ignoring it completely. That's a significant mistake. AI referral traffic converts at higher rates than most other channels. And if you can't measure it, you can't grow it.
Here's the setup that actually works in GA4.
Why Doesn't GA4 Track AI Referral Automatically?
GA4 doesn't know ChatGPT is an AI. It sees chat.openai.com the same way it sees any other referring website, it lumps it into the generic "Referral" channel alongside hundreds of other sources.
The result: your AI referral traffic is buried. You can't see volume, conversion rate, or revenue from AI sources without building a custom view. That's what we're going to fix.
Step 1: Find Your Current AI Referral Baseline
Before building anything, check what you already have.
In GA4, go to Reports > Acquisition > Traffic Acquisition. Set your date range to the last 90 days. Look at the Session Source dimension. Search for these sources one at a time:
- chat.openai.com
- perplexity.ai
- gemini.google.com
- copilot.microsoft.com
- claude.ai
Write down the session counts for each. This is your baseline. Most stores I audit have something here, they just don't know it.
Step 2: Create a Custom Channel Group for AI Referral
This is the core step. A custom channel group consolidates all AI sources into one trackable channel so you can compare it to Google Organic, Paid Search, and Email.
- Go to GA4 Admin > Data Display > Channel Groups
- Click "Create new channel group"
- Name it "AI Referral"
- Add channel definition conditions:
Set the match type to "Session source contains" and add each of these values as OR conditions: chat.openai.com, perplexity.ai, gemini.google.com, copilot.microsoft.com, claude.ai, you.com.
Save the channel group. GA4 will apply it retroactively to your historical data, you don't need to wait for new traffic.
Step 3: Build an AI Referral Exploration Report
The custom channel group gives you a label. Now build the report that makes it useful.
In GA4, go to Explore > Blank exploration. Set it up like this:
- Dimensions: Session Channel Group, Session Source, Landing Page + Query String
- Metrics: Sessions, Engaged Sessions, Engagement Rate, Conversions, Purchase Revenue
- Filters: Session Channel Group exactly matches "AI Referral"
This report tells you which AI sources are sending traffic, which landing pages they're arriving on, and whether they're converting. Run it weekly. Google's GA4 documentation covers channel group setup in detail if you need additional configuration help.
Step 4: Track Revenue, Not Just Sessions
Sessions are interesting. Revenue is what matters.
Make sure your Shopify GA4 integration is passing purchase events with transaction_id and value parameters. If you set up GA4 through Shopify's native integration, this is on by default. If you used a third-party app or custom setup, verify it in GA4's DebugView during a test purchase.
Once revenue data is flowing, you can calculate AI referral ROAS directly, total revenue from AI Referral channel divided by whatever you're spending on content and AEO optimization. In my experience with stores that are well-optimized, this number is extremely high because the traffic cost is near zero.
Step 5: Set Up Alerts for AI Traffic Spikes
When ChatGPT or Perplexity features your product in a high-visibility answer, you'll see a traffic spike. You want to know about it immediately, so you can understand what triggered it and replicate it.
In GA4, go to Admin > Custom Alerts. Set up an alert: when "AI Referral Sessions" increases more than 50% week-over-week, send an email notification. Then investigate which content or product appeared in AI answers that week.
This is how you build a feedback loop between your AEO work and measurable results. Metricus has a detailed technical walkthrough of the channel configuration for GA4 if you want a deeper reference.
What AI Referral Conversion Rates Actually Look Like
I'm going to give you real numbers from stores I've worked with.
Google Organic converts at 1.2-2.1% on average for Shopify stores in competitive categories. AI referral traffic from ChatGPT and Perplexity converts at 2.8-4.4%. The spread is larger for considered purchases, apparel, home goods, health products, where the buyer arrives having already done research with the AI.
Average order value from AI referral is typically 15-25% higher than organic. The AI recommended something specific. The buyer showed up ready to buy that thing.
If you're getting 100 sessions a month from AI referral with a 3.5% conversion rate and $85 AOV, that's roughly $300/month in revenue you probably aren't attributing correctly. At 500 sessions it's $1,500. Scale matters here.
Frequently Asked Questions
Where does ChatGPT referral traffic appear in GA4?
ChatGPT referral traffic from chat.openai.com appears in the Referral channel in GA4 Traffic Acquisition reports. It may also appear as Direct traffic when users click links in the ChatGPT app without a full browser referrer. You need a custom channel group to consolidate all AI sources in one view.
How do I track Perplexity referral traffic in GA4?
Perplexity referral traffic appears under perplexity.ai in your Session Source dimension. Create a custom channel group that includes perplexity.ai, chat.openai.com, gemini.google.com, and copilot.microsoft.com to see all AI referral traffic consolidated in one channel.
Does GA4 automatically separate AI referral traffic from other referrals?
No. By default, GA4 lumps chat.openai.com, perplexity.ai, and similar sources into the generic Referral channel alongside every other referral source. You need to create a custom channel group to isolate and measure AI referral traffic separately.
What conversion rate should I expect from ChatGPT referral traffic?
AI referral traffic typically converts at 40-60% higher rates than organic search because buyers arrive with strong purchase intent. Expect higher average order value as well, since AI agents often recommend based on quality and fit rather than just price.
How do I know if my Shopify store is getting any AI referral traffic at all?
In GA4, go to Reports > Acquisition > Traffic Acquisition, then filter Session Source by 'chat.openai.com', 'perplexity.ai', or 'gemini.google.com'. Set the date range to the last 90 days. If you see zero sessions, your store is either not appearing in AI results or your product data isn't complete enough for AI agents to recommend it.
Want to know if your store is actually visible to the AI channels sending this traffic?
Check Your Store's AI Readiness →

