定制 samuelmc/google-analytics-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

samuelmc/google-analytics-bundle

Composer 安装命令:

composer require samuelmc/google-analytics-bundle

包简介

Google Analytics Bundle for Symfony

README 文档

README

Google Analytics Bundle for Symfony

SensioLabsInsight

This bundle adds the Google Analytics code to every page except those that match the "exclude_path" parameter.

Installation

composer require samuelmc/google-analytics-bundle (view on packagist)

add the bundle in AppKernel:

new Samuelmc\GaBundle\SamuelGaBundle()

import the services in config.yml:

imports:
    - { resource: security.yml }
    - { resource: services.yml }
    ...
    - { resource: "@SamuelmcGaBundle/Resources/config/services.yml" }

Configuration

there are two parameters to configure under samuel_ga:

  • tracking_id: your Google Analytics tracker code.
  • exclude_paths: a regex string which filters out paths that should not be tracked by Google Analytics. Default: '(^/(_profiler|_wdt).+)'
samuelmc_ga:
    tracking_id: "UA-..."
    exclude_paths: '(^\/(_profiler|_wdt).+)'

##License

MIT Licence

© Samuel Moncarey

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固