A Stacklane Connector for Google Tag Manager.
/π.yaml
- https://github.com/stacklane-registry/googletagmanager.com.git#!v1.0.2
Applies the correct Content-Security-Policy and includes the <script> tag.
<head>
...
<googletagmanager.com-setup async id="YOUR-TAG-MANAGER-ID"/>
<script>
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);}
gtag('js', new Date()); gtag('config', 'YOUR-TAG-MANAGER-ID');
</script>
...
</head>