Make an exact replica of a view (excluding data) in Google Analytics? - google-analytics

Is there a way to make an exact replica of a View in Google Analytics?
Based on the documentation here (https://support.google.com/analytics/answer/3256366?hl=en&fbclid=IwAR2_5523Iz89Be8P6wkXxMla5BiS9NL4DLrzVuJ1ib23WvuDwzq4idnGBa4).
Settings and features controlled at the view level (like filters,
Goals, users and their permissions) are duplicated in copied views.
Cost source links and shared assets (like annotations, Segments, and
alerts) are not duplicated into copied views.
It seems like many items don't get copied across. I also noted that calculated metrics and custom reports are also not copied across.
Is there a way to create an exact replica (excluding the data)?

You can use Google Management API to get/create some setting, like segments (https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/segments?hl=it) and create a feature that automatically creates a view with the desired settings, custom report can be shared, ... however there are some settings that cannot be created in this way either, for example annotations API is not available.

Related

What is the proper way to tag pages in Google Analytics?

I don't even know if "tagging pages" is what I mean.
Essentially, I have a large education website with many types of pages. Specifically, I want to tag our program pages by faculty, level, etc. For example, the Biology program page would be tagged with Science (as its faculty), and Undergraduate (as its level). It's possible that a program could belong to multiple faculties and/or levels (Psychology, for instance, is both a Science program and an Arts program). There is nothing in the URL to signify faculty or level. The website is built in Drupal, in case you know of any modules that could facilitate this.
I want to understand how different faculties/levels/etc perform. I will be building reports in Google Data Studio.
Any guidance would be appreciated!
What you are looking for is called 'content grouping'. If you haven't information in the URL you can define some rules when the page loads and pass the information to Analytics with the pageviews.
You can find more information here:
https://support.google.com/analytics/answer/2853423?hl=en
Then you can get these information from Data Studio.
Because of your multi-value needs, nothing in GA is going to satisfy your requirements out of the box. You will have to do some post-processing, and I am not familiar enough with Data Studio to know where its limits are in that regard.
As the previous poster suggested, Content Grouping is the standard way to create custom aggregations of pages. You can have multiple content groupings, such as Faculty and Level, but a page can be in only one group per grouping (not the clearest terminology but it appears to be what Google uses).
A different option is Custom Dimensions. There are two options here. One is to create custom dimensions for Level and Faculty. Each page can still have only one value per dimension, but you could send a comma-delimited string when a department is in multiple faculties (for instance) and then pull it apart again in a spreadsheet.
The second option is to create a custom dimension for Department directly, and associate each department to the appropriate one or more faculties and levels in your reporting.
How you set the custom dimensions or content grouping will depend on your implementation of GA. If you are using the Google Analytics Drupal module, it says it supports setting custom dimensions as a feature. If you are using Google Tag Manager you can set the dimension value in your tags directly, though of course it will need to decide what value to set on based on either totally enumerated rules you write or something it can read out of the page. Here is some Tag Manager documentation: Content Grouping via GTM; Custom Dimensions via GTM.
If the department is present in the page in some consistently marked-up way you can grab it; if not the Metatag module or one of its schema.org extensions might be able to provide you a spot to set a value for GTM to retrieve.

Remove Another Website Data In Google Analytics

There was a mistake and we used one google analytics script in two different websites. We removed the script from one of the sites but because of this mistake we now have a lot of invalid data.
How can I remove the data of the other website?
you cant remove data already in the reports. General "best practice" is to leave the default All Website Data view without any filters applied, and then create one (or more) reporting views (depending on reporting needs) and apply an Include Hostname filter. This prevents data from invalid hostnames ending up in reports (such as in this instance).
To view the historical report data without the erroneous site data included, you can create and apply a segment to only include sessions (or users) for hostname yourdomain.com

In Google Analytics: How to combain data from several subdomains in one report?

My need is to combine the same type of data (Behaviour/Content drilldown) from two different subdomains on my site. (For instance Unique page views, etc.) The main site is https://www.nacka.se and I need two combine to subdomains like https://www.nacka.se/xxxxxx and https://www.nacka.se/yyyyy so the data can be seen in the same report, and then exported to .pdf.
But I simply cannot find out how to do this. I guess that this must be done through "custom reports". I have been informed that it should be possible in some way through using "the common denominator" in the URL (www.nacka.se), but how?
Most thankful for any advice.
FYI what you're referring to is called a subfolder, a subdomain would be something like https://somethingelse.nacka.se/
To add to DalmTo's answer:
If different properties/tracking IDs (UA-XXXXXXX-X) were used
Google Data Studio: that's probably the easiest way to create reports from multiple properties. Just create 1 data source for each property and that's it.
Google Sheets with GA API add-on: if you prefer working with spreadsheets.
GA 360 (formerly GA Premium): it has a roll-up feature for cross-property reporting, but you have to pay several $K a months for 360
If you used the same property/tracking ID
Google Analytics reporting UI: go to Reports -> Behavior -> Site Content - Content Drilldown and you'll see a breakdown of top-level folders
Google Analytics API: you can still use Data Studio or Google Sheets options listed above or build your own solution
For all above options, the GA dimension you're looking for is called ga:pagePathLevel1 in the API, and Page path level 1 in the in the reporting interface.
Assuming that the data is being insert into different properties on Google analytics website then the simple answer is you cant. There is no way to analyse data between websites in the Google Analytics website.
You could attempt to use the Google Analytics API to extract some data out for each of the websites and analyze this data locally although I would personally question how useful any results you would get for comparing different websites would be.

Google Analytics Absolute Change Sort in Custom Reports

I have a problem with my Custom Reports in Google Analytics. I'm trying to compare periods but it seems impossible to use Absolute Change sort within Custom Reports. Instead, the same option is available in classic reports. Is absolute change sort option available for custom report? Thank you in advance for your help.
Edit: Unfortunately I can't attach any photo, but I will try to explain better. As you surely know in Google Analytics I can compare data with a previous period. Analytics allows the user to sort the compared data through several Sort Types. There are three Sort Types available: Default, Absolute Change and Weighted. Each one of these takes into account different algorithms to sort data. You can switch to a different sort type just by using the drop-down menu placed beside "Secondary Dimension", above the results table. So, I checked out that In Custom Reports the "Absolute Change" option is never made available: when I try to switch from Default to Absolute type, the entry "Absolute Change" is disabled, so I can't select it. It seems to be a trivial feature of Analytics, and I'm not sure whether it is a limitation of custom reports, or maybe if I configured something wrong.

How do I separate Google Analytics stats between public/private parts of web service?

I'm building SaaS and website is separated into public part (landing page, documentation, faq, etc) and private part (SaaS administration panel itself). I wan't to separate my stats between public part and private yet preserving ability to track users among them (i.e. conversion rates).
How can I 'tag' my pages so that I can see separate stats on my Google Analytics page?
You can get separate stats in Google analytics by creating a custom Segment. I have an example of one I have created for the company I work for.
The intranet pages all start with intranet.(sitename) Under advanced conditions I created a filter on page starts with intranet.(site name). So you can figure out how to separate the pages, you could create a custom segment.
You could also create two different views(profiles) and set each up to filter the different information. But then you would not be able to analyses them together again as they data is removed from the view by the filter. Personally I don't like to filter views because of this.
You can either use profiles/views (campaign sources etc. will be kept intact even if you filter out the public parts of your website). But what might work even better for you is content groupings which would allow you to tag parts of the site as private or public and would also allow to add more granularity as needed.
Content groupings can be assigned either via additions to the tracking code or rule-based in the admin interface.
However content groupings will not allow you to assign different permissions for access to the data (as a view based solution would).

Resources