Export Google Analytics UTM measures to spreadsheet - google-analytics

My team is creating several UTM links and we would like to achieve better understanding of our campaigns through a google spreadsheet.
Our spreadsheet lets us prepare easily new UTM links, but we would also like to gather data related to the activity of those UTM links, that we would otherwise have to get through google analytics and selecting the right parameters
Is it possible to add an extra column(s) that would automatically retrieve such information from Google Analytics ? Maybe a script that we can run once in a while, and that would pull the number of clicks GA has registered for every UTM link ?
Online I have found some scripts to assist UTM link generation, but nothing about actually retrieving/exporting the results automatically to a spreadsheet.

The most straightforward way would be to use the Google Analytics Spreadsheets Add-On and filter (or segment) by your campaign (utm) information. You can configure multiple independent reports for different campaigns and set a trigger to have it updated automatically in regular intervals.

Related

Download Google Analytics information with a unique user ID

I'm looking to download hit data from a Google Analytics view for a small period of time that includes unique ID for a session and URL that was viewed. I believe I could do this going forward by setting something in Google Tag Manager to a Custom Dimension, but I was looking to avoid that (we have a good number of custom dimensions) and because I wouldn't be able to go backward.
Is it possible in the free version of GA to do something like? I picture the output being the URLs in my x-axis and my users in the y-axix with counts.
I'll be looking to take this data and do a cluster analysis to determine user behavior types.
Nope. Google Analytics does not expose a user specific id via the API or via data exports in a standard account (in GA360 you could use BigQuery to extract the client id).
You either have to set up a custom dimension (as you said this does not work for historic data), or try and use calcuated fields in Google Data Studio in the hope that if you aggregate enough different dimensions into one field you will end up with something specific per user.

Can Firebase Dynamic Links be used to attribute installations to marketing campaigns?

Firebase Dynamic links allows you to set the utm campaign parameters, however I have not been able to find a clear answer if the campaign parameters survive the installation process and are attributed.
We would like to generate our own dynamic links for non-adnetwork campaigns, e.g. posting on facebook, within edm's etc and be able to work out what campaigns are driving the most installations.
For the campaign information to survive, you'll need to utilize the provided fields when constructing your links. Specifically, the "social media tag parameters" look useful in this case.
However, that info isn't going to be captured in analytics as a campaign, necessarily, and you'll either need to coax this data to generate useful reports or import it into BigQuery for more advanced analysis.

Google Analytics: dashboard with custom calculations between metrics

Is it possible in the dashboard to report a value which is a custom calculation between fields?
I have an event called "banner_impression" and another one called "banner_click"
I would like to calculate which is the percentage of "banner_click" events over "banner_impression" events.
Any way to report such calculated value in a dashboard?
Nope. Sadly calculated metrics are not a feature in any version of Google Analytics. I hear Adobe Analytics has it, but that's an enterprise-level paid solution.
You'll have to export the data out of Google Analytics, open it in Excel, and then divide your clicks by your impressions to include it in any sort of dashboard. Excel plugins are available that can help with this, and they include Analytics Edge, Next Analytics, and the Napkyn Reporting Manger.
There are also dashboarding applications like Klipfolio and Mixpanel that can allow you to suck in data from various sources (incl. Google Analytics) and present your data in a much more appealing way.

How to include custom segments in the list of segments when querying the Google Analytics API?

This may be a possible duplicate of this question, but according to all the Google Analytics documentation I really should be able to pull my list of custom segments.
Since I have a very large list of them, it would be suboptimal for me to manually copy the segment ids over one at a time.
I'm following this walk through. Steps to reproduce:
Create a custom segment using date of first session in your Google Analytics account.
Authorize the Google Analytics guide to access your Google Analytics account.
Try their on-page query tester, and inspect whether your custom segment is there.
One thing I've already ruled out was the user that created the segment. I've manually created a segment with the same user that I'm querying the API with and it still does not show. Is there a flag I need to set somewhere to include custom segments?
Edit:
It turns out that it will list some custom segments, but not ones created with date of first session, so this is a duplicate of this question, which means that there is a bug in the Google Analytics API.
There was a bug which is now fixed. So it is now possible to list the Date of Session Segments in the Google Analytics Management API by calling the segments.list() method.
So after days of trying to solve this one I've come to the conclusion that it cannot be done as asked.
There is, however, another way to do it. For every segment set up a daily (or weekly, etc) email report to a email as a TSV. In each email body specify the name of the segment so when you're consuming the emails you can know which segment the attached TSV is for. It doesn't look like the daily reports were designed with segments in mind, since non of the metadata included in the TSV mentions which segment it is for.
From there it's trivial. Connect to the email address using an IMAP client once a day and update the numbers.
Note that the daily email only contains the numbers for that day (not a specified range), so you'll need to first generate the report one time with the historical data to load in.
While hacky, one nice thing about this approach is that it keeps your reports in sync with your (faked through email) api code (provided you match the column headings in the TSV). So, if for example, a new filter is included into a report, the new daily fields will continue to update.
Unfortunately though, the past data won't be reflected in the change.
Obviously this isn't great, but if you are monitoring daily cohorts it's the best you've got if you need to stay with Google Analytics. I have raised this as a bug to the Google Analytics developers, but I haven't heard back as to whether or not they plan to fix it.

Combine custom variables and events in Google Analytics to track marketing campaign effectiveness

I'm trying to track the success of marketing campaigns through conversion on a portal. The portal is largely JS based and for right now we can't use URL goal tracking. Instead, I'm planning on using event-based goal conversion that can report all the variables I need. The problem is how do I connect marketing campaigns to the eventual conversion? These campaigns span SEM, email, landing pages, partnerships, etc.
My initial idea was to use a URL param to set a session-level custom variable identifying the marketing campaign that funneled the visitor, and then to compare this to goal conversion. However, I'm not sure custom variables can even be compared to goal conversions in Google Analytics -- and I'm worried that I might be over-thinking this.
I'm worried I'm way over-thinking this. If I create a custom campaign using the URL Builder, will that give me everything I want, allowing me to track campaign conversions?
Yes, I think you are over-thinking things. :-)
As long as you properly tag the campaigns using the utm variables in your destination URLs as they show you how to do in URL builder, they should allow you to see your specific goal conversions by source, medium, campaign, etc. in your GA profile. Using the new Multi-Channel funnels features you'll also be able to see how the sources of previous visits influence future conversion behavior as well.
Generate help with campaign conversion tracking here: http://blog.crazyegg.com/2011/12/02/track-conversions-google-analytics-campaigns/
Info on Multi-Channel funnels here: https://www.google.com/analytics/features/multichannel-funnels.html

Resources