Google Analytics

From MegaZine3
(Redirected from Googleanalytics)
Jump to navigation Jump to search
{{#if: | }} {{#if: | }}{{#if: * googleanalyticsjs.swf | }}{{#if: * Links | }}
Plugin: GoogleAnalyticsJs
[[File:{{{image}}}]]
Name GoogleAnalyticsJs
Since version

{{{version}}}

Files
  • googleanalyticsjs.swf
Related plugins

This plugin tracks clicks on links in the book, i.e. part of the interface described in Google Analytics Flash API.

Plugin Interactions

This plugin works by overriding the default protocol handlers in the links plugin for common links, such as http:// and mailto:.

Settings

== gaaccount =={{#if: String |

  • Type: String}}{{#if: |
  • Valid values: {{{valid}}}}}{{#if: UA-000-000 |
  • Default: UA-000-000}}{{#if: |
  • Overrides: {{{overrides}}}}}{{#if: |
  • Aliases: {{{alias}}}}}{{#if: |
  • Version: {{{version}}}}}

The Google Analytics account for which to track the results.{{#if: |

  • See also: {{{see}}}}}

== gatrackas =={{#if: String |

  • Type: String}}{{#if: |
  • Valid values: {{{valid}}}}}{{#if: |
  • Default: {{{default}}}}}{{#if: |
  • Overrides: {{{overrides}}}}}{{#if: |
  • Aliases: {{{alias}}}}}{{#if: |
  • Version: {{{version}}}}}

Tracks all links going out from the engine as the same, that being the value of this setting. In detail, this calls trackPageview() with the given value. Otherwise calls the same function, but with the value of the link clicked.{{#if: |

  • See also: {{{see}}}}}

== gatrackevent =={{#if: String |

  • Type: String}}{{#if: |
  • Valid values: {{{valid}}}}}{{#if: |
  • Default: {{{default}}}}}{{#if: |
  • Overrides: {{{overrides}}}}}{{#if: |
  • Aliases: {{{alias}}}}}{{#if: |
  • Version: {{{version}}}}}

A comma separated list of strings that should be passed to the trackEvent() function, with two available "variables", {url}, the URL that is being navigated to, and {target}, the target parameter of the link. The fourth parameter, if given, will be converted to a number (as that's what the function of the Analytics API takes).{{#if: |

  • See also: {{{see}}}}}

Example

<book plugins="googleanalytics" gaaccount="UA-123-456" gatrackevent="buttonClicked,Outgoing,{url}">
    <!-- ... -->
</book>

External links

MegaZine3 Plugin-related articles
Plugins Anchors · Background Sounds · Batchpages · Bookmarks · Console · ElementIDs · Gallery · Google Analytics · Help · JavaScript · Keyboard Navigation · Links · NavigationBar · Options · Overlays · Password · PDFLinks · Print · PrintPDF · SWFAddress· Search · Sidebar · Slideshow · Titles
Plugin Articles Writing a plugin · Writing a plugin II · Plugin development

{{#if: | |}}