AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4.3K members online now
4.3K 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

Async self referral

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi All, 

 

We have a subdomain on sub.domain.co.uk with a shop and there is the main site on domain.co.uk. Both have the same code: 

 

	<script type="text/javascript">
				var _gaq = _gaq || [];
				_gaq.push(['_addIgnoredRef', 'domain.co.uk']);
				_gaq.push(['_setAccount', 'UA-xxxxxx-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>

 

Can you please suggest what to change in the tracking code above to loose the self referrals in GA?

 

Thanks

Dave

 

 

Async self referral

Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆

Hi Dave

 

It is recommended that you migrate to Universal Analytics.

ga.js is support out. There is a possibility that can not be measured by other factors.

 

Thanks Ryota.

 

 

Async self referral

[ Edited ]
A T
Participant ✭ ✭ ✭
# 3
A T
Participant ✭ ✭ ✭

Also to add to Yamada,

 

http://www.lunametrics.com/blog/2016/08/11/subdomain-tracking-google-analytics/

 

<edited by a Community Manager as noted below>

 

 

 

Note: this post has been edited by a Community Manager, per Community Posting Guidelines. Please do not solicit likes or comments for your posts in the Advertiser Community.