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

Goal Metric on a Single page Angular application

Avatar

Level 2

I have an Adobe Target Form based AB test which is used on a Single page Angular application.

I want to be able to track conversion on the SPA.

I have presumed that I ned to call triggerView() within the application to let AT know when the views are changing.

How do add a goal to track the view changes in the reports?

In the Goal Metric section the goal options are:

What do you want to measure with this activity?

Conversion

What action was taken by your audience to indicate your goal has been reached?

Viewed a Page, Viewed an mbox, clicked on mbox.

Am I missing something. There does not appear to be any way to select view changes.

Is there a way to track a view change?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Create and call an mbox on conversion event and set it as a goal in the activity.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Create and call an mbox on conversion event and set it as a goal in the activity.

Avatar

Level 2

Andrey,  Thanks for that.

Can you tell me exactly how to do that? Code sample would be good.

I was thinking of calling trackEvent() Thus:

  adobe.target.trackEvent({ 'mbox': viewName });

This worked a couple of times then AT stopped counting the conversion event though I was on new clients.

I think I am missing something here.

How do I create and call an mbox in code?