organic-search-analytics icon indicating copy to clipboard operation
organic-search-analytics copied to clipboard

Enhancement: Allow today for the saved reports as the end date

Open nekromoff opened this issue 7 years ago • 10 comments

Some saved reports could benefit from using current date (today) as their end date.

Maybe the date_end parameter could have special expression today that could be then easily translated in the code to the current date in getSavedReport function.

nekromoff avatar May 28 '17 12:05 nekromoff

I have added this: if ($parameters['date_end']=='today') $parameters['date_end']=date('Y-m-d'); after line 149 in inc/reports.php and manually overwritten ending date for those reports that I would like to see always fresh.

Works like charm.

nekromoff avatar Jun 15 '17 08:06 nekromoff

I'm interested to know more about the reason for wanting to see today as the end date.

Google Search Console doesn't provide up to the date data - it's a few days behind. For that reason, the data in Organic Search Analytics will never display todays data.

The reports are designed to use the most recent data as the latest possible end date. Any date after that would not have any data.

PromInc avatar Jun 19 '17 02:06 PromInc

Well, it specifically does not have to be 'today', but rather last day available in the reports.

The reason is I want to be able to see up-to-date reports as opposed to an old one that I have to work with to get to update (depending on when I last created one).

On Mon, Jun 19, 2017 at 4:46 AM, PromInc [email protected] wrote:

I'm interested to know more about the reason for wanting to see today as the end date.

Google Search Console doesn't provide up to the date data - it's a few days behind. For that reason, the data in Organic Search Analytics will never display todays data.

The reports are designed to use the most recent data as the latest possible end date. Any date after that would not have any data.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PromInc/organic-search-analytics/issues/62#issuecomment-309325940, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ3zVf97hh35HCeXflOssIynmeeeE3Kks5sFeDvgaJpZM4NooTk .

nekromoff avatar Jun 19 '17 08:06 nekromoff

The default functionality is for the end date to be the last available date based on the data in your database - as populated by the data capture process. I personally don't know of a scenario where this doesn't work as desired. Can you provide a sequence of steps to recreate the issue on a non-modified installation?

I'm more than happy to address bugs like this - but not sure how to create the issue.

On Jun 19, 2017, at 3:04 AM, Galimatias Nekromoff <[email protected]mailto:[email protected]> wrote:

Well, it specifically does not have to be 'today', but rather last day available in the reports.

The reason is I want to be able to see up-to-date reports as opposed to an old one that I have to work with to get to update (depending on when I last created one).

On Mon, Jun 19, 2017 at 4:46 AM, PromInc <[email protected]mailto:[email protected]> wrote:

I'm interested to know more about the reason for wanting to see today as the end date.

Google Search Console doesn't provide up to the date data - it's a few days behind. For that reason, the data in Organic Search Analytics will never display todays data.

The reports are designed to use the most recent data as the latest possible end date. Any date after that would not have any data.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PromInc/organic-search-analytics/issues/62#issuecomment-309325940, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ3zVf97hh35HCeXflOssIynmeeeE3Kks5sFeDvgaJpZM4NooTk .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/PromInc/organic-search-analytics/issues/62#issuecomment-309367986, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AG-v0WnreI_9fFfcGf0n8-NxSnqz0kg5ks5sFiujgaJpZM4NooTk.

PromInc avatar Jun 19 '17 10:06 PromInc

When creating a report, I set the ending date to the desired day (e.g. today). After looking at the report later, it still ends with the date set instead of showing data until the last available day.

On Mon, Jun 19, 2017 at 12:39 PM, PromInc [email protected] wrote:

The default functionality is for the end date to be the last available date based on the data in your database - as populated by the data capture process. I personally don't know of a scenario where this doesn't work as desired. Can you provide a sequence of steps to recreate the issue on a non-modified installation?

I'm more than happy to address bugs like this - but not sure how to create the issue.

On Jun 19, 2017, at 3:04 AM, Galimatias Nekromoff < [email protected]mailto:[email protected]> wrote:

