Expand my Community achievements bar.

Adobe Summit is live! Tune in to take part in the premier digital experience event.

Can we add Click Tracking on Button through adobe Test and Target

Avatar

Level 2

Can we add Click Tracking on Button ?
<button type="button" class=" button green-btn caps" >View Fares</button>

How to render new mbox on  click of button ?
Can we use  adobe.target.trackEvent ?
Any Example related to that  will be helpful

3 Replies

Avatar

Level 10

Check this page, there are a few examples of how you can implement trackEvent: https://docs.adobe.com/help/en/target/using/implement-target/client-side/functions-overview/adobe-ta...

Avatar

Level 3

When we are using adobe.target.trackEvent, we cannot use the adobe analytics as goal metric. How can i use adobe analytics as goal metric with custom tracking?

Avatar

Level 2

@hariharans94469549​- Are you using Adobe Launch to manage your link tracking?  You could assign a rule to listen for clicks on the element and send a custom link along with with rendering a new mbox from within the rule.