I have a main domain, www.site.edu and 85 subdomains (intranet.site.edu, faculty.site.edu, etc.). I am tracking the main domain and all subdomains on one report in GA using a single Web Property ID (UA-123456789-1)
For the main domain, I set the the Google Analytics module as follows:
Web Property ID: UA-123456789-1 What domains are you tracking? One domain with multiple sub-domains. In the Advanced Settings/Javascript snippets, I added the following in the Code Snippet (before) box: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-123456789-1']); _gaq.push(['_setDomainName', '.site.edu']);
For the sub-domains, I set the Google Analytics module as follows:
Web Property ID: UA-123456789-1 What domains are you tracking? A single domain. In the Advanced Settings/Javascript snippets, I added the following in the Code Snippet (before) box, per info obtained on the Google Analytics help pages: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-123456789-1']); _gaq.push(['_setDomainName', '.site.edu']);
This all seems to work ok, except the following problem: on my GA Top Content report, I cannot tell where the hits came from. Example: my 24th highest entry is listed as \program. That node appears on many of my subdomains. Is it aggregating every instance of \program across 85 subdomains into one metric? If you click on it in the report, it gives a 404 error.
If I go to the Content by Title view, it's a little better because I can see the names of the pages.
I am wondering if I have everything set up correctly. If you are whiz at GA/Drupal and can tell if my settings are wrong, please let me know! They came about from much trial and error and digging through the GA help pages.
Thanks!
Gary Broyhill Lenoir-Rhyne University www.lr.edu
In the main site If you have already enable the subdomain setting enabled in GA module then you don't have to add javascript code it is just adding extra line . Something like this "var _gaq = _gaq || [];_gaq.push(["_setAccount", "UA-123456789-1"]);_gaq.push(["_setDomainName", ".site.edu"]);var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-123456789-1']);
_gaq.push(['_setDomainName', '.site.edu']);_gaq.push(["_trackPageview"]);"
And in your GA Account settings you also have to apply filters to add domain name to uri and you can also create profiles (50 per GA account) for each subdomain. This link is helpful for GA settings http://cutroni.com/blog/2007/11/19/tracking-sub-domains-with-google-analytic...
On Sat, Dec 17, 2011 at 1:40 AM, Broyhill, Gary Gary.Broyhill@lr.eduwrote:
I have a main domain, www.site.edu and 85 subdomains (intranet.site.edu, faculty.site.edu, etc.). I am tracking the main domain and all subdomains on one report in GA using a single Web Property ID (UA-123456789-1)
For the main domain, I set the the Google Analytics module as follows:
Web Property ID: UA-123456789-1 What domains are you tracking? One domain with multiple sub-domains. In the Advanced Settings/Javascript snippets, I added the following in the Code Snippet (before) box: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-123456789-1']); _gaq.push(['_setDomainName', '.site.edu']);
For the sub-domains, I set the Google Analytics module as follows:
Web Property ID: UA-123456789-1 What domains are you tracking? A single domain. In the Advanced Settings/Javascript snippets, I added the following in the Code Snippet (before) box, per info obtained on the Google Analytics help pages: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-123456789-1']); _gaq.push(['_setDomainName', '.site.edu']);
This all seems to work ok, except the following problem: on my GA Top Content report, I cannot tell where the hits came from. Example: my 24th highest entry is listed as \program. That node appears on many of my subdomains. Is it aggregating every instance of \program across 85 subdomains into one metric? If you click on it in the report, it gives a 404 error.
If I go to the Content by Title view, it's a little better because I can see the names of the pages.
I am wondering if I have everything set up correctly. If you are whiz at GA/Drupal and can tell if my settings are wrong, please let me know! They came about from much trial and error and digging through the GA help pages.
Thanks!
Gary Broyhill Lenoir-Rhyne University www.lr.edu
-- [ Drupal support list | http://lists.drupal.org/ ]
I need to process additional text fields in a created content type into active links...
(I figure someone would have don't this before and might have so early clues.)
The field looks like this...
<div class="field field-name-field-url-survey field-type-text field-label-inline clearfix"> <div class="field-label">Survey URL: </div> <div class="field-items"> <div class="field-item even">http://thebestplans.org/limesurvey/index.php?sid=11647&lang=en &amp;11647X14X225=A Political Reconciliation - to End the Israeli Arab Conflict (Gilad Katz)&amp;11647X14X2161=[current-user:uid]&amp;11647X14X2162=16A</di v> </div> </div>
When processed it should be as so...
<div id="plan-evaluate"> <p><a href="http://thebestplans.org/limesurvey/index.php?sid=11647&lang=en& ;11647X14X225=A Political Reconciliation - to End the Israeli Arab Conflict (Gilad Katz)&11647X14X2161=[current-user:uid]&11647X14X2162=16A" onclick="window.open(this.href, 'EvaluationReport', 'resizable=yes,status=no,location=yes,toolbar=no,menubar=no,fullscreen=no,sc rollbars=yes,dependent=no,width=920,left=10,height=800,top=10'); return false;">Evaluate this plan</a></p> </div>
What I'm thinking is...
<div class="field-item even">display-name, URL</div>
OR
Label == display-name
Note that I'm using tokens =[current-user:uid]
Any clues? One option is to make all the fields into full text fields but the document is in 3 languages and this would create a bit of 'mess'.
Yani