Skip to content
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

Restore the gtag JavaScript function to re-enable metrics #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 5, 2023

  1. Restore the gtag JavaScript function to re-enable metrics

    The associated issue is in the pytorch/tutorials repository:
    
    Issue #2696 · [BUG]
    No longer collecting star-rating data...since transition to GA4
    pytorch/tutorials#2696
    
    The gtag function is used by metrics such as star-rating in the
    tutorials repository (which leverages pytorch_sphinx_theme).
    
    The definition for the gtag function was deleted in the transition to
    Google Analytics 4 (GA4) in PR#182, which in-turn broke our metrics.
    
    This commit restores the definition of the function to re-enable these
    metrics.
    carljparker committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    76d6671 View commit details
    Browse the repository at this point in the history