Skip to content

Conversation

bovlb
Copy link

@bovlb bovlb commented Feb 14, 2023

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
Copy link

welcome bot commented Feb 14, 2023

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.

Copy link

@intellizone intellizone left a comment

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