fractaslabs/silverstripe-googleanalytics

此包已被弃用,不再维护。作者建议使用 fractas/googleanalytics 包。

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

安装: 22

依赖: 0

建议者: 0

安全: 0

星标: 2

关注者: 2

分支: 1

开放问题: 0

类型:silverstripe-vendormodule

3.0 2019-02-01 11:46 UTC

This package is auto-updated.

Last update: 2022-02-01 13:10:31 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 上跟踪

许可证