refactor(analytics): update Google Analytics collection endpoint for improved tracking
- Modified the Google Analytics collection endpoint in the Next.js configuration to include the automatic addition of "/g/collect" in the transport URL. - Enhanced comments for better clarity regarding the changes made to the analytics routing.
This commit is contained in:
1 parent
a464ecd0fa
commit
4b414c048a
1 file changed
+2
-1
+2
-1
@@ -85,8 +85,9 @@ const nextConfig: NextConfig = {
|
||||
destination: "https://www.googletagmanager.com/gtag/js?id=G-QTT9QT0T3S",
|
||||
},
|
||||
// Google Analytics - Endpoint de coleta (camuflado como API de vitals)
|
||||
// O gtag.js adiciona "/g/collect" automaticamente ao final da transport_url
|
||||
{
|
||||
source: "/sys/api/vitals",
|
||||
source: "/sys/api/vitals/g/collect",
|
||||
destination: "https://www.google-analytics.com/g/collect",
|
||||
},
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user