Hello,
I have a question,
How will the data collection/calls affect the checkbox, "document will unload".
What I have observed is if I uncheck this, it will give the request type is "interact" or if I check the box the request type is "collect" ?
Please let me know if this could affect the calls, performance etc.
Solved! Go to Solution.
Views
Replies
Total Likes
Added some more context to my initial reply.
No:
Views
Replies
Total Likes
Hi @gmadala
ticking the checkbox will turn the request into a beacon/ping that is choosing a different request type. You regular requests are GET or POST requests, whereas a beacon is designed/intended to be sent in the browser background which will likely improve tracking accuracy.
This can be crucial if you put a click tracking on e.g., a button or link that causes a browser navigation and might be canceled from the browser for performance reasons. This is a classic issue with click tracking.
Downside of this request type is that the payload is not as easy to analyze by for instance automated tests and/or browser extensions.
What's also not ideal is that the UI only shows a checkbox and does not let you evaluate whether it should be sent as beacon on the fly, for a generic click tracking that only uses the beacon when needed.
in AppMeasurement, this could be set onthe fly on request base with a.useBeacon = true and automatically get reset after the request.
https://developer.mozilla.org/en-US/docs/Web/API/Beacon_API
Views
Replies
Total Likes
So you would recommend, unchecking the box for link calls and keep it checked for regular pageview calls ?
I would like to know whats the standard across.
Views
Replies
Total Likes
Added some more context to my initial reply.
No:
Views
Replies
Total Likes
Hi @gmadala Did you find the suggestions helpful? Let us know if you need any further information! If the solution works for you, please mark the answer as correct to help others. And if you’ve found your own solution, we’d love for you to share it with the community. Thank you!
Views
Likes
Replies
Views
Likes
Replies