What code do I need to embed in my website for cross-domain Google Analytics (Universal Analytics)?

I have a website that's on multiple domains, and I want to track it universally. Currently, I do not care about statistics per domain, I just want to see the total page views.
I am also not interested in links between domains – they could be counted as two sessions.

So I've created a new property in the https: //analytics.google.com dashboard, but I need to enter a "default URL" (where I've only selected one of my domains). Then I found the tracking code that starts with ,

I then used the tag manager to get information about universal tracking: https://support.google.com/tagmanager/answer/6164469. That's why I created a Google Analytics: Universal Analytics tag with a variable with Google's tracking ID. Analytics property and with Cross-domain tracking configured with all my domain names (separated by a comma).
The Tag Manager has a button in the title bar that looks like this: "GTM -…" – It will pop up a popup window titled "Install Google Tag Manager" with a code I put into it Embed Head Tag: and code to embed in the body tag: ,

Do I just need to embed the ones? GTAG Code? only the Google Tag Manager Code? Or both?

Thank you very much

Webapp to connect iOS and Google Play Analytics

I am developing a mobile app that has become popular (about 100,000 downloads), and I find myself navigating too much between the Google Console dashboard and the iOS dashboard.

Is there an online tool that lets you connect to these two dashboards, import data regularly, and get a nice summary of some of my mobile app's KPIs?

Thank you very much.

google tag manager – Tracks links from a Facebook ad to an external website but appears in my Analytics dashboard

I place a Facebook ad. The call to action in the ad is a link to a planning response card hosted by a third-party service – not my domain, not my server.

I want to track links from the Facebook ad to the third-party service.

Can I add my Google Site Tracker code to the third-party response form? I know, I can place it there. But are visits to this reply card recorded in my analytics dashboard?

google analytics – Get the date by week using the ga: week dimension

I am confused as to how I can find the date in my weekly report chart. How can I retrieve the area since it is filtered by week? I would like my dates per week to be as follows: 01 August 2019 to 04 August 2019 and so on …

Here I try to get:

data = [

 {
   date: "Aug 01, 2019 to Aug 03, 2019",
   data: {
     bounces: "123",
     views: "123",
     sessions: "123,
   }
 },
 {
   date: "Aug 04, 2019 to Aug 10, 2019",
   data: {
     bounces: "123",
     views: "123",
     sessions: "123,
   }
 },
 up to end date ...

]

Any suggestions, advice? No, please hate. I'm only new to Google Analytics.

Custom segments of Google Analytics in custom reports

I'm trying to get a custom report in Google Analytics with custom segments as the dimension of the report. I do not see any custom segments in the list of dimensions. I can split the pre-built GA views into custom segments, but I can not seem to add them to add to a custom report or API. Custom dimensions appear to be available as dimensions in custom reports, but I can not add new dimensions to the GA tag on the site.

Does anyone know if custom segments are available as dimensions of a custom report in Google Analytics or 360?

Thank you so much!

Google Analytics – How do I find page views for the root of the site?

I only looked at the tracking code on the website. The tracking code snippet is currently not configured for GA tracking. It's configured for Google Ads conversions, which also seem to be set up incorrectly through the Gtag tracking code snippet.

This is your current tracking code snippet, which incorrectly entered the Google ads as AW-AW-1071954721 instead of AW-1071954721:

    


To track multiple Google products with a single tracking code snippet:


For more information, see the gtag.js dev documents
https://developers.google.com/gtagjs/devguide/add

Home – How do I find page views for the root of a site in Google Analytics?

I only looked at the tracking code on the website. The tracking code snippet is currently not configured for GA tracking. It's configured for Google Ads conversions, which also seem to be set up incorrectly through the Gtag tracking code snippet.

This is your current tracking code snippet, which incorrectly entered the Google ads as AW-AW-1071954721 instead of AW-1071954721:

    


To track multiple Google products with a single tracking code snippet:


For more information, see the gtag.js dev documents
https://developers.google.com/gtagjs/devguide/add
After GA tracking is set up and working, you can view the page views in the Behavior> Site Content> All Pages report

Should the hit-level custom dimension area in Google Analytics apply to multiple pageviews?

The case: We're running a test with 5% of pageviews (NOT USERS) on a different ad layout. We strive to provide each page view that has a different ad layout with a custom dimension.

The custom dimensions area is Hit.

The problem we come across: Google Analytics reports show more than 5% of custom dimension page views. We know (via other reports) that the different ad layout is displayed for only 5% of traffic (so Google Analytics is reporting too much).

The case is (after some tests) that a user had a page view that sets the custom dimension. All subsequent page views are marked with this dimension. We want the custom dimension to apply only to the page view that has the custom dimension set.

The code:

window.dataLayer = window.dataLayer || ();
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'GA_TRACKING_ID', {
    'custom_map': {'dimension1': 'adlayout'}
});

Later in the code:

gtag('event', 'adlayout_dimension', {'adlayout': 'true'});

Ask:

  • How do I report custom dimensions for page views, not for multiple page views?

If that is not possible:

  • Are custom dimensions the right way to do this? Is there a better function for marking a sideview in Google Analytics?
  • If so, where do I go with my code / setup leading to over reporting?

TO EDIT: Have a few more tests, apparently it's actually the segment that I use to report:
Under Advanced> Conditions, I filter sessions that includes the dimension. The custom dimension does not apply to all subsequent page views, but I misunderstood the reporting. However, there is no option for page views. Is there a way to create a segment with filtering for page views that contain the custom dimension instead of for sessions?

Tracking – Does the user ID need to be set in every Google Analytics session?

If you use the user ID feature in Google Analytics, the userId Do I need to make settings in each session to bind sessions to the same user?

I see that there is a session merge option that links page views from before userId is set to the same session but could not find documentation on whether several sessions were unified for the same user without hiring userId in every session.

For example, a new user navigates the site, then sends a form to generate a unique ID userId is set.

The next day, the same user returns to the site without performing an unidentifiable action.

Will this second session be tied to the same user when reporting on the user in Google Analytics?

How do I manually set a field in Universal Analytics?

In a given situation, some field data for Analytics must be set manually. In my JS I have the following:

ga(function(tracker) {
   tracker.set('campaignKeyword', 'my keyword');
   tracker.send('event');
});

In Analytics, however, nothing seems to come through.

I ran console.log(tracker) and it's a valid Universal Analytics tracking object. I'm just not sure what I'm doing wrong. I referenced this documentation.

What do I miss?