Hi,
I agree with Jen Andrews here...you don't need to set page name with trackAction calls. However, in some cases, you may want to set pagename with trackAction calls.
How page name gets set:
trackState
reports the View State as Page Name, and state views are reported as Page View in Analytics. The value is sent to Analytics by using the page name variable (pagename=value).
If you really need to set pagename with trackAction call I would recommend setting pagename in contextData with trackAction call and then map that in a custom prop in processing rule.
Example
SDK:
[ACPCore trackAction:@"my_action" data:@{@"action_pagename":@"my page name"}];
Processing Rule:
Rule Set | Value
|
---|
Condition | If a.action equals 'my_action' |
Action | Overwrite value of prop1 to context data 'action_pagename' |
This setting will allow you to set pagname in custom prop with trackAction.
Note: you can directly overwrite pagename with any contextData value in proc rules but it may have an impact over data collection in Adobe. Hence you must talk with processing rule expert about its consequences over data collection/reporting in Adobe beforehand.