Hi . as gooogle launched his new version of Google Analytics, I have a site with Drupal 8 who can´t migrate to GA4.

As soon as I installed a module of Google Tag, the site cant´finish the installation, also I tried to upload the directory manually and install the module on Drupal but the site collapse, I understand that it can just work with Google tag or paste the code of  GA4 on the header of the site, unfortunatelly I don´t know to much about Drupal and can´t find the header of my site, I modified core/modules/sytem/templates/html.html.twig but still not working.

Regards

Comments

vm’s picture

partial duplicate of https://www.drupal.org/forum/support/post-installation/2023-07-21/can%C2...

you state "As soon as I installed a module of Google Tag, the site can't ´finish the installation" - how did you perform the installation? via composer? via the admin UI?

you state attempting to install caused your 'site collapse'. Did you capture an error?

Did you read the project page of the Goggle Tag module?

Could the following apply to you?

"CRITICAL NOTES for releases 8.x-1.3+
If the site enables other modules that implement condition plugins (e.g. ctools, rules, webform), then it will most likely be necessary to apply the core patch from issue '3114467' (link intentionally omitted)."

There are 84,000+ sites successfully using the Google Tags module. Id' assume the issue was the way I installed or something else on my site that is the cause.

you state you modified "core/modules/system/templates/html.html.twig" but you do not mention if put that modified copy into your theme folder. [er https://drupal.stackexchange.com/questions/217880/how-do-i-add-a-meta-ta... was given to you in your first post. Did you clear the database cache to ensure you pick up the changes to the template file?

Crmz16’s picture

Could you just go deep on that?

you state you modified "core/modules/system/templates/html.html.twig" but you do not mention if put that modified copy into your theme folder.

where do I need to copy the modified file?, I understand it´s on the theme but where?

Regards

vm’s picture

in the folder where the rest of your .twig files reside.