Event mapping

Because data collection using tags is different from using the Adobe Commerce Event SDK, it is important to understand the equivalent terms used in both frameworks.

Adobe Experience Platform tags term
Adobe Commerce Event SDK term
data elements
context
rules
event
rule conditions - event listeners (from ACDL)

rule actions - event handlers (send to Adobe Experience Platform)

When you update the data elements and rules in Adobe Experience Platform tags with Adobe Commerce-specific event data, there are some common steps you will take.

For example, let’s add the Adobe Commerce signOut event to Adobe Experience Platform tags. The steps outlined below, except for specific values you set, describe how to add data elements and rules, which apply to all Adobe Commerce events you are adding to tags.

  1. Create a Data Element:

    Create New Data Element
    Create New Data Element

  2. Set Name to sign out.

  3. Set Extension to Adobe Experience Platform Web SDK.

  4. Set Data Element Type to XDM object.

  5. Select the Sandbox and Schema that you want to update.

  6. Under userAccount > logout, set the value in Visitor Logout to 1.

    Update Sign out value
    Update Sign out value

  7. Select Save.

  8. Create a Rule:

    Create New Rule
    Create New Rule

  9. Select Add under EVENTS.

  10. Set Extension to Adobe Client Data Layer.

  11. Set Event Type to Data Pushed.

  12. Select Specific Event and set the Event/Key to register for to sign-out.

  13. Select Keep Changes to save the new rule.

  14. Add an action.

  15. Set Extension to Adobe Experience Platform Web SDK.

  16. Set Action Type to Send Event.

  17. Set Instance to Alloy.

  18. Set Type to userAccount.logout.

  19. Set XDM data to %sign out%.

  20. Click Save.

    You created a data element in your schema for the signOut event from Adobe Commerce. Also, you created a rule with a specific action that should occur when that event is fired from the Adobe Commerce storefront.

Repeat the above steps in tags for each of the Adobe Commerce events described below.