How do we track multiple domains on both Urchin 6 *and* GA ?

95 views
Skip to first unread message

ship

unread,
Jan 30, 2012, 1:53:14 PM1/30/12
to Urchin Software from Google - help forum - Urchin 6
Hi

OKAY time to atomise...

More below

J


ship

unread,
Jan 30, 2012, 1:54:21 PM1/30/12
to Urchin Software from Google - help forum - Urchin 6
Hi

BACKGROUND
We have a merchant website that is co-branded for use by for different
media partners.
Although each of these "mini-sites" is hosted on the same web server,
each one has slightly different products... and SOME of these "mini-
sites" (each of which will have it's own directory name, incidentally)
will also have their own domain.

[ Key:
     "MAINSITE" = please substitute our domain name
   "PARNER01", "PARTNER02", "PARTNER03"  (etc) = our co-brand
partner domains ]

- www.MAINSITE
- www.MAINSITE/partner01
- www.PARTNER02/partner02
- www.PARTNER03/partner03
- www.MAINSITE/partner04
- www.MAINSITE/partner05
- www.PARTNER06/partner06

etc

ship

unread,
Jan 30, 2012, 1:55:27 PM1/30/12
to Urchin Software from Google - help forum - Urchin 6
We would like to be able:

A) To report each (co-branded) partner site to be reported separately
(i.e. in their own profile).

B) To aggregate analytics data from ALL the sites (some of which are
on dedicated domains) into a single overall profile.


RECENT CHANGE
We recently implemented the following (asynchronous?) code into the
HTML page headers, [where "domain.com" is of course the domain name
either of of the cobrand or of our main site]:

    <!-- START of GA tracking code-->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3962324-1']);
      _gaq.push(['_setDomainName', 'www.PARTNER']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/
javascript'; ga.async = true;
        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);
      })();
    </script>
    <!-- END of GA tracking code-->

ship

unread,
Jan 30, 2012, 1:57:20 PM1/30/12
to Urchin Software from Google - help forum - Urchin 6
Although this code successfully tracks each domain in Goolge
Analytics, our UTM tracking in Urchin 6 has (almost) completely
stopped tracking!

- What do we need to do get UTM tracking in Urchin 6 across multiple
domains?

e.g. Should we bring back our Urchin UTM tracking, but do it
completely separately from our GA tracking.

Incidentally, although we currently do store and use web access log
files, we don't want to use the IPUA type of Urchin tracking partly
because we were told that it is inaccurate, and partly because we have
some weird error-pages that are putting our page-view stats out (that
so fare we have been unable to fix!)

- Any thoughts?

With thanks

John
John Smith


ship

unread,
Jan 30, 2012, 2:00:34 PM1/30/12
to Urchin Software from Google - help forum - Urchin 6
P.S. Here is the original code that we were using until a few days ago
[at the *bottom* of each HTML page]. This code was used by GA *and* by
Urchin to do UTM tracking.

Caleb Whitmore - Analytics Pros

unread,
Jan 30, 2012, 2:00:03 PM1/30/12
to urchin...@googlegroups.com
John,

You're missing the setLocalRemoteServerMode directive in the code you posted.  Without that your UTM hits only go to GA, not to your local Urchin server as well.  Look of the docs on the GA API codesite for setting this method properly.

Best,

-Caleb
_________________________________________
Caleb Whitmore | Founder & Principal Consultant
ANALYTICS PROS | My Book | LinkedIn | Twitter @analyticspros
google analytics certified partners

ca...@analyticspros.com
Office:   541-639-3738
Direct:   541-728-0275
Mobile:  541-633-3075




--
You received this message because you are subscribed to the Google Groups "Urchin 6" group.
To post to this group, send email to urchin...@googlegroups.com.
To unsubscribe from this group, send email to urchin-help-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/urchin-help-6?hl=en.


ship

unread,
Jan 30, 2012, 2:03:21 PM1/30/12
to Urchin Software from Google - help forum - Urchin 6

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://
ssl." : "http://www.");

ship

unread,
Jan 30, 2012, 2:06:56 PM1/30/12
to Urchin Software from Google - help forum - Urchin 6
Okay I effing give up. Aaaaaaarrrrrrrgggggghhhhhh !
This DAMNED groups.google.com won't allow me to post my previous code.
I don't know why (but it's effing irritating!)

ship

unread,
Jan 30, 2012, 2:12:28 PM1/30/12
to Urchin Software from Google - help forum - Urchin 6
Okay thanks Caleb.

