Expand my Community achievements bar.

Get ready! An upgraded Experience League Community experience is coming in January.
Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Goal Metric on a Single page Angular application

Avatar

Former Community Member

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

Former Community Member

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?