ssga ServerSideGA is an application component used for tracking Page View, Event, ... via Google Analytic

  1. Features
  2. Configuration
  3. Usage
  4. Resources

ServerSideGA is an application component used for tracking Page View, Event, ... via Your website Google Analytic Account from Yii application (Server Side)

Features

  • Track Page View
  • Track Event
  • ...

Configuration

  • Extract the package to your Yii Extensions folder
  • Add ssga to the components section in your Yii configuration
return array(
    'components' => array(
        'ssga' => array(
            'class' => 'application.extensions.ssga.ServerSideGA',
            'gaId' => 'UA-123456-78',
        ),
    ),
);

Usage

// Track Page View
Yii::app()->ssga->trackPageView('/demo', 'Demo Page');

// Track Event
Yii::app()->ssga->trackEvent('Document', 'Download', 'demo-document.pdf');

Resources

2 0
7 followers
133 downloads
Yii Version: Unknown
License: GPL-3.0
Category: Others
Tags: php-ga, ssga
Developed by: Tuan Phan
Created on: Dec 27, 2013
Last updated: 10 years ago

Downloads

show all