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

Page Load multiple times

  • April 21, 2022
  • 1 reply
  • 2254 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
Level 10
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
Level 3
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.

 

 

Alexis_Cazes_
Level 10
April 22, 2022

Right if you are using an SPA, could you provide example of how your URL structure is when you move from one "page" to another. Does the content only gets repainted or the route (URL) fet updated as well.

 

Also please provide example of you rule, what is the event, what are the conditions.

 

Depending on your SPA implementation they are multiple options for implementation. 

 

For example in our SPA the URL get updated between each "page", the hash gets changed. Prior using data layer with an events array, we used a solution to store current hash and if the hash did not change we aborted analytics call for example.