- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I understand what you're trying to do. You're simply wanting to capture the pageName on your success events. You could actually approach this in one of two ways.
- If you want to simply add pageName to a trackAction() call without capturing the remainder of your global variables that fire on every page view, you can simply fire the page name value you wish to track within a context value pair. For example: set a.pageName to the value you would prefer to see. When configured correctly, within your debugger you should see a.pageName set to the value you specified and further down the page, you will also likely see pageName with the name of your app. You should then be able to capture a.pageName in Adobe Mobile Services using the Manage Variables and Metrics tab to assign a.pageName to an eVar and/or prop of your choice.
- You could also fire a trackState() call along with a specific context variable identifying the action the user just performed. Example: app.event.eventName: login success. Then, you can write a Processing Rule that says: If app.event.eventName equals login success, then Set Event <eventX> to Custom Value 1.
Option 1 lets you still fire trackAction() while collecting your desired pageName information, while option 2 allows you to fire all variables associated to trackState() along with any associated event(s) you need.
Happy to answer any additional questions you may have. We’ve been doing this for a while now in our own implementation.
Thanks!
Jeff