diff --git a/composer.json b/composer.json index 55e010f..bef2ac2 100644 --- a/composer.json +++ b/composer.json @@ -16,8 +16,7 @@ "autoload": { "files": [ "inc/namespace.php", - "inc/consent/namespace.php", - "inc/gtm/namespace.php" + "inc/consent/namespace.php" ] }, "extra": { diff --git a/docs/consent/google-tag-manager.md b/docs/consent/google-tag-manager.md index e8a2b99..ed02ffc 100644 --- a/docs/consent/google-tag-manager.md +++ b/docs/consent/google-tag-manager.md @@ -1,6 +1,41 @@ # Google Tag Manager Consent Integration -Support for Google Tag Manager is provided via GTM's data layer variable. When either the page loads or consent is subsequently changed the data layer is updated allowing you to create triggers based on the consent given. +Support for Google Tag Manager (GTM) can be added via GTM's data layer variable. + +You will need to add the following PHP file to your application somewhere and load it. It can be a `mu-plugin`, or part of a theme for example. + +```php +