Expand my Community achievements bar.

SOLVED

Event should Fire only on the first click ideally

Avatar

Level 2

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.?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

You can also apply a condition to your click rule:

 

Here is a sample for 1 click per page view:

Jennifer_Dungan_0-1691006297268.png

 

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

Jennifer_Dungan_1-1691006357909.png

 

 

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?

View solution in original post

4 Replies

Avatar

Community Advisor

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.)

Avatar

Correct answer by
Community Advisor and Adobe Champion

You can also apply a condition to your click rule:

 

Here is a sample for 1 click per page view:

Jennifer_Dungan_0-1691006297268.png

 

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

Jennifer_Dungan_1-1691006357909.png

 

 

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?

Avatar

Level 2

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

Avatar

Community Advisor and Adobe Champion

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.