{"id":148,"date":"2008-11-06T20:51:00","date_gmt":"2008-11-06T12:51:00","guid":{"rendered":"http:\/\/iamfisher.net\/fisher\/?p=148"},"modified":"2008-11-06T20:51:00","modified_gmt":"2008-11-06T12:51:00","slug":"google-analytics-tracking-code","status":"publish","type":"post","link":"http:\/\/iamfisher.net\/fisher\/2008\/11\/06\/google-analytics-tracking-code\/","title":{"rendered":"Google Analytics Tracking Code"},"content":{"rendered":"<p><font face=Verdana> <\/p>\n<div><font color=#c0c0c0><\/font><font size=2><a href=\"mailto:my0513@foxmail.com\"><\/a><\/font><\/div>\n<p><\/font> <\/p>\n<div><font color=#c0c0c0><\/font><font size=2> <\/p>\n<h1 class=page_title>Event Tracking Overview<\/h1>\n<p>Event Tracking is a new method available in the <code>ga.js<\/code> tracking  code that you can use to record user interaction with website elements, such as  a Flash-driven menu system. This is accomplished by attaching the method call to  the particular UI element you want to track. When used this way, all user  activity on such elements is calculated and displayed as Events in the Analytics  reporting interface. Additionally, pageview calculations are unaffected by user  activity tracked using the Event Tracking method. Finally, Event Tracking  employs an object-oriented model that you can use to collect and classify  different types of interaction with your web page objects.<\/p>\n<p>By contrast, tracking web page objects using the <code>urchin.js<\/code>  tracking code requires virtual URL creation and provides no object hierarchy.  With the legacy <code>urchin.js<\/code> code, user interaction with page objects  is calculated and displayed as part of total page views to your site, and no  distinction is made between actual and virtual pageviews. <\/p>\n<p>With <code>ga.js<\/code>, you would commonly apply Event Tracking to:<\/p>\n<ul>\n<li>Any Flash-driven element, like a Flash website, or a Flash Movie    player<\/li>\n<li>Embedded AJAX page elements<\/li>\n<li>Page gadgets <\/li>\n<li>File downloads<\/li>\n<li>Load times for data <\/li>\n<\/ul>\n<p>This document assumes familiarity with Google Analytics Tracking Code (GATC)  configuration. Additionally, you must have the <code>ga.js<\/code> tracking code  installed on those pages where you configure Event Tracking as described here.  For more information on tracking your site using the GATC, see the <a href=\"http:\/\/code.google.com\/apis\/analytics\/docs\/gaTrackingOverview.html\">Tracking  Sites<\/a> guide as well as the documentation in the Analytics Concepts section  of this site.<\/p>\n<p><\/font><\/div>\n<div><font color=#c0c0c0 size=2><\/font>&nbsp;<\/div>\n<div><font color=#c0c0c0><\/font><font size=2>2008-11-06<\/font><\/div>\n<div>\n<hr \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Event Tracking Overview Event Tracking is a new method  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-default"],"_links":{"self":[{"href":"http:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/comments?post=148"}],"version-history":[{"count":0,"href":"http:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts\/148\/revisions"}],"wp:attachment":[{"href":"http:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/media?parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/categories?post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/tags?post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}