Skip to main content
fredrambert
Level 2
Jan 20, 2021 5:30 PM UTC
Solved

trackAction in mobile app is causing pageViews to increment

Hi All, 

has anyone else run into issue where trackAction calls are incrementing pageviews ? 

 

final Map<String, Object> contextData = new HashMap<String, Object>() {{
put(Key.SCREEN_NAME, screenName);
put(Key.SECTION, section);
put(Key.DLC_CLICKED, true);
put(Key.DLC_FILE_TYPE, content.getExtension());
put(Key.DLC_NAME, content.getTitle());
put(Key.DLC_PROPERTY_ID, placeId);//content.getPlaceId());
}};
trackAction(action, contextData);

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
khurshid
khurshidAccepted solution
Adobe Employee
Jan 22, 2021 7:55 PM UTC

Check if a processing rule is setting Page Names. If Page Name is set in processing rules, custom link increment page views.

7 replies

ankitnagarsheth
Level 2
Jan 20, 2021 9:22 PM UTC

You can explicitly set the mapping on https://mobilemarketing.adobe.com/ so that contextData variable is mapped to eVar/prop/event. More info at https://experienceleague.adobe.com/docs/mobile-services/android/analytics-android/actions.html?lang=en#section_3EBE813E54A24F6FB669B2478B5661F9 

 


 

 

Translate
fredrambert
Level 2
Jan 21, 2021 8:56 AM UTC
Hi Ankit. thanks for the note. I'm not sure this identifies the issue we are having though. Basically, we are triggering trackAction, however as you can see above, these actions are also triggering page views. This doesn't seem right as we expect that only trackState would increment page view counter.
Translate
khurshid
Adobe Employee
khurshidAdobe EmployeeAccepted solution
Adobe Employee
Jan 22, 2021 7:55 PM UTC

Check if a processing rule is setting Page Names. If Page Name is set in processing rules, custom link increment page views.

Translate
fredrambert
Level 2
Jan 25, 2021 10:46 AM UTC
Thanks Khurshid. That was indeed the issue.
Translate