tagging of data after the element is loaded in html from the backend data base

Bronze Contributor
Bronze Contributor

hi i have a page where the id comes from the backend table  and it comes from a method call in the page while loading of page.Here the id comes after the page load and reflects after few seconds inconsistently like it might be 2 seconds or 8 seconds tooo... how can i tag this id  for a consistent firing and reporting what ever time it takes to fetch and load the id from database.

1 REPLY 1

tagging of data after the element is loaded in html from the backend data base

Employee Emeritus

Hi @maanya_sai 

The timing is definitely going to be a challenge.

If things execute as is, there is a chance the user will navigate away from the page within that 2-8s window and before the ID is retrieved for processing. This is unfortunately unavoidable. We can't control how the user will choose to behave.

I will throw a suggestion out there, however, please note it may be questionable to use depending on your circumstance. Since you can't force the user to stay, you could include some kind of interactive element on the page to distract the user for a few seconds while the ID is being retrieved and increase the chance of sending the tracking with the ID included.

Public