Skip to content

google analytics library for load jquery analitics in production mode

Notifications You must be signed in to change notification settings

eliteArea/google-analytics-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google-analytics-lib integration of google analitics for codeigniter

Requirements

Setup

  1. Install Sparks if you haven't done so already.
  2. Install the google-analytics-lib spark (see here if you don't know how).

Info

google-analytics-lib is a spark that allows to include google analitics on your project in production mode.

Usage

controler call

$this->load->spark('google-analytics-lib/x.x.x');

To load the google-analytics-lib spark..

google analytics-lib 1.

incluede:

config-> autoload.php
config-> config.php
libraries->analytics.php

Setup:

In config file setup source where your js for analitics is stored

$config['source'] = '/theme/js/ganalitics.js';

Into your views file in header you need to seample call global variable ganalitics.

if( defined('ganalytics') ) { print( ganalytics ); }

When ENVIRONMENT setup to production your google analytics will be include into the page.

About

google analytics library for load jquery analitics in production mode

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages