Repository navigation
Expand file tree
/
Copy pathanalytics.toml
More file actions
54 lines (42 loc) · 1.83 KB
/
Copy pathanalytics.toml
File metadata and controls
54 lines (42 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Annotated pend-analytics config example.
# Copy via `pend-analytics init`, then change project, baseUrl and property
# ids to your own. Every URL below points at example.com on purpose, so
# running this file unchanged pulls nothing real.
# Output path is CLI-only: pend-analytics audit --out out/analytics.json
# Full setup: docs/input.md and docs/analytics.md
project = "Example Project"
standard = "Pendulum_Analytics_v1"
# Site origin for the public HTML tag scan, CrUX, and homepage PageSpeed lab.
# Omit to skip those probes.
baseUrl = "https://example.com"
# Search Console / GA4 pull (unscored). At least one source is required.
[analytics]
enabled = true
# Path to a service-account JSON. Empty or omit uses
# GOOGLE_APPLICATION_CREDENTIALS.
# credentialsPath = "/Users/you/Secrets/analytics-sa.json"
# PageSpeed Insights and CrUX API key. Empty or omit uses PAGESPEED_API_KEY.
# The environment wins when both are set. Do not commit the key.
# pagespeedApiKey = "AIza..."
# Inclusive day count for the primary window (max 90). Ignored when
# startDate and endDate are set together.
rangeDays = 28
# YYYY-MM-DD overrides. Must be set together.
# startDate = "2026-01-01"
# endDate = "2026-01-28"
# Compare against the immediately preceding window of equal length.
comparePrevious = true
# Chromium collect intercept on a cold load, then abort so client GA4
# is not inflated. Also ANALYTICS_OBSERVE=1.
# observeEvents = false
# Named rival https origins. Homepage CrUX plus PageSpeed lab. Never a
# Google property of yours.
# rivals = ["https://example.com"]
# Domain property (sc-domain:host) or URL-prefix with a trailing slash
# (https://example.com/).
[analytics.searchConsole]
siteUrl = "sc-domain:example.com"
# siteUrl = "https://example.com/"
# Numeric GA4 property id. A properties/ prefix is stripped.
[analytics.ga4]
propertyId = "123456789"