jelicanin/silverstripe-googleanalytics

此包已废弃,不再维护。作者建议使用 https://github.com/fractaslabs/silverstripe-googleanalytics 包。

快速、可配置且简单的支持多个 GA ID 的 Google Analytics 模块

安装: 191

依赖: 0

建议者: 0

安全: 0

星标: 2

关注者: 2

分支: 1

类型:silverstripe-vendormodule

3.0 2019-02-01 11:46 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:53:18 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License

概述

快速、可配置、简单的支持多个 GA ID 的 Google Analytics 和 Google Tag Manager 模块

要求

  • SilverStripe 框架 4

版本信息

此模块的主分支目前旨在实现 SilverStripe 4.x 兼容性

安装

  • 通过 Composer 安装

    composer require "fractas/googleanalytics" "^3.0"
    
  • 将您的 Google Analytics ID 添加到 mysite.yml 配置文件中,并启用额外功能(如果需要)

    Fractas\GoogleAnalytics\GoogleAnalyticsController:
      enable_display_features: true # https://developers.google.com/analytics/devguides/collection/analyticsjs/display-features
      enable_in_dev: false
      ga_id: UA-xxxxxxxx-x0 #main Google Analytics ID property
      gtm_id: GTM-xxxxxxxx #Google Tag Manager ID
      ga_extra_ids:
        newTracker1: UA-xxxxxxxx-x1 #you can add multiple Google Analytics ID properties
        newTracker2: UA-xxxxxxxx-x2
        newTrackerX: UA-xxxxxxxx-xX
  • 在浏览器中运行 flush=all

错误跟踪器

错误在 github.com 上跟踪

许可证