Analytics
2.8K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
 
Guide Me
star_border
Reply

Subdomain in content refer to wrong link

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I've installed Google analytics on my main domain and it's working fine.

I have currently a test subdomain as beta.example.com

When I try to track content opening on beta subdomain.  on Google analytics - Behaviour - Landing pages , I find landing pages link but when I click on it, it redirects me to wrong address , for example I have page name "Random" on beta so it's url should be beta.example.com/Random 
I find on Landing Pages tab " /Random " when I click on it it opens example.com/Random . not the correct one ?

 

how can I fix that issue , as there are some pages titles are the same on both main and subdomain , as my subdomain is currently a beta for my main one.

 

 However I'm using GTM to fire GA 

1 Expert replyverified_user

Subdomain in content refer to wrong link

[ Edited ]
Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭

Hi, 

 

Maybe add "hostname" dimension to your report to investigate whether you are checking page on a correct subdomain.

 

Also please note that name that appears in "Page" is not always the same as the URI. Might be best to check your beta.example.com/random in Google Tag Assistant (Chrome plugin: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#dl ) and look for 'dl' parameter. If your "dl" is "https://beta.example.com/random-random2" then it will appear in GA -> Behaviour -> Site Content -> All Pages "/random-random2"

 

More about it: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#dl

 

Seb

Subdomain in content refer to wrong link

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

I added a filter to add hostname and uri 
but when I click on link to preview it, it adds main domain name in the begin of url 
for exampe if link is beta.example.com/Page1 . when I click to open this url from google analytics it try to open , example.combeta.example.com/Page1

Subdomain in content refer to wrong link

Rising Star
# 4
Rising Star

Mohammad,

 

If you are referring to the flyouts that open the content in a new window, this is controlled entirely by your view settings and has nothing to do with the hostname.  So if you go into your view settings, and look at the website URL, I bet you have example.com and not beta.example.com.

 

At this point, besides some impact on flow reports, that is practically all that this setting does.

 

Best,

 

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn