In Google Analytics - how do I link directly to today's statistics? - google-analytics

In Google Analytics, I am trying to create a link that navigates directly to today's statistics.
When choosing today's date from the menu, it populates the URL with the date range selected, as follows:
.../_u.date00=20190130&_u.date01=20190130/
Is it possible to create a dynamic populates today's date? Such as:
.../_u.date00=today()&_u.date01=today()/

In an unsupported way, you could set your dates to something in the future:
.../_u.date00=21190130&_u.date01=21190130/

Related

Alerts in Metabase - Input variable based reports

We have created alerts (for reports without input variables, like stock report) in metabase and are working fine.
We have created sales reports for client which is based on date range.
Now client ask for alerts on sales reports on daily basis, that means, default value for From & To date should be Today's date.
We have set alerts but not getting in our mailbox.
Can you please let me know how can i achieve this?
Today's date as default value in input variable
Get report in my inbox every morning.
I have removed variables and used cast(now() as date) to get data for current date and alert was set at EOD, so it is working as expected.
After doing this when i set alerts, i got report in my inbox at scheduled time.

Microsoft Graph API get calendar changes in a time interval, filter by lastModifiedDateTime

Im trying to get the modified or created events in the calendar, after a specific date.
Following documentation link, i can use this url to get the events of this year.
https://graph.microsoft.com/v1.0/me/calendarview?startDateTime=2020-01-01T00:00:00&endDateTime=2021-01-01T00:00:00
Since i want to get only the modified or created events after a specific date im trying to use filter and lastModifiedDateTime attibute, by this way
https://graph.microsoft.com/v1.0/me/calendarview?startDateTime=2020-01-01T00:00:00&endDateTime=2021-01-01T00:00:00&$filter=lastModifiedDateTime%20gt%202020-10-01T00:00:00z
trying to get the events which were modified this month, i get a empty response, not even errors.
I also tried this way documentation link using
https://graph.microsoft.com/v1.0/me/calendarView/delta?startDateTime=2020-01-01T00:00:00&endDateTime=2021-01-01T00:00:00&lastModifiedDateTime%20gt%202020-10-01T00:00:00z
but it returns all the events of the year and does not filter by lastModifiedDateTime.
There are any proper way to get the modified or created calendar events after a specific date?
Looks like calendarView does not work properly with filter, a working alternative is filter list events, Documentation Link
A working url looks like this : https://graph.microsoft.com/v1.0/me/calendar/events?$filter=lastModifiedDateTime%20gt%20" + date + "z"

Wrong date format when i create an event in google calendar

I use a google form to create event in my calendar. The date format recorded on my spreadsheet is European DD/MM/YYYY but at the event creation google calendar put the date info in the Us format MM/DD/YYYY. So, events are displayed in my calendar at the wrong dates...
Ive check my gsuite account, drive, sheet are set to the right language and timezone (FRANCE / PARIS).
can you help me ?
Thx.
ex. MR ZAZOU 2th March -----> 4th Feb
EDIT: last code i use to create event
function createEvent_ (namedValues) {
//options are the key/value pairs you can set when created a
//calendar event, below accesses the data given for description
//and location - guest is hard coded
var options = { description: namedValues.Description[0],
ocation: namedValues.Location[0],
guests:"exemple"};
//cEvent makdes the calendar event, You have to choose the calendar
//name that you would like to use, then ask for the Name of the event,
//start date and end date, then passes the options you have selected above
var cEvent = CalendarApp.getCalendarsByName("Example")[0].createEvent(
namedValues.Name[0],
new Date(namedValues.Starts),
new Date(namedValues.Ends),
options)
}
Ok, got it !
The problem was from the google form addon "Form publisher". Ive add an extra date field in my form for testing. In the form editor, the date format showed by google is the right one, but when i explore the template option of Form publisher, the format was named with wrong format.

Google Docs Forms - need Pre-fill Date & Time Entry with current date and current time

Google Forms I need Pre-filled current Date & current Time Entry in date and time fields of my google form. How to do it
My solution is to make the Date field optional. The default is to assume the todays date which is what you get from the timestamp field. In case it needs to be anything else you can enter it manually.
A simple code-free solution is to make separate sections in your form and use the feature that routes users to different sections based on responses. The first section asks whether the form is for the current date/time. If yes, you use the timestamp as the date and time and route the user to the main section with your questions. If not, route them to a section to set the date and time, and then after that route them to the main section.
2023 Solution
-Google Forms has updated how dates are passed through URL parameters.
Instead of passing each component of a date as a separate param, you now pass them using the same syntax as all other fields using the YYYY-MM-DD format for your date value.
Here is an example URL:
`https://docs.google.com/forms/d/e/${formId}/viewform?usp=pp_url&entry.${dateEntryFieldID}=${YEAR}-${MONTH}-${DAY}`

Create multi-date google calendar event through URL

I'm trying to build an URL which will direct the user to their Google Calendar and will show the create event page with predefined values. I've managed to build the URL that will create an event only for a particular day. My problem is how can i add multiple dates in the same URL?
My generated URL is as follow:
https://www.google.com/calendar/render?action=TEMPLATE&text=New+Dynamic+Event&dates=20141204T073000Z/20141204T100000Z&details=Calendar+Details&location=My+Event+Location&followup=https://www.google.com/calendar&scc=1&sf=true&output=xml
This will create an event on 2014/12/04. How can i add more dates to this URL so that the event will be created on multiple days?
You cannot create multi date event in google calendar but you can insert the same event on different dates. Also, you can try using recurring events. However these type of events has patterns like weekly,monthly..
If you just provide the day date parts like
&dates=20170127/20170129
then this will raise the form with dates 2017-01-27 until 2017-01-28, and the 'all-day' box checked.
One day must be added to the date range.

Resources