Change attribution model in custom reports GA - google-analytics

I am working on a Google analytics project, Google Analytics uses last interaction attribution model by default for reporting. Is there a way to generate a Custom report (from customization => custom reports) but use first interaction attribution model instead ?

You cannot change default attribution model for all other reports then MFC in Google Analytics Standard. There are basically two ways to workaround though:
You can play with MFC/Attribution reports and change attribution models there and try to set up custom report with First Interaction model that satisfies your needs (not all the dimensions/metrics will be available).
You can export data to some other storage (i.e. Google BigQuery), and build your attribution by your own from the raw data.

Related

Reporting URL of downloads in Data Studio when using Google Analytics 4 automatic enhanced measurement events?

I have setup a new Google Analytics 4 property and have enabled enhanced tracking, which records all downloads automatically. When using Google Data Studio, I can see 'file_download' events (so it's definitely working) and use this data to build my report.
I need to create a report that shows which files were downloaded each month for a specific page only. It's really easy to get the total number of downloads which occurred on that page, however, I can't for the life of me find any way to report what the destination URL or file name was.
According to the Analytics support pages, the event has a number of useful parameters (file_extension, file_name, link_classes, link_domain, link_id, link_text, link_url), however, I can't see any related options for these in the Data Studio reports.
Any help would be greatly appreciated. At this point, I'm almost tempted to disable the automatic tracking and do it all manually via Tag Manager again.
It is possible create reports with the useful parameters. However, you need to register the parameters in Google Analytics first.
To register the customer dimensions, navigate to "All events", click "Manage Custom Definitions", and add custom dimensions for each parameter. This article goes through the details of registering custom dimensions: https://support.google.com/analytics/answer/10075209?hl=en. In this example, I've registered three dimensions (one for each parameter):
Once the dimensions are registered, Google Analytics will record the dimensions going forward. You should be able to create reports on these dimensions in Data Studio the next day. Here's the example reports:

Attribution model in Google Analytics reports

We use standard and custom reporting in Google Analytics. But for our reports we need another attribution model. In https://support.google.com/analytics/answer/1665189 we have found that Analytics uses Last Non-Direct Click model by default when attributing conversion value in non-Multi-Channel Funnels reports. But what about switching to another default model? Multi-Channel Funnels and Model Comparison Tool are not suitable. We need custom report with First Interaction model.
You can not change model atribution in the analytics report API
but u canu use mcf API, and create custom model
https://developers.google.com/analytics/devguides/reporting/mcf/dimsmets/?hl=ru
using dimension mcf:sourceMediumPath
We faced the same problem and it seems that you cannot change default attribution model for all other reports then MFC in Google Analytics Standard. There are basically two ways to workaround though:
You can play with MFC/Attribution reports and change attribution
models there and try to set up custom report with First Interaction
model that satisfies your needs(but not all the dimensions/metrics will be available).
You can stream hit level data to
some other storage(Google BigQuery, Amazon RedShift etc), and build
your attribution by your own from the raw data(but obviously some
level of programming skills is required, http://noca.cz/githubgabq
is a good python example to start with collecting data)

Export data from google analytics attribution model

is there a way to export the data from google analytics Attribution Model comparison tool? I'm searching through all the dimensions an measures but i was unable to find the correct measure.
Is this data available through Core API?
Is there a combination of measures to calculate the different models?
You can use Google's MCF (Multiple Channel Funnel) API:
https://developers.google.com/analytics/devguides/reporting/mcf/v3/
The model you can use seems to be limited (Only First and Last) but at least you can export your funnel path and built your own attribution much easier.
Hey I have asked google for an answer, they don't have this developed yet but there is an open request ticket for it, it could take a few months. I will keep track of this. To get the exact same dimension and metrics, bigquery can do the job.

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 custom dimension and metrics

Can i create custom dimension or metric with google analytics Management API? (Or other API...)
On January 23, 2015 the Google Analytics team released a change allowing for the creating of custom dimensions and metrics via the Management API.
Custom dimensions and metrics in the Management API allow you to create, get, list, update and patch custom dimensions and metrics for a Google Analytics property.
It is split up into two sections of the api Custom dimensions and custom metrics.
Not sure what language you where using so I cant help you with any sample code. I suggest you check the documentation.
Nope. Full reference for the Management API is here.
It doesn't include custom dimensions. Would be nice though, I agree.
The Provisioning API lets you create accounts, but that is in closed beta to AdWords partners at the moment. But however an account is created, the Management API is the one that lets you edit features such as filters at the moment, so would be where custom dimensions/metric control should also sit when available.
The collection APIs then let you send data to your custom metrics and dimensions once you have created them in the admin section of your web property.
Custom Dimensions and Metrics can be created in php for sure https://github.com/google/google-api-php-client
$dimension = new Google_Service_Analytics_CustomDimension();
$dimension->setName('[name]');
$dimension->setScope('[scope]');
$dimension->setActive(TRUE);
$client->management_customDimensions->insert('[webPropertyId]', '[analytics-account]', $dimension);
"$client->management_customMetrics" can be used in a similar way for metrics.
Gathering Data
In order to send data Google provides collection APIs and SDKs.
Configuring Accounts
Google Analytics provides programmatic access and management to configuration data through the Management API and account creation capabilities through the Provisioning API.
Reading Data
Google Analytics provides a simple and powerful APIs to retrieve report data from Google Analytics.
To answer the OP: you create custom dimensions and metrics via the collection API.
Dimensions: Describe data
A dimension is a descriptive attribute or characteristic of an object that can be given different values. For example, a geographic location could have dimensions called Latitude, Longitude, or City Name. Values for the City Name dimension could be San Francisco, Berlin, or Singapore.
Browser, Exit Page, Screens, and Session Duration are all examples of dimensions that appear by default in Google Analytics. Dimensions appear all of your reports, though you might see different ones depending on the specific report. Use them to help organize, segment, and analyze your data. In some reports, you can add and remove dimensions to see different aspects of your data.
Metrics: Measure data
Metrics are individual elements of a dimension that can be measured as a sum or a ratio. For example, the dimension City can be associated with a metric like Population, which would have a sum value of all the residents of the specific city.
Screenviews, Page per Session, and Average Session Duration are examples of metrics in Google Analytics.
Dimensions vs Metrics: What’s the difference?
Definitions: Goals, Metrics, KPIs, Dimensions, Targets

Resources