Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

How to capture AI generated results from Google?

Avatar

Level 3

Hello,

 

As you all know, now Google usually generates an AI result for any search, giving you the sources it used on the right. If you click on those, it will take you to your site URL appending something like "#:~:text" to it.

 

I have created a Marketing Channel to allocate traffic coming from sites like Chat GPT and so to "AI traffic", and I want to send these AI generated results to this bucket. The problem is that I don't know how to capture this "#:~:text=" used by Google. Neither window.location.hash nor window.location.href worked :s.

 

Any ideas? I would also appreciate if you shared any other tips regarding the use of AI as a Marketing Channel.

 

Thanks!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Community Advisor and Adobe Champion

I was just posting about this in another thread... for some reason this newer hash version doesn't seem to be extractable....

 

If I have a normal hash (#something), I can use window.location.hash to get the hash value

However, if I do this on this newer "scroll to text" hash, the above doesn't work....

 

I've tried multiple attempts, and all have failed.

Avatar

Level 3

Thanks for the effort! Any workarounds on this AI attribution? As obviously, we have to take this new AI channels into consideration.