Giter Site home page Giter Site logo

googleanalytics-plugin's Introduction

Google Analytics integration plugin

This plugin adds Google Analytics tracking and reporting features to the OctoberCMS.

Configuring

Google Analytics API uses the OAuth security. In order to use the plugin you need create a Google API application.

  1. Go to the Google API Console and create a new project.
  2. On the project page go to the APIs & auth / APIs section and enable Analytics API.
  3. Go to the APIs & auth / Credentials section on the project page and click the Create New Client ID button. In the popup window select the Service account option. The private key will be downloaded to your computer automatically.
  4. Copy the email address ([email protected]) from the OAuth / Service Account section and add it to your Google Analytics property you want to be able to access from OctoberCMS.
  5. In the OctoberCMS back-end go to the System / Settings page and click the Google Analytics link.
  6. Enter the Google API Project name, Google API Client ID, the generated email address and add the downloaded private key to the Google Analytics settings form.
  7. Specify the Tracking ID and Domain name values if you are going to use the plugin's built-in tracking code.

Adding the tracking code

Using the tracking code provided by the plugin is optional - the reporting part does not depend on whether you track your traffic with the built-in tracker or with a custom code generated by Google Analytics tools.

To add the plugin's tracking code to your weisbte just drop the Google Analytics Tracker component to your CMS layout and add this code to the layout code after the page tag:

{% page %}
{% component 'googleTracker' %}

googleanalytics-plugin's People

Contributors

alekseybobkov avatar daftspunk avatar xlink avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.