Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!

Will 'search' event increment when search result page is not loading or with infinite loops?


Level 1

Will 'search' event increment when search result page is not loading or with infinite loops?


We want to know if 'search' count increases when a user performed a search but the search result page is not loading or with infinite loop?


We also want to know how to track the search result page load time and detect the occurrence when search result page is not loading properly - not load at all, spinning wheel, infinite refresh/ loop, etc. 


Thank you!




2 Replies


Level 8

@valtsai - Assuming your "search" event fires on load of the results page, and the page loads enough to fire the call to Adobe, then you will see all metrics and dimensions collect and increment in reports. If the page is reloading before the call to Adobe can fire, then you will not see the data collected. You can test this by checking in your preferred debugger or the network tab of your browser's dev tools.


Regarding tracking page load time, I'll point you to the getPageLoadTime() plugin: https://experienceleague.adobe.com/docs/analytics/implementation/vars/plugins/getpageloadtime.html?l... 


To track the page load issues/scenarios you mentioned, you'll won't be able to use Analytics. You'll have to find a different service to monitor for issues. For example, if the page doesn't load at all, your Analytics script will not run and no call to Adobe can be made.


Employee Advisor

If the page does load and fires the event every time on reload, the event will be recorded in Analytics. Recommendation will be to check the code and add fail safe method in the code so that the page does not fall in reload loop. A workaround would be to serialize the event so that Analytics report the event only once.