How to dedupe server calls from a single page app?
Hi community,
we have recently discovered we have multiple identical server calls in some instances.
Did anyone had this issue?
What is the best way to dedupe those through Launch?
Thanks
Hi community,
we have recently discovered we have multiple identical server calls in some instances.
Did anyone had this issue?
What is the best way to dedupe those through Launch?
Thanks
Hi in SPA like angular based apps. What often happens is a master index.html file calls your templates and analytics and then your state changes also fire to in essense make 2 server calls.
1st thing for SPAs i recommend use direct call rules for state change(virtual page view in essence). They should then only fire once per navigation. This will mean you need a digitaldatalayer in place to populate things like pagename.
Once this is done then your devs need to on first page load disable the index load so just the direct call rule fires.
Also in SPAs make sure dev trigger direct call rules on back and forward browser navigations.
GLTU
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.