Google Analytics Unique Visitors by DAY doesn't match by WEEK - javascript

When I'm checking unique visitors per DAY I see the following pretty-steady graph:
However, when I change the time-span to WEEK, I see this hugh drop:
Same thing happens when evaluating the exported CSV files. The SUM(7days) just doesn't add up to WEEK values. How can this be?

can you check the selected date range?
I would make sure that the date-range selected has the same days as starting and ending days.
For example: If you are looking at July - August data, it would make sense to pick those two for example:
Jul 7, 2013
Aug 24, 2013
You end up with full 7 weeks (Sunday to Saturday) and then the chart should (provided there are no peaks/drops in traffic) show display a straight line:
Hope this helps!
Petr

This phenomenon is explained by Avinash over here:
http://www.kaushik.net/avinash/standard-metrics-revisited-6-daily-weekly-monthly-unique-visitors/
If the same user comes back every day, he is counted in each of the daily views (total of 7 for the week). But when you switch to a weekly view, those same seven daily visits only count as one unique visit on a weekly basis. Thus, your overall numbers look less impressive as you expand the time tracking period.

Related

Change the event display on fullcalendar - Full duration should not be highlighted

I have a very specific use case.
The customer would like these types of timeslots available on the calendar:
08:30
08:30
08:30
08:45
09:45
10:00
10:00
So three appointments can be made for 08:30, only 1 for 08:45, only 1 for 9:45 and 2 for 10:00.
These appointments can be of variable durations.
I have therefore set the AgendaDay grid view, to show a label in 15 minute intervals.
I plan to add a comment on a particular timeslot, saying that only 3 appointments can be booked here. And, I will make the inbetween timeslots unavailable to book. Not sure on the best way to do this but I will figure that part out.
Where I am getting stuck, is that I would need the event\booking to only display at the time of the booking, regardless of the duration of the appointment, i.e if a booking is made at 08:30, only the 08:30 - 08:45 line should be highlighted, even if the appointment is 2 ours long. I do not want a big block taking over the following time slots. I hope that makes sense.
I have tried eventDisplay: 'list-item', but this is not working and I need it to display in the same way for all views, i.e. day, week and month
I have tried googling and am unable to find a solution.
Am I perhaps missing something obvious? Or does anyone have any thoughts please?
Thank,
Regards,
LJR

How to occupy all the days in fullCalendar?

A query for those who have used fullCalendar. I use version 3 of fullCalendar.
I have the dates (the step without hour:minute) start 2020-06-01 end 2020-06-03
But I'm only occupying 2 days as seen in the picture, instead of 3 days [1,3]. I don't know why this happens.
I understand that by default you may be taking the time as 00:00 and this is giving "that problem".
The question would then be, if you need a configuration that takes the full day on the last day, and I don't know if such a configuration will exist?
This is covered in the documentation. End dates are exclusive - see https://fullcalendar.io/docs/v3/event-object .
This means your event is actually considered to end at 2020-06-02 23:59:59. Therefore it doesn't actually occur on 2020-06-03 and so is not shown on that date.
The workaround, if you wish to show it on that day, is to add one day to your end date.

How do I make my business hours appear on weekends?

I am using the premium scheduler plugin, and have my resources created with business hours set up with the following implementation: https://fullcalendar.io/docs/businessHours-per-resource
This works fine, and I am only displaying one day at a time, so I have not included the daysOfWeek attribute within the object.
My issue is that when I am on a day that is a Saturday or Sunday, the business hours do not render. The entire day is greyed out as if the resource is unavailable that day, which in my case is not true.
Is there some attribute I am missing on the calendar model? Something like showBusinessHoursOnWeekends: true?
You mentioned you didn't include the daysOfWeek setting for your business hours. You said you did this because "I am only displaying one day at a time". However this makes no sense. The daysOfWeek setting specifies which days of the week the business hours apply to. It has no relationship to how many days your calendar's view is displaying simultaneously. FullCalendar still needs to know which calendar days to show business hours for, and which not to, so that when the user moves to the next day, it knows what to show.
If you don't include daysOfWeek, fullCalendar defaults to assuming Monday-Friday. (This is not documented, but the behaviour is observable by simply removing the setting from any existing businessHours definition.).
If we set up a simple demo using a businesshours where the same hours apply 7 days a week we can see that in all views, the business hours are shown correctly all days. Demo: https://codepen.io/ADyson82/pen/OJyGGeJ .
Adding this one line of code is all you need to do to solve your problem:
daysOfWeek: [ 0, 1, 2, 3, 4, 5, 6 ],

Material-ui: Make Datepicker inclusive

I am using Material-ui Datepicker to allow users to download timed event information from a database ie. all the events between two given dates. However, at the moment if two bracketing dates are chosen no events for the end date will show up. For example: choosing bracketing dates of 4 April and 6 April results in a download of all events from 4 April #00:00 to 6 April #00:00 instead of 6 April #23:59. Right now, people wanting events from 4 April to 6 April have to choose dates 4 April and 7 April. Is there a way to make the behaviour align with expectations?
No, there is no way to do that from the component, and there is no reason also. This behaviour should be handled on the application, so don't worry, you are doing it in the right way :)

Disable current + next 3 working days [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Can the jQuery UI Datepicker be made to disable Saturdays and Sundays (and holidays)?
I am using jQuery Datepicker.
What i want to do is select a delivery date of today, or tomorrow -
1) It is supposed to blank out the next 3 working days ie if I order Monday my earliest delivery date to choose is Friday.
2) Disable December 20th to 27th 2011 as options
3) Weekends has to be disable
4) all UK holidays has to be disabled
Can this be done? If so, how?
The minDate option enables you to select a minimum date.
Computing the next business day is more complicated, especially if you want to factor in regional holidays. That will require some kind of server-side code, since it's impossible to determine programmatically if a holiday is coming up.
However, if it's a short-term solution you need (i.e. just between now and the end of the Christmas shopping season), I would simply hard-code an array of valid business days which can be fed into JavaScript's Date object. Loop through that array, find the first date which is greater than today's date, and add two to the index to get "three business days from now".

Categories

Resources