From 963c334bc464bbb82e0b958f4f55e121ab78c6fa Mon Sep 17 00:00:00 2001 From: Eleanor Sigel Date: Fri, 11 Sep 2026 17:25:47 -0700 Subject: [PATCH] analytics: send docs pageviews to the canonical litellm.ai GA4 property Adds G-G3LG9H6J6B alongside the existing docs property G-K7K215ZVNC. docs.litellm.ai is a subdomain of litellm.ai and the marketing site's CTAs point at the docs quickstart, but the two sites reported into separate GA4 properties, so that journey was unattributable. Both sites now share a measurement ID; gtag's default cookie domain is the registrable domain, so sessions stitch across the subdomains without cross-domain configuration. G-K7K215ZVNC stays first in the array and keeps collecting, so the docs property's history is unaffected. --- docusaurus.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 2d96aea19..518a7fe91 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -313,7 +313,13 @@ const config = { gtag: process.env.NODE_ENV === 'production' ? { - trackingID: 'G-K7K215ZVNC', + // Two GA4 destinations. G-K7K215ZVNC is the docs property and + // stays first: plugin-google-gtag uses trackingID[0] for the + // gtag.js loader URL and emits one gtag('config', ...) per id. + // G-G3LG9H6J6B is the canonical litellm.ai property, also on the + // Webflow marketing site, so a visitor moving between + // www.litellm.ai and docs.litellm.ai stays in one session. + trackingID: ['G-K7K215ZVNC', 'G-G3LG9H6J6B'], anonymizeIP: true, } : undefined,