trackAction in mobile app is causing pageViews to increment | Community
Skip to main content
fredrambert
New Participant
January 20, 2021
Solved

trackAction in mobile app is causing pageViews to increment

  • January 20, 2021
  • 3 replies
  • 2678 views

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.
Best answer by khurshid

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

3 replies

khurshid
khurshidAccepted solution
Employee
January 22, 2021

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

fredrambert
New Participant
January 25, 2021
Thanks Khurshid. That was indeed the issue.
fredrambert
New Participant
January 21, 2021
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.
ankitnagarsheth
New Participant
January 20, 2021

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