Well, our previous version of GA / Urchin tracking code contained two
<script> tags.

The second of which was:

<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3962324-1");
pageTracker._setLocalRemoteServerMode();
pageTracker._trackPageview();
} catch(err) {}
</script>

Should we just add that after the "</script>" in the code I describe
above?
(i.e. what ended up being the third posting on this thread).

Caleb Whitmore - Analytics Pros

unread,
Jan 30, 2012, 2:18:12 PM1/30/12
to urchin...@googlegroups.com
No, do NOT add two trackers, use one tracker with the proper methods defined.  Here's the doc you need to read:


Best,

-Caleb
_________________________________________
Caleb Whitmore | Founder & Principal Consultant
ANALYTICS PROS | My Book | LinkedIn | Twitter @analyticspros
google analytics certified partners

ca...@analyticspros.com
Office:   541-639-3738
Direct:   541-728-0275
Mobile:  541-633-3075


ship

unread,
Jan 31, 2012, 6:54:25 AM1/31/12
to Urchin Software from Google - help forum - Urchin 6

Drat - drat - drat.

Aaaarrrggghhh! Why is all this so COMPLICATED.
Why in the name of **** can't Google just give us something SIMPLE to
add?

I am at the limits of my knowledge. I am non-technical. And the
problem I have is that our developers are saying that they dont have
time to spend hours doing this research. And no, we are a small
company with no spare budget to out-source this problem to
consultants.

Aaaarrrggghhh!

John


On Jan 30, 7:18 pm, Caleb Whitmore - Analytics Pros
<caleb...@analyticspros.com> wrote:
> No, do NOT add two trackers, use one tracker with the proper methods
> defined.  Here's the doc you need to read:
>
> http://code.google.com/apis/analytics/docs/gaJS/gaJSApiUrchin.html
>
> Best,
>
> -Caleb
> _________________________________________
> Caleb Whitmore | Founder & Principal Consultant
> *ANALYTICS PROS <http://www.analyticspros.com/>* | My
> Book<http://bit.ly/analytics-book>
>  | LinkedIn <http://www.linkedin.com/in/calebwhitmore> | Twitter
> @analyticspros <http://www.twitter.com/analyticspros>
> >http://groups.google.com/group/urchin-help-6?hl=en.- Hide quoted text -
>
> - Show quoted text -

Caleb Whitmore - Analytics Pros

unread,
Jan 31, 2012, 8:59:38 AM1/31/12
to urchin...@googlegroups.com
John,

I don't understand what you are upset about here.  You are missing one line of code in your code.  The method setLocalRemoteServerMode is what you don't have in your tag.  Add it, and you're set.

A couple options:

1) Check out our tool Analytics Engine www.analyticsengine.net - this tool makes tagging forever easy.  One-time placement of the universal tag and you never have to talk to your developers again to get updates made to your tags, move between platforms (urchin to GA, others), add more tags (other systems), start up Event Tracking, and more.

2) Hire a consultant to help.  Our firm helps, so do the other Urchin partners.


Best,

-Caleb
_________________________________________
Caleb Whitmore | Founder & Principal Consultant
google analytics certified partners

ca...@analyticspros.com
Office:   541-639-3738
Direct:   541-728-0275
Mobile:  541-633-3075

ship

unread,
Jan 31, 2012, 4:01:09 PM1/31/12
to Urchin Software from Google - help forum - Urchin 6
Hi

Thank you for your assistance.
OK I've calmed down (slightly) now. Even though I do still think
integration of google tracking in very much more complicated than
necessary!

Okay so it sounds like we simply need to add the one line of code:
> _gaq.push(['_setLocalServerMode']);
If so, the next question is *where* to add it?
How's about after the other "_gaq.push()" things:
i.e.

<!-- START of GA tracking code-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3962324-1']);
_gaq.push(['_setDomainName', 'www.PARTNER']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
_gaq.push(['_setLocalServerMode']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/
javascript'; ga.async = true;
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);
})();
</script>
<!-- END of GA tracking code-->

Does that look about right?
With thanks

J

















