---
title: "Discussion on \"Google analytics for SPA apps\" | Hashnode"
description: "Discussion on \"Google analytics for SPA apps\". analytics.js\n(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n}..."
url: "https://hashnode.com/posts/google-analytics-for-spa-apps/6232315afaf37c06759281d6"
---

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

Discussion

# [Google analytics for SPA apps](https://shrwn.com.np/google-analytics-for-spa-apps?utm_source=hashnode&utm_medium=feed)

analytics.js (function(i,s,o,g,r,a,m){i\['GoogleAnalyticsObject'\]=r;i\[r\]=i\[r\]||function(){ (i\[r\].q=i\[r\].q||\[\]).push(arguments)},i\[r\].l=1\*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)\[0\];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) }...

Mar 16, 2022 · 1 min read · shrwn.com.np  
Updated Mar 24, 2022  
Read the article

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

## Written by

[Shrawan Poudel](https://hashnode.com/@shrawanx)

@shrawanx · Kathmandu, Nepal

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

shrawanx.com

Working on mission to provide, Software Engineering Trainings easily and freely accessible to everyone through EdTech

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
