hugo-theme-meme icon indicating copy to clipboard operation
hugo-theme-meme copied to clipboard

Replace Google Universal Analytics with Google Analytics 4

Open fjchen7 opened this issue 2 years ago • 3 comments

Meme needs trackingID to track traffic in Google Analytics. Only Universal Analytics has tracingID (see here), and this product is going to stop collecting data starting July 1, 2023.

image

It is better to use Google Analytics 4 (which uses measure ID) for traffic tracking instead.

fjchen7 avatar May 24 '22 06:05 fjchen7

PS: umami is another decent product for website analytics especially for individual site like personal blog.

fjchen7 avatar May 24 '22 06:05 fjchen7

@jimzk Hi did you figured out how to enable Google Analytics 4 which use Google tag ID (G-xxxxxx) ?

he-sb avatar Oct 09 '23 10:10 he-sb

@jimzk Hi did you figured out how to enable Google Analytics 4 which use Google tag ID (G-xxxxxx) ?

I figured it out, simply config these two parameters would work:

trackingCodeType = "gtag"
trackingID = "G-xxxxxx"

he-sb avatar Oct 09 '23 16:10 he-sb