Git Product home page Git Product logo

gergo85 / oc-tracking Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 31 KB

If you want to use the Google Analytics Event Tracking service, this plugin helps to you. This is an October CMS and Winter CMS plugin.

Home Page: http://octobercms.com/plugin/indikator-tracking

License: MIT License

PHP 54.29% JavaScript 6.85% HTML 38.86%
octobercms octobercms-plugin wintercms wintercms-plugin google-analytics

oc-tracking's Introduction

Tracking Visitors plugin

For security reasons the build-in editor doesn't allow the onclick HTML attribute. So you want to use the Google Analytics Event Tracking service, this plugin helps to you.

Supported services

  • Google Analytics: Event Tracking

Setup the tracking

  1. Add new events on the Back-end > Settings > Tracking Visitors page.
  2. Insert the Google Analytics code to the head of website.
  3. Insert the jQuery JavaScript library to the website.
  4. Add the Google event code component to the current layout or page.
  5. Extend the links or buttons with the special attributes.

Unique attributes

Name Description
data-google-event-name the name of event. It is required attribute.
data-google-event-action the name of action. Default: the value of Action field in the current event.

Example

Event name: interest-contact

HTML code: <a href="{{ 'contact'|page }}" data-google-event-name="interest-contact">Contact</a>

Available languages

  • en - English
  • hu - Magyar
  • sl - Slovenščina

Installation

  1. Go to the Settings > Updates & Plugins page in the Backend.
  2. Click on the Install plugins button.
  3. Type the Tracking Visitors text in the search field.

oc-tracking's People

Contributors

gergo85 avatar haedaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

haedaki dheia

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.