Google Analytics for Widgets
From KickApps API Reference
Contents |
Sign up for Google Event Tracking
To track widgets in your Google Analytics account, you'll first need to sign up for Google’s Event Tracking feature, which is currently (9/14/09) in closed beta. You can request access to the beta program on this page.
Installing Google Analytics in widgets
To install Google Analytics in your widgets, log in to Google Analytics and copy the Web Property ID (looks like UA-xxxxx-yy) of the website profile in which you'd like to track your widgets. Then, back in the App Studio, paste this ID into the Tracking panel of any widget that you wish to track (find the Tracking panel under Window > Tracking).
Once Google approves your application to the Event Tracking beta, a new Events section will appear under the Content panel in your reports.
Supported Events
The Google Analytics integration currently supports the following events:
- Widget views
- Widget views are recorded in Google Analytics as "pageviews", where the "pageview" entry is a long string composed of Affiliate Site ("AS") ID/Widget ID/encoded URL on which the widget was viewed.
- Video plays
- User clicked anywhere in your widget
- User opened the syndication menu
- User clicked a link to upload a video
- User clicked a link to upload an audio track
- User clicked a link to upload a photo
- User clicked a link to create a blog post
- User clicked a link to the log in page for your community
- User clicked a link to the sign up page for your community
- User clicked a link to view more media items on your site
Custom Events
In addition to these pre-defined events, you can also send custom event entries to Google on when any events occur within your components. See the "Track Event" action entry in the Events & Actions reference.