{"id":221,"date":"2009-03-17T19:03:00","date_gmt":"2009-03-17T11:03:00","guid":{"rendered":"http:\/\/iamfisher.net\/fisher\/?p=221"},"modified":"2009-03-17T19:03:00","modified_gmt":"2009-03-17T11:03:00","slug":"docs-analytics","status":"publish","type":"post","link":"https:\/\/iamfisher.net\/fisher\/2009\/03\/17\/docs-analytics\/","title":{"rendered":"docs + analytics"},"content":{"rendered":"<p>&lt;script type=&#8221;text\/javascript&#8221;&gt;  <br \/>var gaJsHost = ((&#8220;https:&#8221; == document.location.protocol) ? &#8220;https:\/\/ssl.&#8221; : &#8220;http:\/\/www.&#8221;);<br \/>document.write(unescape(&#8220;%3Cscript src='&#8221; + gaJsHost + &#8220;google-analytics.com\/ga.js&#8217; type=&#8217;text\/javascript&#8217;%3E%3C\/script%3E&#8221;));<br \/>&lt;\/script&gt;   <br \/>&lt;script type=&#8221;text\/javascript&#8221;&gt;   <br \/>var page = typeof urchinPage != &#8216;undefined&#8217; ? urchinPage : window.location.href;  <br \/>var account = &#8216;UA-18065-1&#8217;;  <br \/>if (typeof _gat != &#8216;undefined&#8217;) {  <br \/>var pageTracker = _gat._getTracker(account);  <br \/>pageTracker._setAllowAnchor(true);  <br \/>pageTracker._trackPageview(page);  <br \/>}  <br \/>&lt;\/script&gt;   <br \/>&lt;script&gt;&lt;!&#8211;  <br \/>\u3000\u3000\u3000if (typeof _gat != &#8216;undefined&#8217;) {  <br \/>\u3000\u3000\u3000\u3000  <br \/>\u3000\u3000\u3000\u3000\u3000var docid = writely.getDocId();  <br \/>\u3000\u3000\u3000\u3000\u3000var doctitle = writely.Vars.getDisplayTitle();  <br \/>\u3000\u3000\u3000\u3000\u3000var useranalyticsid = writely.Vars.getStringDocVar(&#8216;useranalyticsid&#8217;);  <br \/>\u3000\u3000\u3000\u3000  <br \/>\u3000\u3000\u3000\u3000if (useranalyticsid) {  <br \/>\u3000\u3000\u3000\u3000\u3000doctitle = doctitle.replace(\/\\s+\/g, &#8216;_&#8217;);  <br \/>\u3000\u3000\u3000\u3000\u3000var userPageTracker = _gat._getTracker(useranalyticsid);  <br \/>\u3000\u3000\u3000\u3000\u3000userPageTracker._setAllowAnchor(true);  <br \/>\u3000\u3000\u3000\u3000\u3000\/\/ Use the analytics id as a unique cookie path for this user.  <br \/>\u3000\u3000\u3000\u3000\u3000userPageTracker._setCookiePath(&#8216;\/u\/&#8217; + useranalyticsid);  <br \/>\u3000\u3000\u3000\u3000\u3000userPageTracker._trackPageview(doctitle);  <br \/>\u3000\u3000\u3000\u3000}  <br \/>\u3000\u3000\u3000}  <br \/>\u3000\u3000&#8211;&gt;&lt;\/script&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;script type=&#8221;text\/javascript&#8221;&gt; var g [&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-221","post","type-post","status-publish","format-standard","hentry","category-default"],"_links":{"self":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/comments?post=221"}],"version-history":[{"count":0,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts\/221\/revisions"}],"wp:attachment":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/media?parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/categories?post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/tags?post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}