Hey, it's Samo and welcome to module four in Ahrefs AI search course. Now, in module three, we covered how to create content, earn mentions, and optimize YouTube videos to get mentioned and cited in AI search. And we also talked about how you can optimize for the technical side of AEO. So, now you've got a playbook for execution. But, here's the thing. None of that matters if you can't measure whether it's working. And that's what this module is all about. Now, I'll be upfront with you. Measuring AI visibility is a lot harder than measuring results from traditional SEO. With SEO, you've got Google Search Console giving you impressions, clicks, and rankings. With AI search, a lot of that data either doesn't exist or is hidden from you. But, that doesn't mean you're flying blind because there are three ways to track your AI visibility. And in this lesson, I'm going to walk you through how to set each one up. Let's get started. So, the first thing you should track is AI referral traffic to your site. This is when someone clicks a link from ChatGPT, Perplexity, Claude, or another AI platform and lands on your site. In analytics tools like Google or Ahrefs Web Analytics, it'll show up as a referral visit. This is helpful in knowing how many people are finding you because of AI. But, here's where it gets tricky. Not all AI platforms pass referral data properly. Some of them strip it out entirely, which means the visit shows up as direct traffic in GA4. And if it does that, then there's no real way to know that the traffic came from AI. For example, ChatGPT's source links in search results pass referral data properly. But, in-content links on paid accounts use a no-referrer attribute. So, those visits are actually invisible. Claude tracks properly. Perplexity tracks on the web, but not on its desktop app. Copilot tracks on the web, but not on Windows. And Grok doesn't pass referral data at all. So, the key takeaway here is this. Use AI referral traffic to understand the general trend of which AI platforms are sending you customers and visitors. But understand that what you see in your analytics is likely an undercount. Now, with that caveat out of the way, let me show you how to set this up. If you're using GA4, you'll want to create a custom channel group that isolates AI traffic. Go to admin, then data display, then channel groups. Copy your default channel group and add a new channel called AI traffic. Then set the source to match a regex that includes chat.openai.com, perplexity gemini.google.com copilot.microsoft.com, claude.ai, and deepseek.com. Once that's set up, go to reports, then acquisition, then traffic acquisition, and select your new channel group. Now you can see the traffic AI is sending you, the pages it's directing people to, and how those visitors behave compared to other channels. Now, if you want something simpler than GA4, Ahrefs has a free tool called web analytics that does this automatically. It has a built-in AI search channel, so you don't have to set up any custom groups. It also separates unknown traffic from direct traffic, which GA4 doesn't do. That means you can get a clearer picture of where your traffic is actually coming from. All right, so once you've got AI traffic set up, there are two things I'd pay attention to. First, look at which pages are getting AI traffic. These are the pages AI is already recommending to users. Make sure you keep these up to date, keep them accurate, and have clear calls to action. If AI is sending people to a page that hasn't been updated in a year, it'll probably stop sooner than you'd like. And second, look at your important pages that aren't getting AI traffic. If you've got a key product page or a high-value blog post that's getting zero AI referrals that should be getting it, that's worth investigating. It could be a content issue, a crawling issue, or it could just mean AI isn't surfacing that topic yet. The second thing to track is AI bot activity on your site. This one's a bit different. Instead of tracking the humans who click through from AI, you're tracking the AI bots themselves, the crawlers that visit your site to read and index your content. And here's something most people don't realize. AI bots visit your pages far more often than humans do. So, the pages they're hitting the most are likely your strongest citation candidates. Now, there are two types of AI bots to know about. The first type is training bots like GPT bot and Google extended. These take your content and use it to train AI models. The second type is search and citation bots like ChatGPT user and OAI search bot. These fetch your pages in real time when a user asks a question. These are the ones that can actually drive referral traffic to your site. To track bot activity, you can use server logs if you have access to them, but the easier way is through Ahrefs bot analytics, which has a Cloudflare integration that shows you exactly which AI bots are visiting your site, how often, and which pages they're focusing on. And this works with a free Cloudflare plan, too. Now, what you're looking for here are patterns. If a citation bot is hitting a specific page repeatedly, that page is likely being used as a source in AI responses. And if there are important pages that bots aren't visiting at all, that could mean they're hard to discover, which ties back to the internal linking and site structure we talked about in module three. All right, the third thing to track is self-reported attribution. This one's the simplest to explain, but it might be the most important for proving the value of AEO to your team and to your clients. You see, a lot of the impact of AI visibility doesn't show up in your analytics at all. Someone asks ChatGPT for a recommendation, they get your brand name, then they go to the browser bar, and they type it directly in there. That shows up as direct traffic. Or, they Google your brand name after hearing about you from AI. That's going to show up as organic search traffic. So, the only way to capture this is to ask people directly. Add a "How did you hear about us?" question to your sign-up flow, your checkout process, or your post-purchase survey. Include options like AI assistant, ChatGPT, Perplexity, etc. And AI search, like Google AI overviews. At Ahrefs, around 3% of our conversions came from AI over the last year, based on self-reported data. And our AI visitors convert at a much higher rate than organic search visitors. But, we would never have known that without asking. So, if you only do one thing from this lesson, add that question to an entry survey. It's the most direct way to connect AI visibility to actual business results. Now, these three pillars work best when you use them together. Referral traffic tells you what AI is sending to your site. Bot analytics tell you what content AI is paying attention to. And self-attribution tells you what's actually driving revenue. No single source gives you the full picture. But, together, they give you a pretty clear view of how AI is interacting with your brand and where you should focus your efforts. And on top of these three pillars, you've still got brand radar tracking your AI visibility across platforms, which is what I showed you how to do back in module two. So, now that you've got your analytics set up, the big question is, is all of this actually worth it? What's the ROI of AEO? And what should you actually be doing on a weekly and monthly basis to keep growing your AI visibility? That's what we'll cover in the next and final lesson. I'll see you there.