[GA4] Gear up Analytics for a website and/or app

This article is for anyone who wants to fix Analytics (using a Google Analytics 4 belongings) on a new website or app. If y'all need a "UA-" tracking ID, read this article instead.

Create an Analytics business relationship

Your outset step is to prepare an Analytics account, unless you already have ane. Skip to creating a property unless you want to create a separate account for this website and/or app. For example, you might desire to create some other account if this website and/or app belong(southward) to a carve up business.

  1. In Admin, in the Account column, click Create Business relationship.
  2. Provide an account name. Configure the information-sharing settings to control which information you share with Google.
  3. Click Next to add the commencement holding to the account.

 Create a Google Analytics four property

Y'all need the Editor role to add properties to a Google Analytics account. If you created this account, you automatically have the Editor part.

You lot tin can add up to 100 backdrop (any combination of Universal Analytics and Google Analytics 4 backdrop) to an Analytics account. To raise this limit, contact your support representative.

To create a property:

  1. Are you continuing from "Create an Analytics business relationship", above? If so, skip to step two.  Otherwise,
    • In Admin, look at the Account column to make sure that y'all've selected the correct account. And so, in the Property cavalcade, click Create Belongings.
  2. Enter a name for the property (e.g. "My Business organization, Inc website") and select the reporting fourth dimension zone and currency. If a company comes to your website on a Tuesday in their time zone, but it'southward Monday in your fourth dimension zone, the visit is recorded equally having occurred on Monday.
    • If you lot cull a time zone that honors Daylight Savings Time, Analytics automatically adjusts for time changes. Utilize Greenwich Hateful Time if you don't want to adjust for Daylight Savings Fourth dimension.
    • Irresolute the fourth dimension zone only affects data going forrad. If you change the fourth dimension zone for an existing property, you lot may see a flat spot or a spike in your information, caused by the time shift forrard or backwards, respectively. Report data may refer to the erstwhile time zone for a short period after you update your settings, until Analytics servers take candy the change.
    • We recommend that you change the time zone for a property no more than than in one case per solar day and then Analytics tin can process the change.
  3. Click Side by side. Select your industry category and business organisation size.
  4. Click Createand have the Analytics Terms of Service and the Data Processing Amendment.

Add a information stream

  1. Are you continuing from "Create a belongings", higher up? If so, skip to footstep 2.  Otherwise,
    • In Admin, look at the Account column to make sure that y'all have your desired account selected. And then, expect at theHolding column to make certain that you have your desired property selected.
    • In the Property column, clickData Streams then Add stream.
  2. Click iOS app, Android app, or Web.

iOS app or Android app

When yous add an app data stream, Analytics creates a corresponding Firebase projection and app data stream, and automatically links the Firebase projection to your holding if your project and belongings are non already linked.

You can link to an existing Firebase projection, all the same you lot accept to do this from Firebase (and for a GA4 belongings that is non yet linked with Firebase.) Learn how.

  1. Enter the iOS bundle ID or Android package name, the app name, and for iOS, the App Shop ID, then click Register app.
  2. Click Side by side and follow the instructions to download the config file for your app.
  3. Click Adjacentand follow the instructions to add together the Google Analytics for Firebase SDK to your app.
  4. Click Side by side.
  5. Run your app to verify installation of the SDK and that the app is communicating with Google servers.
  6. Click Finish. (Alternatively, click Skip this stride if you desire to complete app setup at a later time.)

Web

  1. Enter the URL of your main website, e.g., "example.com", and a Stream name, e.chiliad. "Example, Inc. (spider web stream)".
  2. You have the option to enable or disable enhanced measurement. Enhanced measurement automatically collects page views and other events. Once the information stream has been created, yous can always go back and individually disable the enhanced measurement events you don't want to collect. So, we recommend that you enable enhanced measurement at present.
  3. Click Create stream.

Set up data collection (for websites)

You'll need to add the Analytics tag to your web pages to brainstorm seeing data in your new Google Analytics 4 belongings.

Add the tag to a website builder or CMS-hosted website (for example, WordPress, Shopify, etc.)

Google Sites, Wix, WooCommerce, and Wordpress.com

