Skip to content

Set Google Analytics (GA4) tracking code in Jupyter book #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2025

Conversation

taqro
Copy link
Contributor

@taqro taqro commented May 19, 2025

No description provided.

@taqro taqro requested a review from Copilot May 19, 2025 05:07
Copy link

@Copilot 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

This PR sets up GA4 tracking for the Jupyter Book documentation by adding the necessary configuration options and updating the build process to inject the actual GA4 tracking ID.

  • Added GA4 analytics configuration in the Japanese and English configuration files.
  • Updated the GitHub Actions workflow to replace the GA4 placeholder with the actual secret during the build.

Reviewed Changes

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

File Description
docs/ja/_config.yml Added GA4 analytics configuration to the Japanese settings.
docs/en/_config.yml Added GA4 analytics configuration to the English settings.
.github/workflows/docs.yml Updated workflow to substitute the GA4 tracking ID from secrets during build.

@taqro taqro requested a review from j-i-k-o May 19, 2025 05:14
@j-i-k-o j-i-k-o added the documentation Improvements or additions to documentation label May 19, 2025
Copy link

@j-i-k-o j-i-k-o left a comment

Choose a reason for hiding this comment

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

Confirmed

  • analytics is set to both English and Japanese notebook
  • Build Jupyter Book with GA_TRACKING_ID replaced.

@taqro taqro merged commit 6e725fd into main May 19, 2025
10 checks passed
@taqro taqro deleted the feature/set_ga4 branch May 19, 2025 05:58
@taqro taqro restored the feature/set_ga4 branch May 19, 2025 05:58
@taqro taqro deleted the feature/set_ga4 branch May 19, 2025 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants