An open API service indexing awesome lists of open source software.

https://github.com/ricomeetsworld/next-ga

Google Analytics📊 script component for NextJs to avoid recurrent setup in every build.
https://github.com/ricomeetsworld/next-ga

google-analytics google-analytics-4 next nextjs

Last synced: about 1 year ago
JSON representation

Google Analytics📊 script component for NextJs to avoid recurrent setup in every build.

Awesome Lists containing this project

README

          

# nextgas - Next Google Analytics📊

Google Analytics script component for NextJs to avoid recurrent setup in every build.

**How to install**

```
npm i nextgas
```

**How to use**
Grab your measurement ID from the Google Analytics dashboard and plug it into NextGA's mID prop. Use in `_app.tsx` entrypoint file.

```jsx
// app.tsx

import '../styles/globals.css'
import type { AppProps } from 'next/app'
import { NextGA } from 'nextgas'

function MyApp({ Component, pageProps }: AppProps) {
return (
<>


>
)
}

export default MyApp

```