Expand my Community achievements bar.

SOLVED

AEP web sdk consider and counts s.tl call as pageview & Duplicate pageview metrics

Avatar

Level 3

Hi Team,

Doubt on AEP SDK IMPLEMENTATION:

I have two xdm send events

1. For pageload and

2nd one for Interactions/link click
My problem is: my link clicks got counted as page view it causing 2 pageviews.
I do have proper setup on web details class in schema value of pageview 1 and link click 0 for pageload event.
Links click 1 and pageview 0 for link click event. Not sure why link clicks incrementing pageviews. Anyone can help me on this

 

Note: Custom events are working proper it have exact pageview count but out of the box pageview metrics double counted.

DhanA2_0-1668228268369.png

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

There was some discussion about this in another forum, and this was the consensual solution:

---
For AA alone, forget eventType, setting web.webPageDetails.pageView.Value=1 or web.webInteraction.linkClick=1 themselves don't decide if the call would be s.t or s.tl(). Following is how AA processing works wrt. page vs non-page call:
  1. For a beacon to be considered a page view in AA you need either:
    • webPageDetails.name, Or
    • webPageDetails.URL
  2. For a beacon to be considered a link in AA you need:
    • webInteraction.type, And
    • Either of below two:
      • webInteraction.name, Or
      • webInteraction.URL
For Adobe Analytics you don't need, webPageDetailsvalue=1 for a page view or webInteractionValue=1 for a link click. However, doing this is definitely a good practice since you do need these for CJA and RTCDP.
---
Credit to Rajdeep Singh for this.

View solution in original post

19 Replies

Avatar

Community Advisor and Adobe Champion

Dear DhanA2,

Page Views are not just based on the Schema Value with Page View equals 1 or Link Click equals 1, but only based on the event type.

Set the page views properly like the one below.

Page View Call:

PratheepArunRaj_0-1668268700152.png

Non-Page View Call (i.e. Link Clicks):

PratheepArunRaj_1-1668268804261.png

So, set the Event Type properly, it will be resolved.

Thank You, Pratheep Arun Raj B (Arun) | NextRow DigitalTerryn Winter Analytics

Avatar

Level 3

Hi @PratheepArunRaj ,

 

Thanks for your response in my case event type also set as you mentioned but still I'm getting two pageviews, Do I need to focus on any other configs?

 

FYR:

DhanA2_0-1668343328471.png

DhanA2_1-1668343476593.png

Thanks for you help

 

 

Avatar

Community Advisor and Adobe Champion

I haven't used the Web SDK, but I initially had a similar issue with the Mobile SDK... make sure that neither PageName or Page URL is being set on your actions... if either of these dimensions is set (via processing rules, or maybe being sent as part of the action) this will count as a page view

 

