How to implement ListVar in AEP WebSDK/alloy.js ?

Last update: 2023-09-27

Description

Environment

  • Customer Journey Analytics
  • Analytics

Issues/Symptoms
This article contains information on how to capture data in Listvar through AEP WebSDK.

Resolution

You can populate list variables using the XDM fields

_experience.analytics.customDimensions.lists.list1.list to _experience.analytics.customDimensions.lists.list3.list.

Each array element contains a value object that contains each string. There is no need to provide a delimiter; it is automatically included using the value specified in the Report suite settings.

You can see the examples in the ‘list’ documentation: https://experienceleague.adobe.com/docs/analytics/implementation/vars/page-vars/list.html?lang=en

On this page