Mobile app version of vmapp.org
Login or Join
Reiling115

: "Last 30 days + today" in Google Analytics 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,

@Reiling115

Posted in: #GoogleAnalytics

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Reiling115

2 Comments

Sorted by latest first Latest Oldest Best

 

@Murphy175

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: www.google.com/analytics/web/#report/visitors-overview/' . $myid . '/%3F_u.date00%3D' . $start . '%26_u.date01%3D' . $end . '%26overview-graphOptions.selected%3Danalytics.nthDay/');
?>

10% popularity Vote Up Vote Down


 

@Jennifer507

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme