Mixing Metrics and Dimensions on Google Data Studio - google-analytics

I have the following case statement:
case
when Event name='continue-button-at-profile'
then Event count
end
Event count is a metric and Event name is a dimension. This throws an error saying I can't mix the two. How can I work around this? I have looked this up with no success.
Thanks in advance!

Related

eventAction and pageView filters in one request

I'm trying to filter website conversions from Google Analytics for a dashboard. However since it is a mixture of third party leads, events, and page path that contribute to the leads, I have to combine different types of filters. However combining folling metrics, the https://ga-dev-tools.appspot.com/query-explorer/ shows me the value 0 even if that's not correct.
Metrics: ga:totalEvents
Dimension:ga:date
ga:pagePath=#DialogNavigatorVertical,ga:eventAction==Texting form submit
I have tried multiple solutions, but can't figure out how to get the correct data. Can I not combine pagePath and evenAction?
Thank you so much for all your kind help,
Anna
Events by definition are not page views. This means that an Event dimension (category, action, label) can't have page view metrics such as page views or average time on the page because that information does not relate to the specific event.
But you can definitely combine pagePath and evenAction. You are getting wrong results because of one of the following reasons
In your filter, ga:pagePath=#DialogNavigatorVertical is wrong, it must be either == or !=. it cant be an assignment operator
IF you wish to combine two filter conditions using AND that means both must be true, use ;. Semicolon is used for AND operator in filters
IF you wish to combine two filter conditions using OR that means both must be true, use ,. Comma is used for OR operator in filters
In case you are using core reporting api from a backend script, please URL encode the call before hitting. like == must be %3D%3D, space must be %20 and so on.
Please have a look into settings here : https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filters

PageName segment in Adobe Analytics

I'm trying to create a segment based on this case:
"I have an event that is triggered in multriple pages and I only want to see the number of times it has been fired on a specific page."
I have created a segment where the condition is:
Page name (URL without domain) -> contains -> 'news/potatoe'
The problem with this is that when I cross this segment against the event, the results are wrong, I get very few hits even though I know, for sure, that the number of hits should be higher.
Adding on, when I breakdown a dimension by "Page name (URL without domain)", I don't get the total ocurrences.
Thank you in advance!
The pageName variable is kind of an outlier when it comes to event attribution. Instead of giving full credit to the page it fired on, it uses linear allocation, which divides credit equally among all pages seen in the visit. More info on linear allocation can be seen here:
https://marketing.adobe.com/resources/help/en_US/reference/allocate.html
In order to get the data you're looking for, you will want to use an eVar and not pageName. Using a processing rule to copy pageName into an eVar would be the easiest way to accomplish that.
In short, you're pulling the report right with the exception that pageName has weird attribution. If you replaced pageName with an eVar containing pageName data, you'd get the report you're looking for.

Filtering on multiple column in dynamic Telerik RAD grid

I am preparing dynamic grid using VB.net and RAD grid where columns are getting generated in Run Time. I am trying to apply filter (inbuilt filter) on multiple column at time but application is throwing exception (is neither a DataColumn nor a DataRelation for table Table). This error occurs when I try to apply filter. I am unable to identify root cause. Any input would be appreciated. I am using NeedDataSource() event of Radgrid and this event is throwing above mentioned exception on applying filter.
Thanks in advance.
Rajeev
It's likely the issue is because the column being mentioned in the error cannot access its required DataField. Please check your DataSource configuration closely and see if this DataField's exact name is equals to the one mentioned in the error message.

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.

Updating all instance of a recurring event in Google Calendar API

What is the proper way to update all (or a subset) of the instances of a recurring event? Also related: how do you, given the id of the original event, get the instances of that event?
If you want to update just a subset of recurring events, then you need to set singleevents = true when running your query to retrieve the initial list of events. In PHP you'd do something like this
$gdataCal = new Zend_Gdata_Calendar($client);
$query = $gdataCal->newEventQuery();
$query->setUser('default');
$query->setVisibility('private');
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setStartMin($startDate);
$query->setStartMax($endDate);
$query->setSingleEvents('true'); //get recurring events as a series of single events
$eventFeed = $gdataCal->getCalendarEventFeed($query);
foreach ($eventFeed as $event) {
//do stuff with $event
}
I tried with updating all recurrence event ,it is working.Initially I created one Recurring event like weekly on Monday from 2016-02-25 to 2016-03 25 and It is created 6 instances for that recurring period.During updating what I tried is,
1.First I assigned to Recurrence field ,
"recurrence":["RRULE:FREQ=WEEKLY;COUNT=18;BYDAY=TU"] (Updating like weekly on Tuesday)
2.after that I fetching available lists using list google api.here I used Single Events: false(in the sence it will give only main recurring event not all instances)
3.after I used update event to update like passing auth,eventId and calendarId: "primary" and resource:updated event array
then it is done .It is updating the instances as Weekly on Tuesday.
I hope it will help to someone.
To update all you just change the relevant properties for the event, leaving the recurrence and recurrence exceptions strings intact. Not sure that you can easily modify a subset, as this would require converting the recurring event into multiple new events depending on the subset.
For the second part or your question, according to the API docs:
Specifically, each recurring event is
represented by a
element in the result feed, and each
of those elements includes a
element for each occurrence of that
event that falls between the start
time and the end time. Looking at
elements is much simpler
than parsing recurrences and
exceptions yourself.
However, I've never been able to find that magic "when"... so I've ended up parsing the recurrence and recurrenceexceptions strings - if you find the answer to that one, let us all know!
For anyone with this issue I also spent some time trying to figure this out. Basically when you get your CalendarEventEntry list you need to check for each calendarEventEntry if it has an originalEvent (calendarEventEntry.getOriginalEvent()). This basically tells you there is another event (which you may or may not have already processed) that needs to swapped with the information for this current calendarEventEntry.

Resources