2017 © Pedro Peláez
 

library analytics

Soda Framework: Analytics

image

soda-framework/analytics

Soda Framework: Analytics

  • Friday, July 28, 2017
  • by Chaddles23
  • Repository
  • 4 Watchers
  • 0 Stars
  • 76 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

Soda Analytics

A sweet integration with Google Analytics into the Soda Framework, (*1)

Installation

1) Firstly follow the instructions to install Soda CMS at: https://github.com/soda-framework/cms, (*2)

2) Install Soda Analytics with composer, (*3)

#!bash
composer require soda-framework/analytics

3) Add Soda\Analytics\Providers\AnalyticsServiceProvider::class, (*4)

4) Run php artisan vendor:publish, (*5)

5) Run php artisan migrate, (*6)

6) Modify config/soda/analytics.php according to your needs: * apis - Google Console API's Soda Analytics requires * service-account-name - The name of the Service Account created for Using OAuth 2.0 for Server to Server Applications * scheduler - available cron job intervals for the Analytics scheduler, (*7)

7) Add the following Laravel Blade code to your <head> to initialize Google Analytics: ```#!php @include('soda-analytics::analytics'), (*8)


## Configuration * Log into the CMS * Go to Analytics > Configure * Complete all the steps, in order, to enable and create the relevant apis and access keys. * You're ready. Start using Analytics > Audience, Events, Schedules. ## Usage ### Sending Events Send events as normal with Google Analytics: ```!#javascript ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);

Or use our helper function: !#javascript send_event([eventCategory], [eventAction], [eventLabel] (optional), [eventValue] (optional)); For best results, try to use all the parameters., (*9)

Analyzing Events

  • Log into the CMS
  • Go to Analytics > Events

Analyzing Audience

  • Log into the CMS
  • Go to Analytics > Audience

Creating Schedules

  • Log into the CMS
  • Go to Analytics > Schedules
  • Choose your desired schedule frequency (the same frequency is used for all schedules)
  • Enter the displayed cron command onto your server (using the crontab -e command)
  • Create a new schedule
  • Choose the type. Event will send event data, Audience, audience data, Events and Audience will send both.
  • Enter at least one email to send the report to.
  • Click save.
  • You can test your schedule by clicking Run Schedule

The Versions

28/07 2017

dev-master

9999999-dev

Soda Framework: Analytics

  Sources   Download

MIT

The Requires

 

by Ryan Brereton-Canham
by Jarrad Littleford
by Caleb Chadwick

laravel analytics google soda

28/07 2017

dev-release/0.1

dev-release/0.1

Soda Framework: Analytics

  Sources   Download

MIT

The Requires

 

by Ryan Brereton-Canham
by Jarrad Littleford
by Caleb Chadwick

laravel analytics google soda

28/07 2017

0.1.5

0.1.5.0

Soda Framework: Analytics

  Sources   Download

MIT

The Requires

 

by Ryan Brereton-Canham
by Jarrad Littleford
by Caleb Chadwick

laravel analytics google soda

28/07 2017

0.1.4

0.1.4.0

Soda Framework: Analytics

  Sources   Download

MIT

The Requires

 

by Ryan Brereton-Canham
by Jarrad Littleford
by Caleb Chadwick

laravel analytics google soda

27/07 2017

0.1.3

0.1.3.0

Soda Framework: Analytics

  Sources   Download

MIT

The Requires

 

by Ryan Brereton-Canham
by Jarrad Littleford
by Caleb Chadwick

laravel analytics google soda

27/07 2017

0.1.2

0.1.2.0

Soda Framework: Analytics

  Sources   Download

MIT

The Requires

 

by Ryan Brereton-Canham
by Jarrad Littleford
by Caleb Chadwick

laravel analytics google soda

26/07 2017

0.1.1

0.1.1.0

Soda Framework: Analytics

  Sources   Download

MIT

The Requires

 

by Ryan Brereton-Canham
by Jarrad Littleford
by Caleb Chadwick

laravel analytics google soda

26/07 2017

0.1.0

0.1.0.0

Soda Framework: Analytics

  Sources   Download

MIT

The Requires

 

by Ryan Brereton-Canham
by Jarrad Littleford
by Caleb Chadwick

laravel analytics google soda