Skip to main content
Solved

Firefox triggering multiple alerts instead of one

  • July 29, 2022
  • 1 reply
  • 322 views

Hi!

We are using amplitude to track usage of certain actions within our web app. When clicking some events we see in the live tracking that they trigger ~5 times instead of the 1 we expect. We dont see this behaviour when we run the app in Chrome, only in Firefox. Does anyone have any ideas on what could be happening?

Thanks :) 

Best answer by Zhenia Semenina

Hey there! It might be the instrumentation issue on Firefox, sometimes browsers trigger events on the page load as well as when the event is happening etc 

Do you have a method for possibly checking if the user did this event before?

You could implement some sort of condition check in your code to see if it is fired or not before.

You could also try to see if there's a Javascript method in web development to only do a fresh load and not load from the cache? Here is a StackOverflow article that touches on this.

 

Best,
Zhenia

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+7

Hey there! It might be the instrumentation issue on Firefox, sometimes browsers trigger events on the page load as well as when the event is happening etc 

Do you have a method for possibly checking if the user did this event before?

You could implement some sort of condition check in your code to see if it is fired or not before.

You could also try to see if there's a Javascript method in web development to only do a fresh load and not load from the cache? Here is a StackOverflow article that touches on this.

 

Best,
Zhenia


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings