I am trying to find out what keyword search terms a customer may be using when they visit our website. Does AEM have the ability to run such a report?
Solved! Go to Solution.
Views
Replies
Total Likes
To capture search keywords in AEM Adobe Analytics, you'll need to implement custom tracking using the s.eVar variable. Here's a step-by-step guide:
1. Identify the Search Component:
2. Create a Custom s.eVar:
3. Implement Tracking in AEM:
Modify the search component's JavaScript to capture the search query and pass it to the s.eVar.
Here's a basic example using Javascript:
function handleSearch() {
var searchQuery = document.getElementById("search-input").value;
// Set the s.eVar value
s.eVar1 = searchQuery;
// Trigger the Adobe Analytics tracking beacon
s.tl(true);
}
Replace document.getElementById("search-input").value
with the actual selector for your search input field.
4. Verify Tracking:
Note: Response generated from AI .
@AnthonyJ_Battag IAre you talking about the search term used in say google and clicked a web link to your website? If the search page present in AEM, I dont think AEM provides OOTB analytics report in your AEM search application. You can easily integrate with Adobe Analytics and track it every time the user search. Please clarify what is the use case you are referring to ?
Thank you, yes, I did mean the search page on our website powered by AEM. That would require Adobe Analytics it appears.
Hi @AnthonyJ_Battag ,
Use capture event on search box and on input it will be tracked by analytics .
Thanks
To capture search keywords in AEM Adobe Analytics, you'll need to implement custom tracking using the s.eVar variable. Here's a step-by-step guide:
1. Identify the Search Component:
2. Create a Custom s.eVar:
3. Implement Tracking in AEM:
Modify the search component's JavaScript to capture the search query and pass it to the s.eVar.
Here's a basic example using Javascript:
function handleSearch() {
var searchQuery = document.getElementById("search-input").value;
// Set the s.eVar value
s.eVar1 = searchQuery;
// Trigger the Adobe Analytics tracking beacon
s.tl(true);
}
Replace document.getElementById("search-input").value
with the actual selector for your search input field.
4. Verify Tracking:
Note: Response generated from AI .
Views
Likes
Replies
Views
Likes
Replies