How to create rule using core extension for eddl ? | Community
Skip to main content
Level 3
June 12, 2023
Solved

How to create rule using core extension for eddl ?

  • June 12, 2023
  • 1 reply
  • 1310 views

I have written a eddl . How can I trigger rule using only with Core extensions. Or should I need to  write custom code (for example: If the  event name is  "pageview",  then should I need to compare the  value for the event key of each object inside dataLayer and when it  matches with event values as pageview return true.) or should I need to  write separately  dispatchEvent for page view?

.Please  let me know if my understanding is not clear, so that I can understand. 

 

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 leocwlau

Any particular reason to implement your own EDDL library? Apart from the Search Discovery extension, Adobe also has its own EDDL implementation "Adobe Client Data Layer" and "Google Data Layer" if you already have the Google data layer implemented and wish to stay with it.

 

Creating your own EDDL could be quite an effort, you need to at least have methods to get the state, reset/consolidate events, and trigger tracking, which is your question.

 

You need to either create a custom extension to populate the "event trigger" method to Adobe Launch so that you can create rules according to events pushed and execute actions. Or you can create event listeners on your EDDL and programmatically hook up with events and run any JavaScript for "action".

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 13, 2023

Does it have to be "Core" extension?

 

Search Discovery has a "Data Layer Manager" extension that might work for you... you can specify the name of your data later and the event you are looking for...

 

https://exchange.adobe.com/apps/ec/101462

 

I don't think the Core handles data layer changes well.... so if you can't use an extension, you will probably have to write custom code.

SA30Author
Level 3
June 13, 2023

yes, I want to implement through core not DLM. So, for rules using core extension  , how can I trigger a event using custom code or do I have to use dispatch event .  I feel without an extension the event property inside the datalayer object is useless. Please let me know , how can I do it.

leocwlau
Community Advisor and Adobe Champion
leocwlauCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 13, 2023

Any particular reason to implement your own EDDL library? Apart from the Search Discovery extension, Adobe also has its own EDDL implementation "Adobe Client Data Layer" and "Google Data Layer" if you already have the Google data layer implemented and wish to stay with it.

 

Creating your own EDDL could be quite an effort, you need to at least have methods to get the state, reset/consolidate events, and trigger tracking, which is your question.

 

You need to either create a custom extension to populate the "event trigger" method to Adobe Launch so that you can create rules according to events pushed and execute actions. Or you can create event listeners on your EDDL and programmatically hook up with events and run any JavaScript for "action".