Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.29 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.29 KB

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

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.