Tracking Custom Event on the Target banner using Data Elements & Rules
Hi,
I implemented AEP and Target using AEP Data Collection Web SDK. I implemented cookie banner using Target with 2 buttons which generate two custom events on click:
a) accept button - acceptedPersonalization
b) decline button - refusedPersonalization
However there is a problem. I am not able to catch if these buttons were clicked using Data Elements. I implemented Data Element custom code in order to track that event. But that data elements returns nothing (for example when I use
_satellite.getVar('myDataElement')). Imho it might be connected with order of loading data elements etc. However if I use Rules and Custom Event in that rule AEP catches that Custom Event. However if I want to pass that data to XDM Schema I need to have data element
So there are two 2 questions:
1. Is it possible to track Custom Event with Data Element which might be fired on click (ex. 10 seconds later - when some element was clicked by user)? Additionally the Custom Event is implemented on the banner which was injected using Target.
2. Is it possible to generate Data Element after Rule was fired ?


