When selecting date ranges in Google Analytics, one is always missing for me:
Last 30 days + today
Is there a way to define this custom date range, or should I always define it manually?
When selecting date ranges in Google Analytics, one is always missing for me:
Last 30 days + today
Is there a way to define this custom date range, or should I always define it manually?
I'm pretty certain you will have to use the custom date range functionality always for that date range. The only other tip I have is that you can select a whole month by clicking on it
Solution:
Create a PHP file on your own server, like example.com/myanalytics/index.php
(don't worry, it will just create an URL shortcut to anlaytics, so nobody will be able to see it even if they visit this page):
<?php
$myid = 'aXXXXXXXwXXXXXXXXXpXXXXXXXXX';
$end = date('Ymd'); // this is today :)
$start = date('Ymd', time()-31*24*3600);
header('Location: https://www.google.com/analytics/web/#report/visitors-overview/' . $myid . '/%3F_u.date00%3D' . $start . '%26_u.date01%3D' . $end . '%26overview-graphOptions.selected%3Danalytics.nthDay/');
?>
Not sure what your exact use case is, but I've run into this when I'm bookmarking GA views I use frequently (and want those views to incorporate the newest data).
If you replace the end date query string parameter with a date in the future, the view will incorporate data up through and including today.
_u.date00=20190829&_u.date01=20501230