Well, it specifically does not have to be 'today', but rather last day available in the reports.

The reason is I want to be able to see up-to-date reports as opposed to an old one that I have to work with to get to update (depending on when I last created one).

On Mon, Jun 19, 2017 at 4:46 AM, PromInc <[email protected]<mailto: [email protected]>> wrote:

I'm interested to know more about the reason for wanting to see today as the end date.

Google Search Console doesn't provide up to the date data - it's a few days behind. For that reason, the data in Organic Search Analytics will never display todays data.

The reports are designed to use the most recent data as the latest possible end date. Any date after that would not have any data.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/PromInc/organic-search-analytics/ issues/62#issuecomment-309325940>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AIJ3zVf97hh35HCeXflOssIynmeeeE3Kks5sFeDvgaJpZM4NooTk> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub<https://github.com/ PromInc/organic-search-analytics/issues/62#issuecomment-309367986>, or mute the thread<https://github.com/notifications/unsubscribe- auth/AG-v0WnreI_9fFfcGf0n8-NxSnqz0kg5ks5sFiujgaJpZM4NooTk>.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PromInc/organic-search-analytics/issues/62#issuecomment-309403343, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ3zVLaG84D3F6BSrr8pC-6o17tdofWks5sFk_dgaJpZM4NooTk .

nekromoff avatar Jun 19 '17 10:06 nekromoff

When creating a report, I set the ending date to the desired day (e.g. today).

Today isn't an option (as mentioned prior) - not sure how this is possible...

After looking at the report later, it still ends with the date set instead of showing data until the last available day.

What steps do you to take to get to this point?

  • Refresh the page?
  • Save the report to the Quick Links?
  • Other actions?

PromInc avatar Jun 19 '17 14:06 PromInc

Maybe a wrong wording, by "today" = I mean the latest available day.

Steps: Saved report to Quick links

On Mon, Jun 19, 2017 at 4:43 PM, PromInc [email protected] wrote:

When creating a report, I set the ending date to the desired day (e.g. today).

Today isn't an option (as mentioned prior) - not sure how this is possible...

After looking at the report later, it still ends with the date set instead of showing data until the last available day.

What steps do you to take to get to this point?

  • Refresh the page?
  • Save the report to the Quick Links?
  • Other actions?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PromInc/organic-search-analytics/issues/62#issuecomment-309461374, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ3zRxQPeFrvzQUlI3rL86cpgAeMOQbks5sFokHgaJpZM4NooTk .

nekromoff avatar Jun 19 '17 14:06 nekromoff

That makes sense now. You want to save a Quick Link report that has a rolling date range with a hard start date.

Rolling dates are available for the 7, 30, or 90 day preset date range options. Save a report to Quick Links with one of those date range options, capture more data in the coming days, and view the saved reports. The end date would be the most recent date.

But it sounds like you want to set a hard start date and have the end date grow with time. I.E. a year to date report, or a report since a feature was released (May 3rd for example of a random date) and the end date is the most recent.

That makes sense and would be a nice addition - agreed.

PromInc avatar Jun 19 '17 15:06 PromInc

@nekromoff Sorry - re-reading your title this makes more sense now. The request wasn't clear to me from the get go (as I'm sure you can tell)...

PromInc avatar Jun 19 '17 15:06 PromInc

No problem, you have guessed it in the end. Fixed starting date and open / rolling ending date.

On Mon, Jun 19, 2017 at 5:16 PM, PromInc [email protected] wrote:

@nekromoff https://github.com/nekromoff Sorry - re-reading your title this makes more sense now. The request wasn't clear to me from the get go (as I'm sure you can tell)...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PromInc/organic-search-analytics/issues/62#issuecomment-309471962, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ3zZ7HrQDaBw1YJAPs3CKjwBTGHjzmks5sFpDFgaJpZM4NooTk .

nekromoff avatar Jun 19 '17 15:06 nekromoff