承接 lukasbecker/kirby3-gtm 相关项目开发

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

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

lukasbecker/kirby3-gtm

最新稳定版本:1.2.0

Composer 安装命令:

composer require lukasbecker/kirby3-gtm

包简介

Integrate Google Tag Manager into your kirby site

README 文档

README

Integrate Google Tag Manager tracking code into your kirby 3 site

Installation

Download

Download this repo, extract the files and copy them to /site/plugins/gtm.

Composer

composer require lukasbecker/kirby3-gtm

Usage

Default behaviour

To ensure that no data is collected during development this plugin is inactive as default.

You have to explicitely activate it via config option. We recommend to specify the activation in a domain specific configuration file, e.g. /site/config/config.yourdomain.com.php.

Configuration

There are only three config options:

  • Activation
  • Google Tag Manager ID
return [
  'lukasbecker.kirby3-gtm.id' => 'GTM-XXXXXXX',
];

Panel fields

You can access two of them via panel. This plugin provides two panel fields. You can provide the plugin options via panel field in your site.yml:

fields:
  gtmId: fields/gtmId

Use it in your templates/snippets

Embed the JavaScript and non-JavaScript code pieces via Kirby's snippet() helper function.

  1. Place the gtm-script.php-file as close to the opening <head> tag as possible with <?php snippet('gtm-script') ?>
  2. Place the gtm-noscript.php-file immediately after the opening <body> tag with <?php snippet('gtm-noscript') ?>

Multi-environment setup

You can use this plugin in multi-environment setups. Place an individual Google Tag Manager ID per domain in the domain specific configuration file.

DNT

One concrete way we commit to user privacy is by honoring Do Not Track (“DNT”) browser settings.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固