Page Load multiple times | Community
Skip to main content
April 21, 2022
Solved

Page Load multiple times

  • April 21, 2022
  • 1 reply
  • 2238 views

Hello,

 

I have set up Adobe Analytics on the site, but when I go backwards on the site, I get multiple page loads happening. (like twice or thrice apart from the main event + page load , which I believe should happen only once).

 

Can someone guide me on how to fix this?

 

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Alexis_Cazes_

First you would need to check which rules are fired on your site (if you have implemented Adobe Launch or any other TMS).

 

When you say backwards do you mean using the back button in your browser? If that is the case depending on how you site is implemented it might behave in a specific way that loads different states on your site when you click on back button.

 

For example in some SPA when you click on back button it will unload current route, then load another route inbetween the previous route and and the current route to do some things. If you implementation looks at hash change or url change then it would trigger analytics calls for the route used in between

1 reply

Alexis_Cazes_
Alexis_Cazes_Accepted solution
April 21, 2022

First you would need to check which rules are fired on your site (if you have implemented Adobe Launch or any other TMS).

 

When you say backwards do you mean using the back button in your browser? If that is the case depending on how you site is implemented it might behave in a specific way that loads different states on your site when you click on back button.

 

For example in some SPA when you click on back button it will unload current route, then load another route inbetween the previous route and and the current route to do some things. If you implementation looks at hash change or url change then it would trigger analytics calls for the route used in between

jane_120Author
April 21, 2022

Thank you for the response.

 

I am using Adobe launch to set the rules.

 

Yes by back button I mean the one one the browser. 

 

Also the site I'm working is SPA.

 

 

Pablo_Childe
Community Advisor
Community Advisor
April 21, 2022

SPAs by there very nature when back or forward buttons are pressed will do this double fire you see. Its caused by how SPA in essence reloads all of its components from root index and then the page state you were going to.

 

Ideally you have a direct call rule for the page state change via a satellite trackcall, your developer needs to adjust APP page code to not reload the analytics code twice on browser clicks back and forth. (relates to how many SPAs have an index.html that then also fires a second page load for desired next page state)

 

GLTU