eventGroupingEnabled - web sdk activity map | Community
Skip to main content
Franc_G
Level 4
August 22, 2024
Solved

eventGroupingEnabled - web sdk activity map

  • August 22, 2024
  • 2 replies
  • 3246 views

hi all, based on the adobe documentation clickCollection.eventGroupingEnabled is a boolean that determines if the library waits until the next page to send link tracking data (clickCollection | Adobe Data Collection). Have tried setting it to "true" and the event bundling does not work. The existing appMeasurement set up does the trick - activity map is being surfaced on the next pageload. Want to have the exact set up in the web sdk. Would appreciate if anyone could help. Thanks  

 

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 bjoern__koth

Hi @franc_g 

little update on this one. So, I looked at the alloy.js code which has a function hasPageName that internally called in onBeforeEvent and expects xdm.web.webPageDetails.name to be set to detect page views. Also mentions that ideally, the event type should be "web.webpagedetails.pageViews" (which is commented and not in use).

 

Both is a little problematic in my opinion since these days, you are not obliged to set these values to have a working analytics solution if you use WebSDK UX to set data variables instead of going for an XDM schema.

 

Long story, it still does not work for me though 😄

 

Sent it to support, maybe they have an idea. But maybe worth checking if you can make it work on your end

2 replies

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 22, 2024

Hi @franc_g 

 

yeah, it does not seem to work for me either. I actually have a call tomorrow 11:30am CEST with Adobe support about this 🙂

Send me a DM if you want to hop on the call.

 

Björn

Cheers from Switzerland!
bjoern__koth
Community Advisor and Adobe Champion
bjoern__kothCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
August 25, 2024

Hi @franc_g 

little update on this one. So, I looked at the alloy.js code which has a function hasPageName that internally called in onBeforeEvent and expects xdm.web.webPageDetails.name to be set to detect page views. Also mentions that ideally, the event type should be "web.webpagedetails.pageViews" (which is commented and not in use).

 

Both is a little problematic in my opinion since these days, you are not obliged to set these values to have a working analytics solution if you use WebSDK UX to set data variables instead of going for an XDM schema.

 

Long story, it still does not work for me though 😄

 

Sent it to support, maybe they have an idea. But maybe worth checking if you can make it work on your end

Cheers from Switzerland!
Franc_G
Franc_GAuthor
Level 4
September 19, 2024

Hi @franc_g 

the data structure will be further nested so, if you want to make sure this structure is available before setting it, I would highly recommend to generate it as needed.

content.__adobe.analytics.contextData.a.activitymap

 I mean, technically you would have to create the whole structure to make sure you're not running into errors should it not be present.

So, technically this should be done

// make content.__adobe.analytics.contextData is available before setting anyhing on it content.__adobe = content.__adobe || {}; content.__adobe.analytics = content.__adobe.analytics || {}; content.__adobe.analytics.contextData = content.__adobe.analytics.contextData || {};

 

Let's say my approach above was a little quick 'n' dirty to showcase that it would be possible.

 

Ideally, Adobe should fix their activity map context data to be able to transport more than one clicked element.

But I don't see this coming any time soon. Support will keep me updated if they hear anything from the developers


@bjoern__koth Okay, makes sense. You just want to make sure that obj property exists and setting it to an empty obj if its not. Thought about something completely different, but thanks for explaining. 

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 23, 2024

Hi @franc_g 


had the session with support, they will look into the issue. According to the agent, he would also assume that the sessionStorage value is picked up upon and request on the next page.
He will investigate with the WebSDK team and come back to me next week.

Cheers

Cheers from Switzerland!
Franc_G
Franc_GAuthor
Level 4
August 23, 2024

Thanks for the update, much appreciated.