: "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,
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?
More posts by @Reiling115
2 Comments
Sorted by latest first Latest Oldest Best
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/');
?>
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
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.