sanatorium / platform-analytics by rozklad

Package to retrieve Google Analytics data for Cartalyst Platform
1
0
3
Package Data
Maintainer Username: rozklad
Maintainer Contact: info@sanatoriu.ninja (Sanatorium)
Package Create Date: 2016-03-25
Package Last Update: 2016-10-02
Language: JavaScript
License: Unknown
Last Refreshed: 2024-04-18 15:15:01
Package Statistics
Total Downloads: 1
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

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',