Skip to content

If you want to use the Google Analytics Event Tracking service, this plugin helps to you.

License

Notifications You must be signed in to change notification settings

Haedaki/oc-tracking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 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

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 49.8%
  • HTML 42.7%
  • JavaScript 7.5%