GA4: G- prefix on new Property ID not well documented

Created on 23 November 2022, about 2 years ago
Updated 18 July 2023, over 1 year ago

If I use the Google Analytics "GA4 setup assistant" tool to set up a new GA4 property, I get a new property ID. That property id is a 9 digit number with no prefix.

When I go to add this number to Drupal Google Analytics, it rejects it, saying:

A valid Google Analytics Web Property ID is case sensitive and formatted like UA-xxxxx-yy, G-xxxxxxxx, AW-xxxxxxxxx, or DC-xxxxxxxx.

If I look at the raw HTML Google wants to add in, it seems to have a "G-" prefix. But Google's UI really doesn't make this clear.

I've searched through the readme, I can't seem to find anything about this. This should be documented better.

โœจ Feature request
Status

Closed: works as designed

Version

4.0

Component

Documentation

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada TrevorBradley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024