Opinions on pushing DigitalData events to Google DataLayer through JavaScript
Hi Team,
I would appreciate your expert opinion on an approach I have been working on.
A client’s website utilizes both Adobe Analytics and Google Analytics. All implementations are currently managed through Adobe Launch, leveraging the digitalData object. The client has requested that events in the digitalData object be pushed into the Google dataLayer to trigger tags in GTM.
To meet this requirement, I have developed a JavaScript solution, deployed as a custom HTML tag in GTM across all pages. This solution monitors every change in the Adobe digitalData object, captures the event key and event data for each change, and pushes these into the Google dataLayer with the same structure. So far, the solution is working as expected.
My questions are as follows:
- Will this approach reliably capture every event occurring in the digitalData object and push it into the Google dataLayer?
- Are there any potential pitfalls, limitations, or edge cases that could cause this solution to fail?
I look forward to your valuable insights.