"Sessions with Event" metric in GA is wierd - google-analytics

I'm using GA Android SDK v3 to track app utilization.
I found the metric "Sessions with Event" is wierd.
For example, userA report following hits in one session:
1. appview(screen1)
2. appview(screen2)
3. event(category=goto_store)
4. event(category=purchase)
I saw the custom report shows:
dimens="event category", metrics="sessions with event"
goto_store, 1
purchase, 0
It looks like it count the "sessions with event" to the 1st event in session.
It is reasonable??
I would like to know how many sessions with purchase event
When I create a custom report with dimem=appname, metric=session with event and filter 'event_category exact match "purchase"', I got metric of session with event equal to be zero....
This metric is not intuitive...
Kevin Kuei

Sessions With Event is hit-level data that only fires once for any event, within a session. In your example, getting 0 means that you have triggered some other (possibly unrelated) event in the same session.
To get sessions with Purchase event, you will probably need to create a custom segment. See here for [a good explanation of Sessions With Event]

Related

Events and Goal completions don't work together?

I have a goal completion when user visit the specific page. Also I'm sending event from this page to count how many times user visited this page during the session (and for some other info).
Now I'm trying to make a custom report (flat table) that have info about:
Session ID (custom dimension),
Event Category (secondary dimension),
Goal completion (metric)
and Pages/Session metric.
In this case I see that Goal completion is zero for every session although I see events from the page (and I know that goal was completed in every session cause it's testing site).
If I remove Event category from custom report then Goal completion equals 1 for each session (that is true info).
And if I'm trying to use Event category in filter it is the same situation - I don't see Goal completed.
'Event Category' is a hit-level dimension, but other dimensions and metrics have session-level. It's invalid dimension-metric combination.
Try to use custom segment with conditions: include sessions where 'Event Category' = [your value].
Good explanation of scope in GA: https://www.bounteous.com/insights/2016/11/30/understanding-scope-google-analytics-reporting/

What happens when pushing variable to dataLayer multiple times

Lets say for instance I have a web game on a page and the code is set so that every time the player completes a level it pushes the current level to the dataLayer:
dataLayer.push({'level': currentLevelNumber});
Does this then mean I will be able to create segment in GA to see how many people made it to each level? i.e. segment1(level = 1), segment2(level = 2) etc..
Also, what are limits of this? GA has a 500 event limit per session. Is pushing a variable part of this limit or does it have its own limit?
I tried to find this information in documentation but couldn't see it.
Essentially, you're trying to report on the levels that your users are on for a particular game.
To do this, you will need to create a user-scoped custom dimension within GA.
Then you would want to push to the datalayer whenever the user moves to another level something like:
dataLayer.push({
'level': currentLevelNumber,
'event': 'user-lvl-update',
});
Then in GTM, create datalayer variable to capture "level" and create a custom event trigger for the "user-lvl-update" event.
Then in GTM, create a GA tag for the event "Level Update" and configure it normally, but this time, check the "Enable overriding settings" checkbox, under "More settings > Custom Dimensions" click on "Add custom dimension", enter in the index number of the custom dimension you created earlier and for dimension value, put in the variable where you captured level. Trigger this tag using the "user-lvl-update" trigger.
There is a limit of 500 hits per session. A hit is a pageview, event, etc. whenever you're sending data to GA. Pushing to the datalayer doesn't count towards that

Separate form submissions by campaign in analytics

I have to campaigns running in google analytics at the same time, and, in my website, i have a contact form.
Is there any way that i can see from which of the campaigns came the message that was send to me?
For example, John has clicked in the campaign-one and send me a message, and Mario has clicked in the campaign-two and send me a message. I want to know that John came from the campaign-one and Mario from the campaign-two.
I have already been mapping events in my site, but i can't figure it out how to separate if the form came from campaign-one or campaign-two.
Thanks a lot! :-)
If you've set your campaign-one and campaign-two values to the utm_campaign parameter in your campaign tagging, it will show up in the Campaign dimension in Google Analytics.
I'm assuming by "I have already been mapping events", you mean that you have implemented event tracking on your site for these form submissions.
You can either build a custom report in Google Analytics that includes the Campaign dimension and the event dimensions (Event Category, Event Action, Event Label), or you can add Campaign as a secondary dimension to an events report. For example, in the Behavior > Events > Top Events report, choose "Secondary Dimension" and then select the "Campaign" dimension. That would break up the event numbers by which campaign the session was acquired from.
Similarly, you can look at the Acquisition > Campaigns > All Campaigns report and add one of the event dimensions as a secondary dimension there, to see campaigns broken down by events that they resulted in.

Google analytics segments - total events for a specific event

I need to create a segment that needs conditions such as:
Sign up event occurred
Login event occurred
Event with action 'Test' occured 3 times
However, I could not find any way to do this. There is a condition called "Total events", but it seems to apply for all types of events not for a specific one.
Is there any way of doing this? Thanks in advance.

How do you drill in to Google Analytics custom event data?

What do people use to dig in to Google Analytics data?
For example, I have a web page that tracks a custom event on it. I'd like to track a couple metrics:
1) What percent of users on that page successfully call the event at least once?
2) How do I see a bucket of the number of times a user called the event while they're on the page (or in a session, whatever), such as:
0 times -> 800 visitors
1 times -> 200 visitors
2 times -> 150 visitors
etc
Ideally I'd get this data emailed to me on a regular basis, maybe with a chart for the second part. Suggestions?
Let's say that the event is a Video Play.
You must keep track of how many videos the user played. For that create a session cookie with that number, and increment it at each video play.
Then you can fire a CustomVariable (Page Scoped) to send the number of events the user performed at that page.
Something like this:
window.onunload = function(){_gaq.push(['_setCustomVar', 1, 'Video Plays', cookie_value, 3]);}
http://code.google.com/apis/analytics/docs/gaJS/gaJSApiBasicConfiguration.html#_gat.GA_Tracker_._setCustomVar
That should get you a nice report

Resources