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.

Ads by Google

林宏

Frank Lin

Hey, there! This is Frank Lin (@flinhong), one of the 1.4 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 tunneling between two points. In IKEv2 implementations, IPSec provides encryption for the network traffic. IKEv2 is natively supported on some platforms (OS X 10.11+, iOS 9.1+, and Windows 10) with no additional applications necessary, and it handles client hiccups quite smoothly.

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 templating language that Jekyll uses to process pages on your site. With Liquid you can output an modify variables, have logic statements inside your pages and loop over content.

TOC

Buy Me A Coffee