Dynamic dataLayer - trigger on hit
We have a dataLayer embedded within an Angular app that pushes an event and a data object into the dL when a user filters/edits their search. This means that the event object could change during the same pageview, or the same value could be pushed into the dL multiple times:
function(fromDate, toDate, filter) {
var analyticsEvent = function() {
digitalData.push({
event: "loadClaimList",
eventData: {
fromDate: fromDate,
toDate: toDate
}
});
};
dataelementchanged doesn't work because you cannot limit persistence at the hit level, only pageview. How else can this be configured so the rule will fire every time digitalData.event = 'loadClaimList', including multiple times within the same pageview.


