Search code examples
javascriptanalyticsadobe-analyticsweb-analytics

DTM - appending custom events to page load events


I am struggling to fire custom event (from custom code) along with my page load events. e.g. When my home page loads I want to trigger event 1 and if my dataelement meets certain condition it should trigger event2. So in my call in debugger I should see event1,event2.

But whats happening is my pageload rule is getting overwritten by custom event so I only get event2 in debugger.

Question is how do we append events to page load rule events.

Thanks


Solution

  • I think I found the solution - we need to use s.apl plugin in scode to append events.

    Good luck!