Skip to content

Conversation

@Blargian
Copy link
Member

@Blargian Blargian commented Oct 1, 2025

Summary

Currently GA tag manager is included in preview deployments.
Added an environment variable to preview vercel deployment only called VERCEL_PREVIEW
Modified Docusaurus.config.js files to not include the GA tag manager plugin if this environment variable is detected.

Checklist

@Blargian Blargian requested a review from a team as a code owner October 1, 2025 12:20
@vercel
Copy link

vercel bot commented Oct 1, 2025

@Blargian is attempting to deploy a commit to the ClickHouse Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Oct 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
clickhouse-docs Ready Ready Preview Oct 6, 2025 8:42am
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
clickhouse-docs-ru Ignored Ignored Preview Oct 6, 2025 8:42am
clickhouse-docs-zh Ignored Ignored Preview Oct 6, 2025 8:42am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Excludes Google Analytics tag manager from preview deployments by conditionally including the googleTagManager plugin based on the VERCEL_PREVIEW environment variable.

  • Replaces gtag with googleTagManager plugin in all language configurations
  • Adds conditional logic to exclude GA tracking from Vercel preview deployments
  • Updates container ID from tracking ID to Google Tag Manager container ID

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
docusaurus.config.zh.js Updates Chinese config to conditionally include GTM based on preview environment
docusaurus.config.ru.js Updates Russian config to conditionally include GTM based on preview environment
docusaurus.config.jp.js Updates Japanese config to conditionally include GTM based on preview environment
docusaurus.config.en.js Updates English config to conditionally include GTM based on preview environment

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Blargian Blargian merged commit e60dcac into ClickHouse:main Oct 6, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant