An open API service indexing awesome lists of open source software.

https://github.com/gergo85/oc-tracking

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.
https://github.com/gergo85/oc-tracking

google-analytics octobercms octobercms-plugin wintercms wintercms-plugin

Last synced: about 1 year ago
JSON representation

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.

Awesome Lists containing this project

README

          

# 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](https://developers.google.com/analytics/devguides/collection/analyticsjs/events) 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: `Contact`

## Available languages
* en - English
* hu - Magyar
* sl - Slovenščina

## Installation
1. Go to the __Settings > Updates & Plugins__ page in the Backend.
1. Click on the __Install plugins__ button.
1. Type the __Tracking Visitors__ text in the search field.