Goal Metric on a Single page Angular application | Community
Skip to main content
June 21, 2019
Solved

Goal Metric on a Single page Angular application

  • June 21, 2019
  • 2 replies
  • 1422 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Andrey_Osadchuk

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

2 replies

June 24, 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?

Andrey_Osadchuk
Andrey_OsadchukAccepted solution
New Participant
June 21, 2019

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