承接 la-haute-societe/craft-google-tag-manager 相关项目开发

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

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

la-haute-societe/craft-google-tag-manager

Composer 安装命令:

composer require la-haute-societe/craft-google-tag-manager

包简介

Configure the Google Tag Manager "Container ID" from the Craft CMS control panel

README 文档

README

This plugin allows you to configure the "ContainerID" from the control panel and inject the GTM tags into the template.

Screenshot

Requirements

This plugin requires Craft CMS 4.0.0 or later. Version 1.x of this plugin supports Craft CMS 3.x.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require la-haute-societe/craft-google-tag-manager
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Google Tag Manager.

Configuring Google Tag Manager

You can configure the containerID from the Craft Control Panel.

Using Google Tag Manager

Copy the code below and paste it into your layout as high as possible in the <head> section of the page:

{{ craft.googleTagManager.headSection() }}

You must also paste this code immediately after the opening tag <body>:

{{ craft.googleTagManager.bodySection() }}

Brought to you by
Logo La Haute Société

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固