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
2.7K members online now
2.7K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

Excluding redirected webpages

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

We recently redesigned our website and I am trying to exclude pageviews from the old site in my reports.

We have a 404 page that users go to if they type in the wrong page address (or use an old bookmark), but it looks like those hits to the old addresses are showing up in our analytics. The problem is that I can't exclude the web address because only the last piece of it changed:

www.ourwebsite.com/ourarea/all-our-new-pages-are-here <---new pages

www.ourwebsite.com/ourarea/folders or .html or .pdf pages are here <--- old pages

 

The only way I can think to exclude is to either:

- Find a way to not show pages that have our 404 page as their next page viewed (I assume that GA counts both as pageviews, the initial (old and broken, bookmarked page) and the 404 page that they are redirected to. 

- Find a way to show pages that only have one / after our webarea. None of our new pages will have more than one /, which is after the web area name.

 

Does anyone have any ideas about how to actually try to apply these filters and see only the new pages?!

 

Thanks for any insight!

 

Angela 

1 Expert replyverified_user

Re: Excluding redirected webpages

Rising Star
# 2
Rising Star
Hi Angela,

I think you have a much bigger problem than filters. Those pages should have been redirected to the most appropriate pages on the new site. The repercussions include not only a poor user experience but also could be detrimental to your organic traffic.

Now off my soapbox... For an analytics fix you need to handle it in some way that allows GA to flag and filter these pages. The only filterable way that I can think of without breaking out legacy code is to have your server dynamically change the Google Analytics Tracking code to prepend something like /oldsite/ and add in document.location.pathname

I would make sure that you have an unfiltered view so that you can see how many users are impacted.

More on Virtual pageviews here:

https://developers.google.com/analytics/devguides/collection/analyticsjs/pages#modifying_page_urls

Good luck!

Theo Bennett
Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

Re: Excluding redirected webpages

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
To your first point, I agree. However, this top-level redirect approach is way above my pay grade, so I have to accept that as our given solution...!

Is there a way in Google Analytics to add to our Segment view to exclude pages where the 404 page is the next page viewed? That would be the ideal solution...

Re: Excluding redirected webpages

Rising Star
# 4
Rising Star
If you want to segment these visits out completely (exclude them while doing analysis and not at collection) you could create a sequence based segment where the first interaction is landing on any page (as long as the tracker fires on this old page and the very next interaction is 404. You could also just exclude all Sessions with a 404.

I whipped up a segment for the former:
Smiley Happy

https://analytics.google.com/analytics/web/template?uid=MCxb5tuRSz2fu3U7TokkyA

Best,

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn