What does this do?
Provides a simple way to easily add google analytics and outbound link tracking to your pages.
How do I use it?
Just insert the tag into your template/page like so: {google_analytics urchin="UA-XXXXX-X"} (and replace UA-XXXXX-X with your web property ID)
What parameters does it take?
-
(
required
) urchin - the urchin/tracking id provided by google
-
(
optional
) cache - stores a minified copy of ga.js on the server(
default - false
)
-
(
optional
) outbound - enables outbound link tracking (
default - false
). attaching/binding
onClick="recordOutboundLink(this);return false;"
to the desired links is still required. For more info see
here
-
(
optional
) trimToDomain - if
outbound
is set to
true
it will trim http://www.url.com to url.com when pushed to Google Analytics
Author: Russ Wilson<[email protected]>
Version: 1.2
Change History:
-
1.2 -
-
Added outbound link tracking
-
Renamed plugin (google_analytics instead of googleanalytics)
-
Added Help
-
1.1 - Added JSMin class (see source for credits)
-
1.0 - Initial version