LaravelPackages.net
Acme Inc.
Toggle sidebar
sanatorium/analytics

Package to retrieve Google Analytics data for Cartalyst Platform

1
0
3.0.4
About sanatorium/analytics

sanatorium/analytics is a Laravel package for package to retrieve google analytics data for cartalyst platform. It currently has 0 GitHub stars and 1 downloads on Packagist (latest version 3.0.4). Install it with composer require sanatorium/analytics. Discover more Laravel packages by sanatorium or browse all Laravel packages to compare alternatives.

Last updated

sanatorium/analytics

Package to retrieve Google Analytics data for Cartalyst Platform

Contents

  1. Documentation
  2. Changelog
  3. Support
  4. Hooks

Documentation

Configuration

Universal Analytics ID

Admin > Property > Tracking Info > Tracking Code

Should look like UA-XXXXXXXX-X

Universal Analytics ID

Site ID

Admin > View > View Settings > View ID

Copy the View ID and prefix that with "ga:"

Should look like: ga:xxxxxxxx

Site ID

Client ID

Provide Client ID of Google account with Google Analytics API enabled. You will also get service email there, note that down, it's used in Service E-mail.

Client ID

Service E-mail

Service E-mail of the Google Account, this also needs to be added to Admin > View > User Settings as a user with atleast permission to read.

Service E-mail

Certificate .p12

Path to .p12 certificate, to obtain:

  • Open the project, go to APIs & auth > Credentials
  • Click on Create new Client ID, and select Service account and P12 key. Then click on Create Client ID to download it.

Map mode

Area to show in map widget.

Track admin area

Enable/Disable analytics for admin area (helps us improve the user experience).

Universal Analytics ID (admin)

Should look like UA-XXXXXXXX-X, default value

UA-71753817-1

Changelog

  • 1.3.0 - 2016-08-06 - Readme, expections

Support

Support not available.

Hooks

List of currently used hooks:

'scripts.footer' => 'sanatorium/analytics::hooks.trackingCode',
'admin.scripts.footer' => 'sanatorium/analytics::hooks.trackingCodeAdmin',
Comments