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

How should one report to Google Analytics if they have a date in the url?

Vee
Visitor ✭ ✭ ✭
# 1
Vee
Visitor ✭ ✭ ✭

Right now, my website's server is redirecting 

 

 

mysite.com/hello to

mysite.com/2016/11/29/hello based on today's date. This date is dynamic and is today - 3 days. 

 

How can I use Google Analytics to track all the sites such as 

 

mysite.com/2016/11/29/hello

mysite.com/2016/11/30/hello

mysite.com/2016/12/01/hello

...

 

to a unified page in Google Analytics? 

 

 

1 Expert replyverified_user

How should one report to Google Analytics if they have a date in the url?

Top Contributor
# 2
Top Contributor

Hi,

 

you would have to use search & replace filter:

https://support.google.com/analytics/answer/1034834?hl=en

 

Regexp you need should look something like this:

\/\d{4}\/\d{2}\/\d{2}

 

post back if you need more details... And test that regexp in new view to make sure it works as intended!

--
To make bad day worse, spend it wishing for the impossible

Antti Nylund, Google Analytics Top Contributor
Did my answer solve your issue? If yes, please mark it as the ‘Best Answer.’ Otherwise keep on asking.