Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!
SOLVED

Right click tracking

Avatar

Level 2

Hi,

I have a metric which tracks on click of a link on page (no problems there), but I'm not sure whether this is still triggered if I right click and, say, open the link in a new tab.

Is right clicking and opening in a new tab tracked, or does that require separate implementation?

So far I've struggled to find an environment where I can QA metrics before pushing experiments live - what's the best way to go about this?

Thanks,

Chris

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Chris ,

No it is not tracked on right click of link.For tracking the link on right click you have to use the onmousedown event listener. For more info on mousedown event listener  see : http://stackoverflow.com/questions/2405771/is-right-click-a-javascript-event

Right click tracking can be done using at.js plugin function : adobe.target.trackEvent(options) 

This function fires a request to report user actions, such as clicks and conversions. It does not deliver activities in the response.

Please see the following link for more info : https://marketing.adobe.com/resources/help/en_US/target/ov2/r_target-atjs-trackevent.html

Thanks & Regards

Parit Mittal

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi Chris ,

No it is not tracked on right click of link.For tracking the link on right click you have to use the onmousedown event listener. For more info on mousedown event listener  see : http://stackoverflow.com/questions/2405771/is-right-click-a-javascript-event

Right click tracking can be done using at.js plugin function : adobe.target.trackEvent(options) 

This function fires a request to report user actions, such as clicks and conversions. It does not deliver activities in the response.

Please see the following link for more info : https://marketing.adobe.com/resources/help/en_US/target/ov2/r_target-atjs-trackevent.html

Thanks & Regards

Parit Mittal