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

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

Async self referral

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi All, 


We have a subdomain on with a shop and there is the main site on Both have the same code: 


	<script type="text/javascript">
				var _gaq = _gaq || [];
				_gaq.push(['_addIgnoredRef', '']);
				_gaq.push(['_setAccount', 'UA-xxxxxx-1']);
				(function() {
					var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
					ga.src=('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
					var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);


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






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 ]
Participant ✭ ✭ ✭
# 3
Participant ✭ ✭ ✭

Also to add to Yamada,


<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.