AEP Web SDK - Tracking Merchandising Variable & Events | Community
Skip to main content
satyanarayanam1
October 5, 2021
Solved

AEP Web SDK - Tracking Merchandising Variable & Events

  • October 5, 2021
  • 1 reply
  • 5731 views

Hi Team,

We are using Web SDK to migrate to AEP, could you please share some samples on tracking merchandising variables and events using Web SDK into AEP & Adobe analytics, do we need to add processing rules for these merch-vars as well to get them tracked into analytics?

We tried using Adobe Analytics Template mixin but no luck. Any help would be much appreciated. 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 yuhuisg

Hi @yuhuisg @satyanarayanam1 @beenit_chatterjee 

Thanks for answering this question. Would appreciate if you could please clarify this-

To send data to (or to use without any mapping) the Cart Additions, Cart Removals, Product Views (OOTB/standard AA metrics) - do we need to use the Commerce details field group i.e. productListItems and its respective fields like commerce.productListAdds.value?

 

However, if we use the Adobe Analytics Template Field Group just by itself(_experience.analytics.customDimensions.eVars.eVar1) or within the productListItems (i.e. productListItems[]._experience.analytics.customDimensions.eVars.eVar1), we won't be able to auto-map specific evar/props/events to the given metrics (Cart Additions, Cart Removals, Product Views), is that right?

 

Thanks


@hs_vk ,


@hs_vk wrote:

To send data to (or to use without any mapping) the Cart Additions, Cart Removals, Product Views (OOTB/standard AA metrics) - do we need to use the Commerce details field group i.e. productListItems and its respective fields like commerce.productListAdds.value?


Think of it this way:

The "productListItems" field group is used to build the equivalent of AA's s.products string. So you will definitely need to set this productListItems whenever you want to track products for any ecommerce step.

Separately, the "commerce" field group is used to track the equivalent of AA's ecommerce success events, e.g. scAdd, scRemove, etc. Referring to the documentation on mapped variables https://experienceleague.adobe.com/docs/analytics/implementation/aep-edge/variable-mapping.html?lang=en, you can see that you need to set the commerce fields to count your success events properly. E.g. where you would have set "scAdd" in your AA implementation, you will need to set "commerce.productListAdds.value" = 1.


@hs_vk wrote:

However, if we use the Adobe Analytics Template Field Group just by itself(_experience.analytics.customDimensions.eVars.eVar1) or within the productListItems (i.e. productListItems[]._experience.analytics.customDimensions.eVars.eVar1), we won't be able to auto-map specific evar/props/events to the given metrics (Cart Additions, Cart Removals, Product Views), is that right?


If you set productListItems[]._experience.analytics.customDimensions.eVars.eVar1, then you're setting the equivalent of a Merchandising eVar1 in your s.products string. And recalling how Merchandising eVars work, then those eVars would be able to reported with your given metrics properly.

1 reply

March 3, 2022

Fyi..

There's an "Adobe Analytics ExperienceEvent Template" field group within XDM schema which has all the required field to track Analytics data. This template does have field to populate merchandising evar or any event which you would like to pass within productListitems.

 

Cheers!

satyanarayanam1
March 3, 2022

This mapping works for AEP platform, for the analytics variables s.products mapping this currently doesn't support. Product engineering teams are working on this to automap merchvars & events. We need to await for the release or for the interim you can use blackbird API to achieve the same.

April 11, 2023

It's been over a year since this comment. 

Has there been any movement on this yet?