Skip to content

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.

License

Notifications You must be signed in to change notification settings

gergo85/oc-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published