Goal Metric on a Single page Angular application

bernardm1756841 21-06-2019

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?

Answers (1)

Answers (1)

bernardm1756841 24-06-2019

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?