How to avoid same events fire in each click inside the same page. | Community
Skip to main content
DMaya
Level 2
Mar 12, 2021 7:06 PM UTC
Solved

How to avoid same events fire in each click inside the same page.

Hi there! 

I created an event in Launch to track a button, it works but happens that all clicks after the new event is fired, also fire the same event, is there a way to avoid the event fires when we click in other link, button, etc.?

 

I´m new using Launch, hope someone can help.

Thank you

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Brian_Johnson_
Brian_Johnson_Accepted solution
Level 8
Mar 12, 2021 7:11 PM UTC

@dmaya - Are you saying the same call fires again, or that subsequent calls on the page include the success event that should only be associated with the button click?

If it's the former, your selector is probably too broad and needs to be updated. If it's the latter, make sure you're clearing the s.events value after the click event/rule fires so it doesn't persist to subsequent calls.

3 replies

Brian_Johnson_
Brian_Johnson_Accepted solution
Level 8
Mar 12, 2021 7:11 PM UTC

@dmaya - Are you saying the same call fires again, or that subsequent calls on the page include the success event that should only be associated with the button click?

If it's the former, your selector is probably too broad and needs to be updated. If it's the latter, make sure you're clearing the s.events value after the click event/rule fires so it doesn't persist to subsequent calls.

Translate
DMaya
DMayaAuthor
Level 2
Mar 22, 2021 6:55 PM UTC

Hi @evolytics_brian, thank you, it's the second, so, do I need to to set this cleaning into the rule?

Translate