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

Conversion tracking on cross domains

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

 

Working on client website fade me up when I have been told by client for conversion tracking for cross domain. I am very confuse. I have made changes in the Google Analytics tracking code appropriately. However I am not able to track goal in Google Analytics.

 

Main site: mydomain.net
Purchase Website: my.mydomain.com
Goal URL: my.mydomain.com/ordercomplete

 

I would like to paste the code, I've implemented on my both websites (mydomain.net & my.mydomain.com):

 

Code on mydomain.net:

 

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-12345678-9', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['my.mydomain.com'] );
ga('send', 'pageview');
</script>

 

Code on my.mydomain.com:

 

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-12345678-9', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['mydomain.net'] );
ga('send', 'pageview');
</script>

 

Please verify above codes and also suggest me how can I track goal in Google Analytics? As per the suggestions on various SEO blogs I have recently excluded referral traffic from both domain (added for referral exclusion: mydomain.net & my.mydomain.com).

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Ketan Parekh
September

Re: Conversion tracking on cross domains

Top Contributor
# 2
Top Contributor
Hi,

Your goal page should be "/ordercomplete"unless you have a filter that includes your domain name in the reports. Hope this helps.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Ketan Parekh
September

Re: Conversion tracking on cross domains

Top Contributor
# 2
Top Contributor
Hi,

Your goal page should be "/ordercomplete"unless you have a filter that includes your domain name in the reports. Hope this helps.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: Conversion tracking on cross domains

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Ohhh, really aught. It is very simple but I missed. I have made that change, let me wait for a entry in Goal tab.

Re: Conversion tracking on cross domains

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
Hello Arnold,

After waiting for more than 24 hours still there isn't any single entry in Goal tab. Can you please elaborate your suggestion and please take a look on code once again.