Forums

Asynchronous Google Analytics for WordPress
[resolved] Events Tracking (3 posts)

  1. willyamrost
    Member
    Posted 1 year ago #

    Hi, Thanks for the great plugin. Could you explain me how to add an event tracking? Thank you.

    http://wordpress.org/extend/plugins/async-google-analytics/

  2. ciaukliffoo
    Member
    Posted 1 year ago #

    have same question with willyamrost. how can I add the event tracking? Can give an example please? thanks!

  3. minilibra
    Member
    Posted 1 year ago #

    Events tracking can be done by binding some specific dom events (such as click, resize, etc) with _gaq push method using '_trackEvent' parameter (in async tracking) or by call the _trackEvent function directly (in traditional tracking).

    Example:
    <a href="my-song.mp3" onclick="_gaq.push(['_trackEvent', 'Music', 'Downloaded', 'My Song']);">Download My Song</a>

    You can read more details about event tracking and it's parameter at http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic