Retrieving economic events - events

Is there a way that pinescript can retrieve the economic events that display on the chart when you go to settings>events? I would like to see if I can create something in pinescript that looks for these events and stops my strategy from trading for several minutes before and after the event.

Related

Time of stay on webpage

I want to know the time a user spends to fill a particular field in the page and want to trigger an event if the user spends more than 5 minutes to answer a question on that page.
I've looking at various Web Analytical tools like Crazyegg, Lucky Orange. Google Analytics for my website and i did not find any of them have this feature.
Is there any way that i can get this feature in my website.
I've been researching to get the perfect fit but in vain.
Any advice would help.
Thank you.
With the help of the Google Tag Manager you should be able to do this with Google Analytics:
Add a Datalayer to your page, which fires if a User starts filling your form/field.
Build a Event, Listening on this Datalayer and send a Timestep (for example: Category = Form, Action = Start, Label = {{Timestamp}}) Now you know then a User started interacting with your form.
Build a second Datalayer, fireing when the User sends your form. Build a Event for this and send your second Timestamp to GA (for example: Category = Form, Action = End, Label = {{Timestamp}}) - now you know how long a user needs for your form.
Trigger the Event
Here we can use the same Datalayer, we used with the Event-Tracking.
Build a Triger for your Event, listening on the Datalayer and then starts a Countdown (Timer-Trigger in GTM)
In the Timer-Trigger rules you have to specify, that the Trigger should not fire if the second Datalayer (Datalayer-End) fired allready.

Can I Customize Square Appointments Booking Flow?

We use Square to book appointments in our showroom. In an effort to optimize this booking page, I want to create a funnel and track clicks. According to their documentation it looks like the only way do this is via embed and I do not see anything about appointments in their api documentation.
I really just want to track user clicks within the booking process and create some sort of conversion success page after the booking is complete. Any ideas?
There is not a way to do what you're looking for using the Square API. If you have access to the machine, I'm sure there's some way you could track clicks on the booking page (e.g. using a browser extension), but you wouldn't be able to make any changes to the Square UI.
Incidentally, Square is constantly making improvements to various aspects of the UI so that they will be more effective for all merchants. I do not personally know much about Appointments, but I expect that people are working to optimize it for you :).

Weekview or Timelineview?

I have designed scheduler with unitsview, weekview and monthview,
I have a seperate list of customersname which is displayed on a listbox.
I got struck here.
Now on the weekview, I want each of the customers information to get displayed in the that particular week.
i.e(check image attached) If i click customer1 , I want all the appointments by that customers on that week to get displayed on weekview. If i click customer2, I want appointments of that customer2 on the weekview at the week.Is this possible using weekview? If not, how to implement this? Please help.
You can set a filter function for a particular scheduler view and make this dependent on your list of customers. DHTMLX Filtering Events Documentation
This technique can be used regardless of the view you are using.

Google Calendar API Event Free/Busy/Blocking Data

I've been working with the Google Calendar API and am trying to figure out how to tell if an event a calendar should be considered an event that blocks time. For example, "Columbus Day" is an all day event (holiday) for many people in the US that has no effect on their workday, yet appears on a calendar. I've read in other places that the way to tell if an event is blocking on a calendar is by using its transparency field per This Post. However, when I play with my calendar events and toggle them back and forth, the event itself always remains "transparent" on the calendar.
My question is this: Is there a way to tell if an event blocks time on a calendar by looking at the event resource, or is this information something that should be derived from a free/busy query?
So as it turns out, when using the Ruby Google API Client, the transparency field is only included in the event resource when the event is marked "available" by the user. The default value is "opaque" according to the documentation. Presumably, when the transparency field is not present in the event resource, then the event should be considered "opaque" or "blocking" on the calendar. In the resulting request body in the API client, this should yield a nil value instead of a "transparent" value. Not the cleanest thing around, but I think it works.

Use events or virtual pageviews for Google Analytics and ajax

What makes more sense (or is proper according to google)? Registering an event or a virtual pageview with Google Analytics when tracking navigation through a webpage with heavy use of ajax?
I had been using events to track this kind of thing, but I find myself kind of emulating the pageview mechanism by tracking the clicks through events like the following:
_gaq.push(['_trackEvent', 'signup', 'clicked', 'header']);
should I instead be creating virtual pageviews when visitors click on links that call AJAX and bring up dynamic content?
_gaq.push(['_trackPageview', '/signup/form']);
If this is a new content that user navigates to, then you should be using virtual pageviews.
If you use events for all navigation then some metrics will be unreliable like pages/visit, avgTimeOnPage, avgTimeOnSite, pageDepth. If you use pageviews for navigation these metrics will be closer to the truth.
Since not so long ago, you couldn't set up goals for events, which made virtual pageviews the way to go. These days, you can set up event goals, so the question is certainly valid.
What you can do with virtual pageviews (and not with events) is to visualize a funnel. If you want to follow the path of your visitors, I'd recommend a virtual pageview.
If you're using events, you can only find out that some time during the visit, the visitor opened the form. With virtual pageviews you can see in what preceeded the form, what lead the visitor to it.
I would go with the event tracking for more information about the event. Showing an in-page form that doesn't change the content is more of an event, but it's not really down to that, but rather how you need to report it.
Using pageviews for dynamic events within page would inflate the actual pageview numbers and since you can use events as goals in the new UI, there is no reason to track them as pageviews anymore.

Resources