Solved

Firefox triggering multiple alerts instead of one

  • 29 July 2022
  • 1 reply
  • 97 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 :) 

icon

Best answer by Zhenia Semenina 4 August 2022, 14:26

View original

1 reply

Userlevel 4
Badge +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