Skip to content

Commit c6dfa4a

Browse files
CopilotLipata
andcommitted
Add documentation for GA4 credentials setup
Co-authored-by: Lipata <[email protected]>
1 parent 37ad707 commit c6dfa4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/core/util/GoogleAnalytics.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ class GoogleAnalytics {
1414
protected static appVersion: string;
1515
protected static npmVersion: string;
1616
// GA4 Measurement ID and API Secret
17+
// To obtain these credentials:
18+
// 1. Go to Google Analytics Admin panel (https://analytics.google.com/analytics/web/)
19+
// 2. Navigate to Admin > Data Streams > Select your stream
20+
// 3. Measurement ID is shown at the top (format: G-XXXXXXXXXX)
21+
// 4. For API Secret: Scroll down to "Measurement Protocol API secrets" > "Create" to generate a new secret
1722
protected static measurementID = "G-XXXXXXXXXX"; // TODO: Replace with actual GA4 Measurement ID
1823
protected static apiSecret = "XXXXXXXXXXXXXXXXXXXXXXXX"; // TODO: Replace with actual GA4 API Secret
1924

0 commit comments

Comments
 (0)