On Jan 31, 1:59 pm, Caleb Whitmore - Analytics Pros
<caleb...@analyticspros.com> wrote:
> John,
>
> I don't understand what you are upset about here.  You are missing *one
> line of code* in your code.  The method setLocalRemoteServerMode is what
> you don't have in your tag.  Add it, and you're set.
>
> A couple options:
>
> 1) Check out our tool Analytics Enginewww.analyticsengine.net- this tool
> makes tagging forever easy.  One-time placement of the universal tag and
> you never have to talk to your developers again to get updates made to your
> tags, move between platforms (urchin to GA, others), add more tags (other
> systems), start up Event Tracking, and more.
>
> 2) Hire a consultant to help.  Our firm helps, so do the other Urchin
> partners.
>
> Best,
>
> -Caleb
> _________________________________________
> Caleb Whitmore | Founder & Principal Consultant
> > > >http://groups.google.com/group/urchin-help-6?hl=en.-Hide quoted text -

Caleb Whitmore - Analytics Pros

unread,
Jan 31, 2012, 5:10:14 PM1/31/12
to urchin...@googlegroups.com
Put it right before the trackPageview call.

-Caleb

ship

unread,
Feb 6, 2012, 7:25:04 AM2/6/12
to Urchin Software from Google - help forum - Urchin 6
OK thanks Caleb.
So to double-check, our GA tracking code needs to look like this,
yes(?):


<!-- START of GA tracking code-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3962324-1']);
_gaq.push(['_setDomainName', 'www.PARTNER']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setLocalServerMode']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/
javascript'; ga.async = true;
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);
})();
</script>
<!-- END of GA tracking code-->

With many thanks

J











On Jan 31, 10:10 pm, Caleb Whitmore - Analytics Pros
> > > 1) Check out our tool Analytics Enginewww.analyticsengine.net-this tool

Caleb Whitmore - Analytics Pros

unread,
Feb 6, 2012, 11:01:27 AM2/6/12
to urchin...@googlegroups.com
You should use _gaq.push(['_setLocalRemoteServerMode']); if you want data to go to both Google Analytics AND to your server logfiles for Urchin.  Using "setLocalServerMode" will result in no data going to Google Analytics, which I suspect isn't what you want.

-Caleb



On Mon, Feb 6, 2012 at 4:25 AM, ship <shi...@gmail.com> wrote:
_gaq.push(['_setLocalServerMode']);

ship

unread,
Feb 7, 2012, 12:34:33 PM2/7/12
to Urchin Software from Google - help forum - Urchin 6
Hi Caleb



Aaaarrrggghhh ! I told you this was complicated. But thanks so much
for your help.

OK. So do you mean that I should replace:
_gaq.push(['_setLocalServerMode']);
with the line
_gaq.push(['_setLocalRemoteServerMode']);

??

If so, just to confirm then, should our GA/Urchin tracking code look
like this?

<!-- START of GA tracking code-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3962324-1']);
_gaq.push(['_setDomainName', 'www.PARTNER']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setLocalRemoteServerMode']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/
javascript'; ga.async = true;
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);
})();
</script>
<!-- END of GA tracking code-->

With thanks

J














On Feb 6, 4:01 pm, Caleb Whitmore - Analytics Pros
<caleb...@analyticspros.com> wrote:
> You should use _gaq.push(['_setLocalRemoteServerMode']); if you want data
> to go to both Google Analytics AND to your server logfiles for Urchin.
>  Using "setLocalServerMode" will result in no data going to Google
> Analytics, which I suspect isn't what you want.
>
> -Calebwww.analyticspros.com
>
>
>
> On Mon, Feb 6, 2012 at 4:25 AM, ship <ship...@gmail.com> wrote:
> > _gaq.push(['_setLocalServerMode']);- Hide quoted text -

ship

unread,
Feb 7, 2012, 12:48:31 PM2/7/12
to Urchin Software from Google - help forum - Urchin 6
ALSO, we now want to get our reviews held by a third-party (called
feefo). How can we track whether individual visits to feefo increase
our conversion rates?

Background
Basically the way it works is that our website would display a graphic
(a PNG file) containing our current approval rating from our own
customers as a number (i.e. a percentage). There are two different
ways that we could install feefo.
1. A link to the feefo website where all our reviews are both
summarised and also shown in detail. This could be
a) in a new tab
b) in a new browser window
c) in the same tab (and same window)

2. A "lightbox" type of pop-up that makes the rest of the screen go
dim.

Which ever way we do it, how would we get to tag the individual visit
so that we can see whether visits to feefo increase (or decrease) our
conversion rates?

We would like to use 3 different analytics systems:
- Google Analytics
- Urchin (using UTM)
- Urchin (using IPUA - in case the UTM tagging breaks like it has
right now)

All help much appreciated.

John
John Smith


Reply all
Reply to author
Forward
0 new messages