Google Analytics error in adobe | Community
Skip to main content
May 29, 2024
Solved

Google Analytics error in adobe

  • May 29, 2024
  • 4 replies
  • 1579 views

Hi.

 

Recently, there was a issue in our GTM we were not receiving events from the website. We were unsure why this issue was happening as there were no major changes made that could have affected it. During our analysis, we realized that there was a conflict between GTM and the Adobe Datalayer, which had not occurred before. Additionally, we observed the following warning messages in the console.

 

 

 

 

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 AMANATH_ULLAH

@ashwinc5i 
Please find the below fix provided by Adobe  and it would be fixed in next release
https://github.com/adobe/aem-core-wcm-components/pull/2738/files

4 replies

AMANATH_ULLAH
Community Advisor
Community Advisor
May 29, 2024
Amanath Ullah
AshwinC5IAuthor
May 29, 2024

Thank you for sharing the link.

 

How can i know from which rule I'm getting this error

AMANATH_ULLAH
Community Advisor
AMANATH_ULLAHCommunity AdvisorAccepted solution
Community Advisor
May 29, 2024

@ashwinc5i 
Please find the below fix provided by Adobe  and it would be fixed in next release
https://github.com/adobe/aem-core-wcm-components/pull/2738/files

Amanath Ullah
Adobe Employee
May 29, 2024

This is a known issue which will be fixed in the next core component release with the AEM release.

 

https://github.com/adobe/aem-core-wcm-components/issues/2736

 

 

BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 30, 2024

It looks like the latest AEMaaCS core components have got you too.

I've already mentioned this on another post, but heres it again, https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/google-tag-manager-events-not-tracking-from-aem-as-cloud/td-p/673347

Keep reading the post as I have a temporary solution for this fix ->

 

================================

 

We just got out of this challenging problem as well. Jumped into a call with Adobe, and pinpointed the problem. The problem here is that the latest AEM Core Components introduced this bug.

 

 

Let's take a look at what I am pointing to here, so what was removed was the ability to have customers set window['adobeDataLayer'] or any other variable to capture AEM Core Component's dataLayer object... This is a configuration in the Context Aware Data Layer Configs. However, the latest code have introduced a bug where now where dataLayer is always going to be set for the AEM Core Component's dataLayer.

That being said, Google Tag Manager relies on window.dataLayer, and so since Adobe's introduction of the bug... if you are using Adobe Launch (or now known as AEP Data-Collection) to inject Google Scripts on the page, the /apps/core/wcm/components/page/v3/page/page.html will override the Adobe Launch's collection object (window.dataLayer). As an interim solution we have re-configured the GA configuration on Adobe Launch to from depending on window.dataLayer to window.googleDataLayer, and it all works.... but however if you do this, you must beware of custom code in your codebase that uses window.dataLayer... which this object was meant for GA itself.

If Adobe Launch updates is not an option, you can simply overlay the page.html, and reverse the changes you see here.

 



Adobe has confirmed to me that in 2 weeks a new version of the AEMaaCS platform will be rolled out, and this problem will be resolved. 

kautuk_sahni
Community Manager
Community Manager
June 10, 2024

@ashwinc5i Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni