Profile

Cover photo
James Leonard
Worked at Bloom
Lives in Leeds
6,855 views
AboutPostsPhotosVideosReviews

Stream

James Leonard

Shared publicly  - 
 
+ADThomesecurityuk have worked with a number of contributors, including +Victim Support +North Wales Police +Avon and Somerset Constabulary +Crime Prevention and Neighbourhood Watch to produce this graphic >>
1
Add a comment...

James Leonard

Shared publicly  - 
 
All about Light Water Valley roller coaster!
1
Add a comment...

James Leonard

Questions  - 
 
Hi All - so I have a question about tracking two different accounts on one page.

I have: 

One domain I want to cross sub-domain track (UA-XXXXX11-1)
    - www.domainA.com
    - secure.domainA.com
 
One domain which I want to cross domain track (UA-XXXXX22-2)
    - from www.domainB.com 
    - to www.domainA.com

These are using two different GA accounts.
(UA-XXXXX11-1)
(UA-XXXXX22-2)

Would the following code work correctly? This would be implemented on www.domainA.com


<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXX11-1']);
  _gaq.push(['_setDomainName', ‘domainA.com']);
  _gaq.push(['_trackPageview']);
  _gaq.push(['b._setAccount', 'UA-XXXXX22-2']);
  _gaq.push(['b._setDomainName', ‘domainA.com']);
  _gaq.push(['b._setAllowLinker', true]);
  _gaq.push(['b._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>

I would then set up the cross links on www.domainB.com which link to www.domainA.com

My worry is parsing the correct cookie information to the correct trackers.

Many thanks in advance. 
James
1
Add a comment...

James Leonard

Shared publicly  - 
 
 
Am I crazy or +Pierre Far did you announce this last Friday without it being a big announcement? :)
1
Add a comment...

James Leonard

Shared publicly  - 
 
Wow. So happy to finally see something like this for mobile. So needed.
1
Matthew Kerridge's profile photo
 
Hear hear. Will be good to get stuck into
Add a comment...
In his circles
118 people

James Leonard

General Tech Talk  - 
 
Hi All - so I have a question about tracking two different accounts on one page.

I have: 

One domain I want to cross sub-domain track (UA-XXXXX11-1)
    - www.domainA.com
    - secure.domainA.com
 
One domain which I want to cross domain track (UA-XXXXX22-2)
    - from www.domainB.com 
    - to www.domainA.com

These are using two different GA accounts.
(UA-XXXXX11-1)
(UA-XXXXX22-2)

Would the following code work correctly? This would be implemented on www.domainA.com


<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXX11-1']);
  _gaq.push(['_setDomainName', ‘domainA.com']);
  _gaq.push(['_trackPageview']);
  _gaq.push(['b._setAccount', 'UA-XXXXX22-2']);
  _gaq.push(['b._setDomainName', ‘domainA.com']);
  _gaq.push(['b._setAllowLinker', true]);
  _gaq.push(['b._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>

I would then set up the cross links on www.domainB.com which link to www.domainA.com

My worry is parsing the correct cookie information to the correct trackers.

Many thanks in advance. 
James
2
Dewaldt Huysamen's profile photoJames Leonard's profile photo
3 comments
 
+Dewaldt Huysamen many thanks for your feedback - Much appreciated :) 

Do you have this example in the Asynchronous version? I am keen to implement using the most up to date version of the GA tracking code.

Thanks,
James
Add a comment...

James Leonard

Shared publicly  - 
1
Add a comment...

James Leonard

Shared publicly  - 
1
Add a comment...

James Leonard

Shared publicly  - 
 
Check the +ADT Fire & security Infographic showing a heat map of alarm activations in the UK - Leeds has suffered badly!
1
Add a comment...

James Leonard

Shared publicly  - 
 
Interesting to see G+ being used within a business like Yammer etc. Makes sense I suppose.
 
Google+ has been huge for us at +Distilled check out this case study I wrote
At Distilled we've been using Google+ heavily as an internal communication tool to complement email. Just in the last week: We posted 80 Google+ Private Posts There was a total of 313 comments o...
1
Add a comment...
People
In his circles
118 people
Work
Occupation
SEO Executive
Employment
  • Bloom
    Search Executive
Basic Information
Gender
Male
Story
Introduction

Interested in all things digital, currently working in SEO and loving how constantly evolving the industry is. I’m Aston Villa fan, for my sins, enjoy 5-a-side football, plus the gym. Oh, and a beer.

Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Leeds
Always first class service, nothing is ever too much. If you want screen printing and to the highest standard, pop down and see the dots lot.
Public - a year ago
reviewed a year ago
3 reviews
Map
Map
Map