Analytics
1.6K members online now
1.6K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Analytics does't track 301 and 302 redirects in Behavior > All pages?

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

Hello. So i have a few external links that i want to track. I made a separate category on my website like /external/ and i made posts like /external/first-link/

after that i went and i 301 or 302 redirected /external/first-link/ to the external link i want to track.

then i went to google analytics and i made a custom goal to track destinations. Over there i put /external/ to be tracked, hoping that it will track all the 301 and 302 redirected posts in that category. But then i go to Behavior > All Pages and i see that analytics doesn't record any of the posts and visits for any of the redirected posts in in the category /external/
Is that because analytics doesn't track redirected and external URLs? Or i did something wrong?

 

Thank you for the help.

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Stanislav G
July

Analytics does't track 301 and 302 redirects in Behavior > All pages?

Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆

This is normal, since those 301 and 301 are instructions given by the server to the browser telling it to forgo loading that initial link and go look somewhere else. The server doesn't send any additional info (just the HTTP Request Header is sent), and there's no client-side HTML and JavaScript being loaded (no HTTP Response Body), so GA doesn't fire at all.

If you had something to the redirected URL, such as http://site.com/somelink > 301 to http://site.com/somewhereelse?redirfrom=/somelink, you will be able to look in GA for all pages where this parameter is present. You need to be careful to retain any other query string parameters which might be present... In short... it's a little bit more complex than it seems at first glance...

 

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Stanislav G
July

Analytics does't track 301 and 302 redirects in Behavior > All pages?

Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆

This is normal, since those 301 and 301 are instructions given by the server to the browser telling it to forgo loading that initial link and go look somewhere else. The server doesn't send any additional info (just the HTTP Request Header is sent), and there's no client-side HTML and JavaScript being loaded (no HTTP Response Body), so GA doesn't fire at all.

If you had something to the redirected URL, such as http://site.com/somelink > 301 to http://site.com/somewhereelse?redirfrom=/somelink, you will be able to look in GA for all pages where this parameter is present. You need to be careful to retain any other query string parameters which might be present... In short... it's a little bit more complex than it seems at first glance...