承接 gorriecoe/silverstripe-gtm 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gorriecoe/silverstripe-gtm

最新稳定版本:1.3.1

Composer 安装命令:

composer require gorriecoe/silverstripe-gtm

包简介

A simple module that adds google tag manager snippets to silverstripe.

README 文档

README

A simple module that adds google tag manager snippets to silverstripe.

Installation

Composer is the recommended way of installing SilverStripe modules.

composer require gorriecoe/silverstripe-gtm

Requirements

  • silverstripe/cmframework ^4.0

Maintainers

Config

GTM will check if your .env file has defined GTM_ID first. As follows:

GTM_ID="GTM-123456"

If GTM_ID has not been defined you can edit it in your CMS settings.

Options

Define the tab to insert the gtm field into.

SilverStripe\SiteConfig\SiteConfig:
  gtm_tab: 'SomeTabName' // Defaults to 'Main'

Usage

Insert $GTMscript after the opening head tag and $GTMnoscript after the opening body tag.

<!doctype html>
<html class="no-js" lang="en">
<head>
	{$GTMscript}
	...
</head>
<body>
	{$GTMnoscript}
	...
</body>
</html>

CSP - Content Security Policy

GTM checks for getNonce() method in the current controller. If its avaiable it will produce a CSP compatible snippet.

This means GTM is works with Firesphere/csp-headers

统计信息

  • 总下载量: 10.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固