---
title: "Discussion on \"Tracking Page Views in a React SPA with Google Analytics 4\" | Hashnode"
description: "Discussion on \"Tracking Page Views in a React SPA with Google Analytics 4\". Adding Google Analytics (GA4) to a standard HTML website is straightforward: paste the tracking snippet into your <head> and you're done. Every time a user clicks a link, the browser fetches a new HTM"
url: "https://hashnode.com/posts/tracking-page-views-in-a-react-spa-with-google-analytics-4/699bbbdfed90a660698bbd0f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Tracking Page Views in a React SPA with Google Analytics 4](https://blog.vicentereyes.org/tracking-page-views-in-a-react-spa-with-google-analytics-4?utm_source=hashnode&utm_medium=feed)

Adding Google Analytics (GA4) to a standard HTML website is straightforward: paste the tracking snippet into your <head> and you're done. Every time a user clicks a link, the browser fetches a new HTM

Feb 23 · 4 min read · blog.vicentereyes.org  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#analytics](https://hashnode.com/tag/analytics)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Vicente Reyes](https://hashnode.com/@vgreyes)

@vgreyes · MNL

  
[View profile](https://hashnode.com/@vgreyes)

Web Developer | Technical Writer | OSS Contributor | Musician | Gamer

Python Developer | Audio Editor | Technical Writer | OSS Contributor | Tag Moderator @ @ThePracticalDEV | Valorant TonyPoppins #881488

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