If you are using Google Sites, Wix, WooCommerce, or Wordpress.com, follow the instructions beneath to detect your "G-" ID and paste it into the Google Analytics field that your CMS provides.

  1. Click Admin.
  2. In the Property column, check that you have your new Google Analytics 4 property selected, then click Data Streams, and then Web. Click the data stream.

    Don't see a Data Streams option in the Property column? Y'all are looking at a Universal Analytics property instead of the GA4 property that y'all simply created. Use the belongings selector or Admin to navigate to your new GA4 belongings.

  3. Your "K-" ID appears at upper right. Enter your "G-" ID into the field that your CMS provides:
    • Google Sites instructions
    • Wix instructions
    • WooCommerce instructions
    • Wordpress.com instructions

All other website builders

If you are using a CMS or website builder other than Google Sites, Wix, WooCommerce, or Wordpress.com, you lot'll demand to paste the unabridged global site tag into your website using your CMS's custom HTML feature. First, find your global site tag:

  1. Click Admin.
  2. In the Belongings column, check that yous take your new Google Analytics 4 property selected, then click Data Streams, then Web. Click the information stream.

    Don't run into a Data Streams choice in the Property column? You lot are looking at a Universal Analytics property instead of the GA4 belongings that y'all just created. Use the property selector or Admin to navigate to your new GA4 property.

  3. Under Tagging Instructions, click Add new on-page tag and expect for "Global Site Tag (gtag.js)". Your Analytics page tag is the entire section of code that appears, first with:
    <!-- Global site tag (gtag.js) - Google Analytics -->
    and ending with
    </script>

Copy and paste your entire Google Analytics page tag to your website using your CMS'due south custom HTML feature. Follow your CMS's instructions on how to practise this below:

  • Crawly Motive: Contact Awesome Motive support for instructions.
  • Blogger instructions
  • Cart.com: Contact Cart.com support for instructions.
  • Drupal: Contact Drupal support for instructions.
  • Duda instructions
  • GoDaddy instructions
  • HubSpot instructions
  • Magento instructions
  • Ane.com: Contact One.com support for instructions.
  • PrestaShop: Contact PrestaShop support for instructions.
  • Salesforce (Demandware): Contact Salesforce back up for instructions.
  • Shopify instructions
  • Site Kit: Contact Site Kit support for instructions.
  • Squarespace instructions (only bachelor to users who have a "Business and Commerce" program)
  • TYPO3: Contact TYPO3 support for instructions.
  • VTEX: Contact VTEX back up for instructions
  • Weebly instructions

It may take up to xxx minutes for data collection to start. You can then use the Realtime report to verify that you're receiving information.

Add together the global site tag direct to your spider web pages

You lot'll need admission to your web pages HTML. Inquire your web developer to perform these steps if you're unable to do this yourself.

  1. Click Admin.
  2. In the Property column, cheque that you lot have your new Google Analytics four property selected, so click Data Streams, and so Spider web. Click the data stream.
  3. Nether Tagging Instructions, click Add new on-page tag and expect for "Global Site Tag (gtag.js)". Your Analytics page tag is the entire section of code that appears, beginning with:
    <!-- Global Site Tag (gtag.js) - Google Analytics -->
    and ending with
    </script>
  4. Copy and paste your entire Analytics page tag immediately after the <head> on each page of your website.

Information technology may take up to thirty minutes for data collection to starting time. You can and then utilize the Realtime report to verify that y'all're receiving information.

Don't see a Data Streams option in the Property column? You are in a Universal Analytics property instead of the GA4 belongings that you just created. Use the property selector or Admin to navigate to your new GA4 belongings.

Add together your tag using Google Tag Manager

Find your "G-" ID (for whatever platform that accepts a "1000-" ID)

If you want to use Google Analytics on a service or platform that accepts a "G-" ID, follow these instructions to find your "Yard-" ID. And then, enter your "Chiliad-" ID in the field that your service or platform provides.

  1. Click Admin.
  2. In the Belongings cavalcade, check that you accept your new Google Analytics 4 property selected, and so click Data Streams, then Web. Click the data stream.

    Don't see a Information Streams option in the Property column? You lot are looking at a Universal Analytics property instead of the GA4 belongings that you merely created. Use the belongings selector or Admin to navigate to your new GA4 property.

    Your "1000-" ID appears at upper right.

Was this helpful?

How tin can nosotros improve it?