Skip to content

Use new Google snippet#134

Open
bovlb wants to merge 1 commit into
pages-themes:masterfrom
bovlb:patch-1
Open

Use new Google snippet#134
bovlb wants to merge 1 commit into
pages-themes:masterfrom
bovlb:patch-1

Conversation

@bovlb

@bovlb bovlb commented Feb 14, 2023

Copy link
Copy Markdown

This should work with both old Universal Analytics (UA) and new Google Analytics v4 (GA4).

Resolves #63

This should work with both old Universal Analytics (UA) and new Google Analytics v4 (GA4).

Resolves pages-themes#63
@welcome

welcome Bot commented Feb 14, 2023

Copy link
Copy Markdown

Welcome! Congrats on your first pull request to the Hacker theme. If you haven't already, please be sure to check out the contributing guidelines.

@intellizone intellizone left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I recently started working with github pages and found that the one default in this repo is not working with google analytics G-, but the changes proposed

<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script> alone is enough and working. The entire script is also fine both worked for me.

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.

[FEATURE/FIX] Move from analytics.js to gtag.js (Google Analitics V4)

2 participants