Analytics
4.7K members online now
4.7K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

data overlap between different departments on site

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I am having a problem on a website which has one tracking code for the main site and one for each local department.

The website is driven by a CMS system that controls the insertion of the tracking code on the pages.
The main url (www.fof.dk) has one tracking code, and each subdivision has both the common tracking code, as well as their own. Example url:
www.fof.dk/aarhus
www.fof.dk/kbh
The problem is that the department # 1 (/ Aarhus) gets url data from the department # 2 (/ sf) in analytics data.

here are the GA scripts:

 

http://www.fof.dk/

<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-19104383-1']);
    _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>



http://www.fof.dk/aarhus

<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-19104383-1']);
    _gaq.push(['_trackPageview']);
    _gaq.push(['UA206086931._setAccount', 'UA-20608693-1']);
    _gaq.push(['UA206086931._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>



http://www.fof.dk/kbh

<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-19104383-1']);
    _gaq.push(['_trackPageview']);
    _gaq.push(['UA197101781._setAccount', 'UA-19710178-1']);
    _gaq.push(['UA197101781._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>

 

and a picture of some example data

 

 

 

 

 

1 Expert replyverified_user

Re: data overlap between different departments on site

Top Contributor
# 2
Top Contributor
Hi,

can you post the picture since I feel I need 1000 words more to understand this Smiley Happy

I reckon you have a special reason why you just cannot just segment the data using just one tracking code? And you are well aware that you lose the original traffic source for any visitor that do not access those departments directly e.g. come through the front page?
--
To make bad day worse, spend it wishing for the impossible

Antti Nylund, Google Analytics Top Contributor
Did my answer solve your issue? If yes, please mark it as the ‘Best Answer.’ Otherwise keep on asking.

Re: data overlap between different departments on site

[ Edited ]
Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

 i can't upload a picture to this forum, so here is a link to the image.

http://s30.postimg.org/puxp7r9nl/grouped.png

Re: data overlap between different departments on site

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
i am just helping the client, who have chosen this setup.

I think that the reason to why they have this setup, is that they have different logins for the different departments.