Extensions > googleanalytics

Google Analytics

[googleanalytics]

Includes Google Analytics tracking

This extension offers an easy way to include the tracking code for Google Analytics.

Features:

  • Google-Analytics-ID for each page root (allows usage of different trackings with multi domain setups)
  • Anonymize the IP before sending it to Google
  • Add page speed measurement is configurable
  • Domain for tracking cookie is configurable
  • Track downloads (Copy templates to central template folder and remove "_ga" part from the name.)
  • Track events and external links (only prepared, see below)

Documentation for tracking of events and external links:

The tracking of events and external links is only prepared by this extension. For each event or link which should get tracked a special javascript-call is needed to do the tracking. This call can be added manually or by the extension which add the code for the event or link.

To track external URLs use the function "recordOutboundLink". Parameters are the group for event tracking (an external link will be tracked like an event), the URL string, and a flag to open the URL in a new window (1=yes/0=no). Example:

a href="foobar.com" onClick="recordOutboundLink(this, 'Outbound Links', 'foobar.com', 1);return false;"

For the racking of events use the function gaTrackEvent. Parameters are the group for event tracking and a value. Example:

a href="mailto:foo@bar.com" onClick="gaTrackEvent('E-Mail sent', 'foo@bar.com');"

 

Version
1.3.0
Type
Free
Release date
26.08.2011
Category
Application
License
LGPL
Copyright
© 2011 Jan Theofel, 2010 ETES GmbH
Author
hofff.com (hofff) https://www.hofff.com
English transl.
Jan Theofel (jan.theofel) http://www.theofel.com/
Release notes and change log for 1.3.0
Other versions

 

- Changed field length for tracking domain
- Added tracking for external URLs and events
- Added function to measure page speed
- JavaScript code optimized

All tickets for version 1.3.0:
http://www.contao-forge.org/projects/googleanalytics/versions/333

Release functionality
 
Total functionality
0.00
Release usability
 
Total usability
0.00
Release quality
 
Total quality
0.00
Release rating
 
Total rating
0.00 (0 votes)
Release downloads
73
Total downloads
2150
Release installs
589
Total installs
12728
Release updates
429
Total updates
5053
Dependencies of this extension
Other extensions depending on this one
Name
Version from
Version to
Contao
2.8.0
2.10.2
Name
Version from
Version to