Google Analytics: Which events led users to a final event - google-analytics

My users are given 2 events to interact with:
Event A - Category: Leading_Events, Action: Event_A_Action
Event B - Category: Leading_Events, Action: Event_B_Action
Either event above eventually leads them to a final event *:
Final Event - Category: Final_Event, Action: Final_Event_Action
I want to create a report that shows which Action of Leading_Events led the users to Final_Event_Action. Can it be done? Thanks.
* (there may be some other events in between before reaching Final Event, but A B are what matters).

You can get the result with two segments using sequences, i.e. user with event action A followed by event action Final, and the other with event action B followed by event action Final.

Related

Microsoft Graph - Outlook Api - How to get the id of the event created?

I create a outlook calendar event just like that with success.
await 'clientForRequest'.Me.Calendars['calendario_id'].Events.Request().AddAsync(#event);
If I get the id of the #event with #event.id it gives me null.
If I set the id of the #event before the request (to Add an Event) with a random string base 140 (witch I saw in "https://developer.microsoft.com/en-us/graph/graph-explorer#" with some events that I created), the id of the event is set to the calendar Outlook with a diferent id.
How I properly get the id of the event that I create with that request?
You're not assigning the results of AddAsync() to #event. You need to assign it yourself:
#event = await 'clientForRequest'
.Me
.Calendars['calendario_id']
.Events
.Request()
.AddAsync(#event);
await 'clientForRequest'.Me.Calendars['calendario_id'].Events.Request().AddAsync(#event);
Executing the code snippet you wrote above should return an event object of the event created.
Therefore, you can get the event id as follows,
Event createdEvent = await 'clientForRequest'.Me.Calendars['calendario_id'].Events.Request().AddAsync(#event);
Console.WriteLine(createdEvent.Id);

Data Studio - Calculated Field - Sum of Event Values

I am trying to create a calculated field, which would be used in Data Studio like that(data would be from GA Events):
I would like to have as a calculated field in a time series:
Event Value of (Event Category: Economy, Event Action: Wallet Credits Changed, Event Label: game_session_bet)
+
Event Value of (Event Category: Economy, Event Action: Wallet Credits Changed, Event Label: game_session_win)
So basically a sum of those two event values.
You can't mix metrics and dimensions in a calculated field, so you need to make a calculated field dimension and use that in a filter.
Your field: game_session
CASE WHEN
(Event Value = 'Economy') AND (Event Action = 'Wallet Credits Changed') AND (Event Label in ('game_session_bet','gam_session_win')) then 'game_session'
ELSE 'other
END
Then make a filter where 'game_session' equals 'game_session' and make a chart with Event Value as the metric.

Comparing Event Actions

I have an event that has two different actions. I would like to compare the actions to get stats. I am struggling on how to set this up in Google Analytics (custom reports).
Here is how I would like the table set up:
(rows) Event Label - Name of page
(column 1) Event Action - Page View (total # of events with this
action)
(column 2) Event Action - Form Submission (total # of events with this
action)
(they share the same event category)
Thanks,Brian
Dimensions : Event Label , Event Action
Metrics : Total (Unique?) Events
Filter : Event Action Regex => Page View|Form Submission

how to call fullcalendar events() with a paremeter?

Is there a way to filter events based on a drop down?
I tried :
events: '/Controller/action?id='+id,
$("#drop").change(function () {
id = $('#drop').val();
$('#calendar').fullCalendar('refetchEvents');
But the controller does not see the new id.
Any suggestions on passing a paremter to the events() method?
You gave the result of '/Controller/action?id='+id to the calendar as the events feed when the calendar was initialised. e.g. you passed in /Controller/action?id=3, for example. That code has run and does not run again. fullCalendar stores that static string as the URL of the events feed. It doesn't pay any attention to the value of "id" later.
The simplest way to solve this is probably using a custom event feed, as per https://fullcalendar.io/docs/event_data/events_function/ :
//declare the calendar with a custom "events" functions
$("#calendar").calendar({
//..all your calendar options, and then the events:
events: function( start, end, timezone, callback ) {
$.ajax({
//whatever ajax parameters you need, but make sure:
url: /Controller/action,
data: { "id": $('#drop').val(), "start": start.format("YYYY-MM-DD"), "end": end.format("YYYY-MM-DD") }
});
}
});
$("#drop").change(function () {
$('#calendar').fullCalendar('refetchEvents');
});
That way, when "refetchEvents" is called, it runs the function that you passed as the "events" parameter, which can look up the value of the dropdown dynamically at that moment in time.
Note I've also added "start" and "end" parameters to your data, because your event source is supposed to filter the events returned by the dates actually being displayed on the calendar, otherwise you end up returning all events every time the view or date changes.

Description of Symfony2 form events?

This is the FormEvents class from Symfony2 repository on github. It's linked from the main article, How to Dynamically Generate Forms Using Form Events.
Anyone konws exactly when these events are called in the flow?
namespace Symfony\Component\Form;
/**
* #author Bernhard Schussek <bernhard.schussek#symfony.com>
*/
final class FormEvents
{
const PRE_BIND = 'form.pre_bind';
const POST_BIND = 'form.post_bind';
const PRE_SET_DATA = 'form.pre_set_data';
const POST_SET_DATA = 'form.post_set_data';
const BIND_CLIENT_DATA = 'form.bind_client_data';
const BIND_NORM_DATA = 'form.bind_norm_data';
const SET_DATA = 'form.set_data';
}
There are two types of events:
DataEvent - read-only access to the form data. 'Pre' and 'Post' events are read-only.
FilterDataEvent - event that allows the form data to be modified.
form.pre_bind
DataEvent triggered before data is bound to the form. Triggered by Symfony\Component\Form\Form::bind()
form.post_bind
DataEvent triggered after data is bound to the form. Triggered by Symfony\Component\Form\Form::bind()
form.pre_set_data
DataEvent triggered before fields are filled with default data. Triggered by Symfony\Component\Form\Form::setData()
form.post_set_data
DataEvent triggered after fields are filled with default data. Triggered by Symfony\Component\Form\Form::setData()
form.bind_client_data
FilterDataEvent triggered before data is bound to the form. Triggered by Symfony\Component\Form\Form::bind()
form.bind_norm_data
FilterDataEvent triggered after data has been normalized. Triggered by Symfony\Component\Form\Form::bind(). See Symfony\Component\Form\Extension\Core\EventListener\FixUrlProtocolListener (added by the UrlType for an example)
form.set_data
FilterDataEvent triggered while default data is being bound. Triggered by Symfony\Component\Form\Form::setData()
I'd recommend poking around the Form class itself to get a better feel for when these events are triggered, and how you can use them.

Resources