Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Google Tag Manager #547

Open
YoannRoselier opened this issue Aug 20, 2024 · 0 comments
Open

Update Google Tag Manager #547

YoannRoselier opened this issue Aug 20, 2024 · 0 comments
Assignees
Labels
a11y Accessibility related stuff CI/CD dependencies Pull requests that update a dependency file feature

Comments

@YoannRoselier
Copy link
Member

YoannRoselier commented Aug 20, 2024

Pour tout le site, les 2 scripts suivants liés à GTM devraient être intégrés:

  1. Collez ce code le plus haut possible dans la section de la page :
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PGKC7XMW');</script>
  1. Collez ce code juste après la balise d'ouverture :

<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PGKC7XMW" height="0" width="0" style="display:none;visibility:hidden"></iframe>

  1. Supprimer de tarte au citron.js

  2. Identifier dans le site quand Google Analytics 3 est utilisé afin d'en supprimer son utilisation (GA3 obsolète)

@YoannRoselier YoannRoselier added dependencies Pull requests that update a dependency file a11y Accessibility related stuff CI/CD feature labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Accessibility related stuff CI/CD dependencies Pull requests that update a dependency file feature
Projects
None yet
Development

No branches or pull requests

3 participants