I have a few hit level eVars to hold the page name and URL on all hits (page views and actions) to store this info (it also allows me to have 255 character limit, as opposed to PageName's 100 character limit)

Avatar

Level 3

@Jennifer_Dungan  Tried to by removing page name and URL but no luck if remove page name it still counting page view under "Other" .

 

thanks

Avatar

Level 1

setting.jpgAll above solutions did not work for me too. Then we inspected settings in  Adobe Experience Platform Web SDK extension.

Check if you have enabled click data collection.

if Yes, when sending event data, dont automatically include default context information and rather, select "Specific context information".

And disable Web (information about current page).

 

Enabling information about current page will send webURL by default on each custom linkclick and thus increase the pageview because of below condition.

 

  1. For a beacon to be considered a page view in AA you need either:
    • webPageDetails.name, Or
    • webPageDetails.URL

Avatar

Level 2

Hi @sumit_nijhawan and @yuhuisg , this is interesting. I am facing the same issue of multiple page views even though I disabled the "Web" checkbox. I see all interactions on the page are increasing the page views and reloads count.

 

Below are the screenshots of Page View and Link Click. Link click is triggering on subsequent page load server call as I have enabled default link click data collection settings.

AbhilashSh_0-1728297864065.png

 

AbhilashSh_1-1728298001746.png

 

Is it a known bug in Web SDK? Or is there any alternative to tackle this?

 

Thanks.

 

 

Avatar

Level 1

Hi @AbhilashSh , From the screenshots that you have shared, it seems like beacon call is getting pageName from somewhere in your implementation.

 

For a Adobe Analytics beacon to be identified as pageview, it needs either pageURL or pagename. Re-check your implementation code and you should identify how pageName value is getting passed in a linkClick 

Avatar

Level 2

Hi @sumit_nijhawan , I checked my implementation. The only reference I use to pass pageName is through the Web SDK settings on page load event through a data element as shown in the below screenshot. 

AbhilashSh_0-1728299403480.png

Other than this, I am passing the page name in a separate eVar. 

Is this issue got anything to do with Adobe Target integration? 

Avatar

Level 1

Hi @AbhilashSh , It does not seems like Adobe target issue, as Adobe Target captures/increases pageview during proposition fetch event and not on link Click. Check on webSDK extension if pageName value being passed as global value for all beacons.

Avatar

Level 2

@sumit_nijhawan , Thanks for your help. I verified my implementation. There was no issue with the pageName variable. It was quite opposite though. I was able to pinpoint and fix the issue. As per Adobe documentation ( https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/functions/tl-method ), for all server calls that needs to be treated as link clicks, below values should be set.

 

  • Link name: mapped to xdm.web.webInteraction.name.
  • Link URL: mapped to xdm.web.webInteraction.URL.
  • Link type: mapped to xdm.web.webInteraction.type. Valid values include other (Custom links), download (Download links), and exit (Exit links).

In my implementation, I had set only eVars, props and events in Web SDK and ignored Link name, URL and type.

Avatar

Level 1

Hi @AbhilashSh , Good to hear that it worked. I was under the impression that you will have already checked these settings as accepted solution already clarify this.

  1. For a beacon to be considered a page view in AA you need either:
    • webPageDetails.name, Or
    • webPageDetails.URL
  2. For a beacon to be considered a link in AA you need:
    • webInteraction.type, And
    • Either of below two:
      • webInteraction.name, Or
      • webInteraction.URL

Avatar

Community Advisor

Can you show a similar screenshot but of your "webPageDetails" object in your XDM schema for both pageviews and link clicks?

Avatar

Level 3

@yuhuisg  Please find the requested screenshot.

 

Pageload:

DhanA2_2-1668423400066.png

 

Interaction

DhanA2_3-1668423499548.png

 

 

Avatar

Employee Advisor

@DhanA2 Ideally, Adobe analytics looks at eventype to calculate whether it is a page view or link call. Can you confirm whether you are sending Target as well through edge ? In that case, there would be inflation to Pageviews because of the second Target call. You would need to create a custom event for the Page view call which you will be populating through processing rule. The processing rule will look at the eventype where eventype = web.webInteraction.Pageviews

 

If you have not implemented Target, then please feel free to raise a client care to look into this issue in detail. This needs detailed investigation to come up with the root cause

Avatar

Employee

Is there any chance you can attach both requests as JSON?

Avatar

Correct answer by
Community Advisor

There was some discussion about this in another forum, and this was the consensual solution:

---
For AA alone, forget eventType, setting web.webPageDetails.pageView.Value=1 or web.webInteraction.linkClick=1 themselves don't decide if the call would be s.t or s.tl(). Following is how AA processing works wrt. page vs non-page call:
  1. For a beacon to be considered a page view in AA you need either:
    • webPageDetails.name, Or
    • webPageDetails.URL
  2. For a beacon to be considered a link in AA you need:
    • webInteraction.type, And
    • Either of below two:
      • webInteraction.name, Or
      • webInteraction.URL
For Adobe Analytics you don't need, webPageDetailsvalue=1 for a page view or webInteractionValue=1 for a link click. However, doing this is definitely a good practice since you do need these for CJA and RTCDP.
---
Credit to Rajdeep Singh for this.

Avatar

Level 1

setting.jpgAll above solutions did not work for me too. Then we inspected settings in  Adobe Experience Platform Web SDK extension.

Check if you have enabled click data collection.

if Yes, when sending event data, dont automatically include default context information and rather, select "Specific context information".

And disable Web (information about current page).

 

Enabling information about current page will send webURL by default on each custom linkclick and thus increase the pageview because of below condition.

 

  1. For a beacon to be considered a page view in AA you need either:
    • webPageDetails.name, Or
    • webPageDetails.URL

Avatar

Community Advisor

Interesting! This might be a bug in the extension that Adobe could investigate. You could open a new issue in the extension's Github page https://github.com/adobe/reactor-extension-alloy/issues, or you can raise this with Customer Care and let them bring it to Adobe Engineering's attenion.

Avatar

Employee

I second @yuhuisg . If you can provide details to Adobe of the content of the hits and when they are generated then we can investigate. Thanks.