Yes, the code is not consistent across our pages. That is the problem I
am trying to solve. The pages are served by dozens of different systems.
Therefore, I had held off on changing all of them until I knew I had
At this point, based on my research and the feedback here I will be going
After I get that code on the majority of pages, I can start looking into
the separate problems I am having with drop-offs and setting up a profile
that will show me the sub-domains.
Thank you to everyone for the help.
Clayton "Andrew" Predmore
Manager, Web Operations
Yale University Library
[log in to unmask]
On 2/6/12 4:53 PM, "Brian Tingle" <[log in to unmask]> wrote:
>Henry, that is what you need to do if you want to track the same page to
>two different google analytics properties and you are using the
>legacy synchronous code. It sounds like yale wants to collect all this
>under one UA- google analytics property (it is just that the property
>I think the link I sent to
>addresses the yale case; and I the way I read it adding this:
> _gaq.push(['_setDomainName', '.yale.edu']);
>Or _gaq.push(['_setDomainName', 'library.yale.edu']);
>on _every_ page should work.
>Right now, I only see _setDomainName on the home page. If this is not the
>_same_ on all the pages, the cookies won't be shared as users move between
>This page is missing
> It will only work prospectively (it won't change the past) but when all
>pages are sharing the same _setDomainName then they should all share the
>same cookies and the links between pages should be counted correctly.
>But google analytics can get tricky, just when I think I understand
>something it changes. I find I have to double check things a lot with the
>debug toolbar to make sure the right stuff is getting sent to google (esp.
>when setting up custom events or setting up multiple trackers on the same
>page). You should be able to use it to verify that the same session and
>cookies are being used as you go from page to page. In the chrome debug
>nowadays you can right click on the console log and select "Preserve Log
>upon navigation" which makes this a lot easier.