Starter Tutorials Blog
Tutorials and articles related to programming, computer science, technology and others.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.
Home » General » SEO » Track AI Traffic in GA4
Suryateja Pericherla Categories: SEO. No Comments on Track AI Traffic in GA4

With AI tools and LLMs (Large Language Models) like Gemini, ChatGPT, Claude, Grok, etc., becoming more and more popular, websites are seeing an increase in traffic from them. Website owners and SEO agencies might want to know how to track traffic from these AI tools in GA4 (Google Analytics 4).

 

Track AI Traffic in GA4
Generated with Gemini

 

GA4 already tracks the traffic coming from the AI tools and LLMs. The default reports in GA4 just hide this data under Referral channel from the user. We will see two ways to check the traffic from AI tools.

 

Steps to track AI tools traffic separately in GA4

1. Open GA4, open Traffic acquisition: Sessions report under the Acquisition tab as shown in the image below:

GA4 Traffic Acquisition Sessions

 

2. On the right-hand side, scroll down, and change the Session primary channel group in the drop down to Session source / medium as shown in the image below:

GA4 Traffic Sessions Source Medium

 

3. Now, you can see AI tools and LLMs traffic in the data display as shown in the image below:

3 GA4 Traffic from AI Tools and LLMs

 

Tip: By default, GA4 displays only 10 rows of data. You can see more rows by changing the Rows per page value from 10 to another higher value as shown in the image below:

GA4 Traffic Rows Per Page

 

So, we have seen how to traffic from each AI tool or LLM separately. Now, let’s see how to see the traffic from these tools as a group.

 

Steps to track AI tools and LLMs as a group in GA4

1. Click on the gear icon in GA4 and on the right-hand side, scroll down, and select Channel groups under the Data display category as shown in the image below:

GA4 Traffic Channel Groups

 

2. Click on Create new channel group as shown in the image below:

GA4 Traffic Create New Channel Group

 

3. Give some Group name. For example, Custom and then click on Add new channel.

 

4. In the Channel details screen, give some value to the Channel name field. For example, let’s give it as AI Tools. Click on Add condition group as shown in the image below:

GA4 Traffic Add Condition Group

 

5. Select Source in the drop down, click on Add a condition. Under the conditions, select matches regex and paste the following regex string and click on Apply.

Regex code

^(?:(?:.*chatgpt.*)|Claude\.ai|quillbot\.com|openai\.com|blackbox\.ai|perplexity(?:\.ai)?|copy\.ai|jasper\.ai|copilot\.microsoft\.com|gemini\.google\.com|(?:\w+\.)?mistral\.ai|(?:\w+\.)?deepseek\.com)$

 

Tip: You can add more AI tools or LLMs in the above regex string to show in the report.

 

6. Click Save channel button at the top.

 

7. Before we can save this channel group, we need to reorder our channels to ensure that this new AI Tools traffic doesn’t end up in other channels.

 

Click Reorder button that is next to the Add new channel button as shown in the image below:

GA4 Traffic Reorder

 

8. Scroll down to the bottom, click on the handles and drag up the AI Tools group and place it just above the Referral group as shown in the image below:

GA4 Traffic Reorder Groups

 

9. Click on Apply and then finally click on Save Group button. You can now see your Custom group in the list.

 

10. Now, you can go to the Traffic acquisition: Sessions report under the Acquisition tab and change the value in the drop down to Session Custom as shown in the image below:

GA4 Traffic Session Custom

 

11. Now you should see if you already have website traffic from AI tools as shown in the image below:

GA4 Traffic AI Tools Traffic Report

 

Let me know in the comments if this article has helped you or if you have any other suggestions or addons.

 

References

 

How useful was this post?

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?


Subscribe to our monthly newsletter. Get notified about latest articles, offers and contests.


Leave a Reply

Your email address will not be published. Required fields are marked *

Facebook
Twitter
Pinterest
Youtube
Instagram
Blogarama - Blog Directory