Setup Google Analytics 4 with GTM

Setup Google Analytics 4 with GTM

setup GA4 with GTM

Google Analytics 4 (GA4) is Google’s newest version of Google Analytics. Since I’m using the Google Tag Manager (GTM), just take a few steps to set up GA4 for my site.

Create a GA4 property in Google Analytics

  1. From the GA admin panel, select Create Property.

  2. Enter the property name and required details. Then click Create.

Create a Web data stream

  1. Select Web on the data stream setup screen.
  • To add more streams later, select Data Streams from the property-level admin panel.

  • If multiple distinct websites (different domains, different tracking requirements) needed, create separate data stream for each. Note that there are no “views” in GA4, only data streams and report filters.

  1. Enter the targeting website URL and a name for the stream. Leave the Enhanced Measurement defaults enabled.

  2. From the Data Streams screen, select the web stream and copy the Measurement ID, this is analogous to the old GA Tracking ID.

Create a GA4 configuration tag in GTM

  1. Add a new Google Analytics: GA4 Configuration tag in GTM.

  2. Enter the Measurement ID from the web data stream of GA4.

  3. Fire the tag on All Pages.

  4. Save and publish the new tag.

After publishing these changes, the data stream start populating in the Realtime report in the new GA4 property.

THE END

林宏

Frank Lin

Hey, there! This is Frank Lin (@flinhong), one of the 1.41 billion . This 'inDev. Journal' site holds the exploration of my quirky thoughts and random adventures through life. Hope you enjoy reading and perusing my posts.

YOU MAY ALSO LIKE

Setup an IKEv2 server with strongSwan

Tutorials

2020.01.09

Setup an IKEv2 server with strongSwan

IKEv2, or Internet Key Exchange v2, is a protocol that allows for direct IPSec tunnelling between networks. It is developed by Microsoft and Cisco (primarily) for mobile users, and introduced as an updated version of IKEv1 in 2005. The IKEv2 MOBIKE (Mobility and Multihoming) protocol allows the client to main secure connection despite network switches, such as when leaving a WiFi area for a mobile data area. IKEv2 works on most platforms, and natively supported on some platforms (OS X 10.11+, iOS 9.1+, and Windows 10) with no additional applications necessary.

Hands on IBM Cloud Functions with CLI

Tools

2020.10.20

Hands on IBM Cloud Functions with CLI

IBM Cloud CLI allows complete management of the Cloud Functions system. You can use the Cloud Functions CLI plugin-in to manage your code snippets in actions, create triggers, and rules to enable your actions to respond to events, and bundle actions into packages.

Using Liquid in Jekyll - Live with Demos

Web Notes

2016.08.20

Using Liquid in Jekyll - Live with Demos

Liquid is a simple template language that Jekyll uses to process pages for your site. With Liquid you can output complex contents without additional plugins.

TOC

Ads by Google