dorsetdigital/silverstripe-simplegtag
最新稳定版本:v3.0.0
Composer 安装命令:
composer require dorsetdigital/silverstripe-simplegtag
包简介
Simple method of adding GTM tags
README 文档
README
A very simple way to add Google Tags to a site for analytics, adwords, etc.
Requirements
*Silverstripe 6.x (for CMS 4/5, please use the 2.x release)
Installation
- Install the code with
composer require dorsetdigital/silverstripe-simplegtag - Run a
dev/build?flushto update your project
Usage
This module injects the required code for Google Tag Manager into your pages. Once installed, set your GTM ID in the site config.
The module injects code into the html <head> and the <noscript> snippet into the page at the start of the <body>
Consent
If you are using the cookie consent module (https://github.com/TheBnl/silverstripe-cookie-consent) then this module will only add the GTM tags if a user has accepted analytics cookies.
统计信息
- 总下载量: 630
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-07-08