collected data :
I have a custom dimension called advertisingId with hit-scope , which is sent along with the event actions, here is an example of the collected data:
# action | advertisinId
1 install 30
2 install 10
3 install 30
4 install 10
5 install 40
6 install 50
requested metrics :
in google analytics i would like to build two metrics:
returning event : event who has advertisingId which is already associated to previous event.
unique event : an event who has advertisingId which is not associated to any previous event.
processes data example :
so according to the above collected data , here is the how the processes data should be:
# action | advertisinId | returningEvent
1 install 30 no. there is no previous event who has the same advertisingId
2 install 10 no. there is no previous event who has the same advertisinId
3 install 30 yes. because event #1 has the same advertisingId
4 install 10 yes. because event #2 has the same advertisingId
5 install 40 no. unique advertisingId
6 install 50 no. unique advertisinId
Final Report :
accordig to the processes data i need to build the following report:
action | unique event | returningEvent
install 4 2
How could i build that, what custom metrics i should build and configure ?
Thanks
Assuming your 'Action' field here is actually 'Event Action', you should already be able to extract this data from Google Analytics. I can't think of a way to get it as a calculated metric, but you can certainly get the volumes yourself.
Create a Flat Table Custom Report with Metric 'Total Events', and Dimensions 'Event Action' and 'advertisingID'.
Unique Events (as you defined above) is equal to the number of rows in the report.
Returning Events (as you defined above) is equal to the sum of 'Total Events' in the report, minus the Unique Events figure defined above.
Related
I am new to querying GA with event label filters and am trying to work out my mistake with the following syntax. I have 3 different event label filters on 3 separate reports which are identical, except for the variation in this query:
Report filter 1: ga:eventLabel==Login - Create Account Step 2
Report filter 2: ga:eventLabel==Login - Create Account Step 2;ga:eventLabel!=Where to Buy Step 2 Submit Query
Report filter 3: ga:eventLabel==Login - Create Account Step 2;ga:eventLabel==Where to Buy Step 2 Submit Query
Now, I would expect that the count of sessions and users I get from report filter #1 would equal the sum of results from report filters #2 and #3. But actually, report filter #2: ga:eventLabel==Login - Create Account Step 2;ga:eventLabel!=Where to Buy Step 2 Submit Query returns counts of users and sessions orders of magnitude larger than the other 2 queries. (like 70K vs 120ish). Feels like there's a classic beginner conceptual error I'm making here, but I'm not sure how to google the the right question. Any ideas what I'm doing wrong?
Thanks for any help.
What you are trying to query with session/user metrics won't really work the reason being is that events are hits and so filtering that way filters on the hits. The way to get around that is to create segments of users that have triggered the events that you are interested in.
Now if you were to report on events/unique events using those filters based on the logic there I would expect #1 and #2 to return the same results and #3 to contain no values.
In Access 2010, I have a little form prior to a report which asks the user for a date range (e.g. 7.7.2015 - 9.9.2015). I pass this date range to the report as filter. The query contains the fields ActDate, Activity and Hours. I now want the report to look like:
Activities from <startDate> to <endDate>:
Activity Total Hours
Reading 5
Writing 8
Talking 3
What I'm getting is
Activities from <startDate> to <endDate>:
Activity Total Hours
Reading 2
Reading 3
Writing 1
Writing 3
Writing 4
Talking 1
Talking 2
The report should sum up equal activities over the selected date range and not display a separate line for each activity which just occured on a different date. Adding a group in the report for activities is no solution (it just adds extra blank lines).
I guess it's possible to build a custom query after the user dialog (in the query I could filter by date range and GROUP BY Activity), but it would be much simpler if the grouping could be done in the report without changing the query. Do I really have to change the query?
I have a top profileid and a filtered profileid.
the filtered profileid uses a path starting with /xxx/yyy/
now in site I have 2 view pages -
1) top profile + my filter of /xxx/yyy/
2) sub profile
both pages show the same number and values for pages
but when I do a view of "ga:pageviews, ga:visitors, ga:visits"
I get different values only for visits (sometimes 0 on #1)
examples of output
1)
70 5 1
40 8 0 <--how can I get a zero?
2)
70 5 6
40 8 8
so hitting the top profile and adding my filter to the call gives me invalid visits.
using the same code for profile #2 I get correct numbers.
looking inside google admin, profile 2 only has the 1 filter and it matches the same as what I am doing in code. also the pages match up so this does not make sense to me.
how is it possible to get numbers but have no visits?
is there a way to get an individual listing of the data that it is using to output to my filtered request?
http://www.analyticsedge.com/2014/09/misunderstood-metrics-sessions-pages/
I think I figured this out. doing the filter inside google as a separate profile will retag the first page to a session count, whereas if I query the top profile and filter on my end I will get very low session starts because most people hit the home page or login page which counts as their session start.
it seems I cannot use the metric sessions or visits along with my filtering to a sub section.
I have four Events e.g. 04/06/2011 to 08/06/2011, 04/06/2011 to 06/06/2011, 04/06/2011, and 05/06/2011. I want to find any event that is running on say 05/06/2011 which in my example above is events 1 and 2 and 4. With Views I can enter 05/06/2011 to find Events starting on that date but I want to find Events that are running (or starting) on that date.
Did you try Better Exposed Filter module for doing this?
It sound like you should create your own views filter. Check: http://www.hashbangcode.com/blog/creating-custom-views-filters-exposed-form-element-drupal-6-561.html
With CCK, I've added a field to the basic "Page" node type called "Resource Type". There are four possible resource types to choose from, in a dropdown, "Training, News, Research, Tools".
I've created a view that should group the nodes by their resource type. I've created 8 nodes, 6 of which are of type "Training", 1 is of type "Tools" and 1 is of type "News". Drupal is outputting the following:
Training
- Training Node 1
- News Node 1
- Tools Node 1
- Training Node 2
- Training Node 3
Tools
- Training Node 4
News
- Training Node 5
Research
- Training Node 6
When I tested with only 1 node per resource type, it displays as expected:
Training
- Training Node 1
Tools
- Tools Node 1
News
- News Node 1
I saw the other posting where the Devel module can screw up the output, but I'm seeing the above while the user is logged out (and therefore Devel is disabled for anonymous users).
Any idea what could be going wrong? My view is set to be an "HTML List", grouped by "Resource Type".
Not 100% sure, given that I do not have your setup to make tests, but it looks like you are experiencing this issue. On comment #16 Merlin of Chaos (the author of views) provides a patch that subsequent comments seem to confirm as "working".
If that is not the case, a workaround could be for you to sort nodes instead of grouping them. You could add the grouping header by passing to the template also the node type value: you then would add the header with the type of content by comparing with the previous one. In pseudo-code:
$type_in_use = 'xxx'
if $type_of_next_node != $type_in_use then
$type_in_use = $type_of_next_node
print_header($type_in_use)
Just an inelegant workaround, but should work!
HTH