Google Analytics API sampling - google-analytics

I'm trying to pull up my goals against campaigns data through Google Analytics CORE-API. However, when I do so, one of my campaigns simply disappears. It only shows in the interface report or when I download it through excel. Can sampling exclude a campaign from the report? Is the sampling effect higher when using API? Will upgrading to GA premium and using the Measurement-API eliminates this effect? Thank you!

Related

How to get product level data point form google analytics using api?

Hi I was trying to get the E-commerce related data points like (totalProductDetailViews , totalAddedToCart, totalProductCheckout and cartConversions) from google analytics using google analytics api. But I was unable find a way how to do it?
Google gave direct metrics for all the data points described above, but that is at account level not product level. How can I get products page level data?

Aggregate Google Analytics Reporting

I have multiple google analytics accounts, each with multiple sites. My goal is to create a high level dashboard that can summarize the common metrics captured on each site.
I have tried using the google analytics API for php and was hoping to get an aggregated report of all sites across all accounts...has anyone achieved something along these lines? Perhaps there's a tutorial I missed...
Thank you in advance.

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.

Google Analytics monthly report to be sent weekly?

It is possible to choose an interval for a certain Google Analytics report?
I would like to be able to send a monthly report (for the last 30 days) on weekly basis.
I don't believe this is currently possible through the Google Analytics website, but you could use the Google Analytics Spreadsheet Add-on to achieve a very similar result.
You can Share almost any report in GA
Use Email option and set frequency Weekly.
I am new here so cant post image, would have posted screenshot otherwise.

How do you do cohort analysis in Google Analytics?

Tools like Mixpanel, KISSmetrics and others support cohort analysis out of the box but I've heard that you can do this with a bit of effort in Google Analytics as well. How do you set this up if you want to track, say, the daily and weekly retention of your visitors?
Google Analytics can do a lot but retention analysis is one of it's weak points. Since it tends to focus on visits (as opposed to visitors) you'll need to configure the cookie tracking yourself using Google Analytic's custom variables. Having said that, it's not too hard to get a simple solution running quickly.
First, decide how to layout the data in Google Analytic's custom variables based on your requirements. For example, are you storing retention dates for daily, weekly or monthly tracking? Do you also want to track cohort goals? Partition this data into the available custom variable slots.
Write the cohort data to these custom variables when visitors arrive or achieve goals using Google Analytic's _setCustomVar function. Setting the fourth parameter of that function to 1 indicates you want to do visitor-level (cookie) tracking.
For each cohort you wish to analyze, create an advanced segment in Google Analytics. Using a regex expression in the condition will give you the flexibility to segment for interesting cohorts. ex: "All users whose first visit was the week before Christmas".
Analyze the results with reports by specifying a date range and the corresponding cohort-sliced advanced segments. Another option is to extract the data using the Google Analytics Data Feed Query Explorer or their API.
Once you've put in the work your new visitors will be stamped by their first visit date and nicely fall into each daily or weekly retention bucket. If you need more detail there's a full walk through on my blog:
How to do Cohort Analysis in Google Analytics.
This really interested me so I did a little research and basically you have to customize the GA javascript in the pages to upload custom variables into google.
Once you have done that you need to go to "Advance Segments in Google Analytics" and select your custom variables. Here is a detailed description on how to accomplish this:
Hacking a Cohort Analysis with Google Analytics

Resources