Yon kont Google Analytics, plizyè domèn

ga

Si ou se yon sosyete franchiz, ou ta ka gen plizyè domèn oswa subdomains men ou ta vle swiv trafik atravè tout nan yo. Sa posib lè ou ajoute yon lòt pwofil nan Google Analytics epi ajoute yon dezyèm pwofil tracker.

ORIJINAL Egzanp Kòd:

try {var pageTracker = _gat._getTracker("UA-111111-1");
pageTracker._setDomainName ("okenn");
pageTracker._setAllowLinker (vre); pageTracker._initData (); pageTracker._trackPageview (); } trape (erè) {}

NEW: Asynchrone Google Analytics Kòd Egzanp:

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345-1']);
_gaq.push (['_ setDomainName', 'example-petstore.com']);
_gaq.push (['_ setAllowLinker', vre]); _gaq.push (['_ trackPageview']); (fonksyon () {var ga = document.createElement ('script'); ga.type = 'tèks / javascript'; ga.async = vre; ga.src = ('https:' == document.location.protocol? 'https: // ssl': 'http: // www') + '.google-analytics.com / ga.js'; var s = document.getElementsByTagName ('script') [0]; s.parentNode.insertBefore (ga, s);}) (); //]]>

Kèk semèn de sa mwen te fè kèk fouye nan Google Analytics epi yo aktyèlman ankouraje metòd pou ajoute Des pou filtre done yo tou. Petèt ou vle obsève konbyen moun ki vizite sit ou soti nan nan konpayi ou kont vizitè ekstèn. Ou kapab ajoute yon filtè pou adrès IP ou yo sou yon sèl pwofil (limite trafik jis ekstèn lan) ak Lè sa a, konpare de kont yo.

3 Kòmantè

  1. 1

    Hi Douglas,i have opened my second blog recently. Now i want to track this blog in Google Analytics.How do i add this profile,so that i can view reports of both my profiles(blogs).

  2. 3

    Great site ! Good to see a fellow Indiana resident (I am a South Bender) hit AllTop. Got you bookmarked — see you after my first Blog is installed. Have some fun @ Blog Indiana. Hope you have time to go get the BetterNetworker.com seal, for your sites, it's $10/mo. w/ a ltd. sign-up time. It will be big w/ Mike Dillard behind it; and many top MLMers in the site. B)

Ki sa ou panse?

Sit sa a sèvi ak Akismet diminye Spam. Aprann kijan kòmantè ou a trete.