{"id":277,"date":"2010-07-29T02:15:43","date_gmt":"2010-07-29T02:15:43","guid":{"rendered":"http:\/\/samwebman.wordpress.com\/?p=277"},"modified":"2010-07-29T02:15:43","modified_gmt":"2010-07-29T02:15:43","slug":"google-analytics-code-track-two-site","status":"publish","type":"post","link":"https:\/\/www.intentrust.com\/?p=277","title":{"rendered":"Google Analytics Code track two site"},"content":{"rendered":"<h2>Google Analytics multiple site acculated report<\/h2>\n<p>If you want to track all of your sub-domain site for the overall Google Aanlytics report. see below.<\/p>\n<p>Sample: The following example first uses the default tracker, and then creates and uses another tracker (arbitrarily called t2).<\/p>\n<pre>var _gaq = _gaq || [];\n_gaq.push(<span style=\"color:#339966;\">['_setAccount', 'UA-65432-1']<\/span>);\n_gaq.push(<span style=\"color:#339966;\">['_trackPageview']<\/span>);\n\n_gaq.push(<span style=\"color:#339966;\">['t2._setAccount', 'UA-65432-2']<\/span>);\n_gaq.push(<span style=\"color:#339966;\">['t2._setDomainName', 'foo.com']<\/span>);\n_gaq.push(<span style=\"color:#339966;\">['t2._trackPageview']<\/span>);\nReference from:<a href=\"http:\/\/code.google.com\/intl\/zh-TW\/apis\/analytics\/docs\/gaJS\/gaJSApi_gaq.html\">http:\/\/code.google.com\/intl\/zh-TW\/apis\/analytics\/docs\/gaJS\/gaJSApi_gaq.html<\/a><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Google Analytics multiple site acculated report If you  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.intentrust.com\/?p=277\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Google Analytics Code track two site\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.intentrust.com\/index.php?rest_route=\/wp\/v2\/posts\/277"}],"collection":[{"href":"https:\/\/www.intentrust.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intentrust.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intentrust.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intentrust.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=277"}],"version-history":[{"count":0,"href":"https:\/\/www.intentrust.com\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.intentrust.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intentrust.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intentrust.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}