Event should Fire only on the first click ideally | Community
Skip to main content
Level 2
August 2, 2023
Solved

Event should Fire only on the first click ideally

  • August 2, 2023
  • 2 replies
  • 1119 views

Hi Team,

We wanted to calculate some high interest rate where user landing on the product page and clicking basically component click, Links etc.

 

Is there any possible way to track the first click.?

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 Jennifer_Dungan

You can also apply a condition to your click rule:

 

Here is a sample for 1 click per page view:

 

But you have many options, such as per session or user, etc:

 

 

Now this will prevent tracking for any additional clicks... but if you are just trying to distinguish the first click from other clicks....

 

You could always use the cookie option as suggested by Yuhuisg.

 

 

How are you planning on using this? It's also possible you may be able to create a segment in your existing data without changing how your data is collected?

2 replies

yuhuisg
Community Advisor
Community Advisor
August 2, 2023

You could set a cookie in the user's browser to indicate that he has clicked a link. So in your implementation, you'll have something like this:

if (cookie exists) { don't track } else { do track set cookie }

(That is obviously not valid code.)

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
August 2, 2023

You can also apply a condition to your click rule:

 

Here is a sample for 1 click per page view:

 

But you have many options, such as per session or user, etc:

 

 

Now this will prevent tracking for any additional clicks... but if you are just trying to distinguish the first click from other clicks....

 

You could always use the cookie option as suggested by Yuhuisg.

 

 

How are you planning on using this? It's also possible you may be able to create a segment in your existing data without changing how your data is collected?

Level 2
August 3, 2023

@jennifer_dungan @yuhuisg Thank you !! Yes, Trying to distinguish the first click from other clicks. Works fine.

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 3, 2023

You could also use one rule with a condition for the first click to just set a value (not send a beacon), then the "all clicks" rules can fire (adding in the data from the first rule to indicate the "first click" nature...

 

You just need to be sure that the rules fire in order, and that the data collects correctly for first vs subsequent.