Question on ACDL vs direct calll rules | Community
Skip to main content
Level 2
April 2, 2023
Solved

Question on ACDL vs direct calll rules

  • April 2, 2023
  • 1 reply
  • 548 views

I have a Adobe Client Data Layer implemented and somehow I am not able to read the data Layer push events since it is a single page application, meaning the page does not load but only the URL changes.

When I use direct call rule then it works fine. So, I have told my developer to change it as shown below

 

Currently Implemented

window.adobeDataLayer.push({ "event": "filterTest", "filter": [{ activeFilterList: "list of filters by the user in colon delimited format", activeFiltersClicked: [ { itemName: "brand", itemValues: ["Altra", "Avia"], }, ] }] });

 

Expected Implementation

 

_satellite.track( "filterTest", { activeFilterList: "list of filters by the user in colon delimited format", activeFiltersClicked: [ { itemName: "brand", itemValues: ["Altra", "Avia"], }, ] } );

 

Does above logic look good to you? Any other approaches which I can use?

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 Jennifer_Dungan

What do you mean that you can't read the data layer push events because it's a single page application... reading a push event is not dependent on a page loading.... Event based data layers are designed to work with both traditional and SPA implementations.

 

I assume that you are trying to use "Window Loaded" or "DOM Ready" as your trigger... which does look at pages being loaded, and if so, that is your issue... not the data layer. In an event based data layer, that isn't the trigger you should be using... you should create a trigger based on "Adobe Client Data Layer" and "Data Pushed"

 

 

 

This way, ANY events can be pushed (page views, clicks, form completes, etc) and you have the control over how each of those track by listening for the specific event.

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
April 2, 2023

What do you mean that you can't read the data layer push events because it's a single page application... reading a push event is not dependent on a page loading.... Event based data layers are designed to work with both traditional and SPA implementations.

 

I assume that you are trying to use "Window Loaded" or "DOM Ready" as your trigger... which does look at pages being loaded, and if so, that is your issue... not the data layer. In an event based data layer, that isn't the trigger you should be using... you should create a trigger based on "Adobe Client Data Layer" and "Data Pushed"

 

 

 

This way, ANY events can be pushed (page views, clicks, form completes, etc) and you have the control over how each of those track by listening for the specific event.