Comment

Avatar

Community Advisor

19-04-2018

Hi Kyle, this can be achieved by using trackEvent function if you are using AT.js (you can use mboxUpdate() in case of mobx.js).

How to use trackEvent is defined here: at.js Functions

Steps:

1. In your offer code, bind the click event of specific selector using jQuery code:

$('.xyz').click(function(event){

  adobe.target.trackEvent({

    "mbox": "your_mbox_name",

    "params": {

        "cta": "your-cta-name"

    }

    });

});

2. Now you can use your_mbox_name while setting up Success metric

Reporting source: Target; Metric: Conversion; Action: Viewed an mbox mbox: your_mbox_name

3. Add Targeting Audience with consition cta=your-cta-name. This allows you to  keep the mbox-name used in step 1 same across all activities and just change your-cta-name to track multiple CTAs.

Hope this helps,

Regards,

Rajneesh