regex - How to ignore the year in google analytics -
so in google analytics in organic traffic landing pages..
we use wordpress , our blog here: /blog/
up last year had /blog/year/post-name/ urls trying compare apples apples against blog posts.
/blog/year/post-name/ , /blog/post-name/ same. im trying this: s/blog/201[0-9]/blog/ doesn't work.
i think easiest way to: /blog/ , slice out /year/ , match landing pages can @ traffic reports.. accurate. don't know how though. help?
you can try adding search & replace filter, replacing "year" "".
you can use these filters consolidate data. example, if you're getting hits 2 different urls represent same page (/blog/year/post-name/ , /blog/post-name/), can use search-and-replace filter consolidate hits under single hostname. in case, create following filter strip /year/ , have hits attributed /blog/post-name/:
filter field: hostname search string: year/ replace string: <leave field blank> for more info see: https://support.google.com/analytics/answer/1033162
Comments
Post a Comment