All Projects → sergiodxa → Next Ga

sergiodxa / Next Ga

Licence: mit
Next.js HOC to integrate Google Analytics on every page change

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Next Ga

Google Analytics Api Symfony
Google Analytics API Symfony Bundle
Stars: ✭ 43 (-81.14%)
Mutual labels:  analytics, google-analytics
Komito
🔖 Komito Analytics is a free, open-source enhancement for the most popular web analytics software.
Stars: ✭ 148 (-35.09%)
Mutual labels:  analytics, google-analytics
Kindmetrics
Kind metrics analytics for your website
Stars: ✭ 57 (-75%)
Mutual labels:  analytics, google-analytics
React Spy
A set of utilities for collecting UX-analytics of your React-application (ex: clicks, shows, errors and etc.)
Stars: ✭ 37 (-83.77%)
Mutual labels:  analytics, google-analytics
React Tracker
React specific tracking library, Track user interaction with minimal API!
Stars: ✭ 191 (-16.23%)
Mutual labels:  analytics, google-analytics
Gumshoe
A we analytics and event tracking sleuth JavaScript library
Stars: ✭ 39 (-82.89%)
Mutual labels:  analytics, google-analytics
Vue Analytics
Google Analytics plugin for Vue
Stars: ✭ 1,780 (+680.7%)
Mutual labels:  analytics, google-analytics
Fathom
Fathom Lite. Simple, privacy-focused website analytics. Built with Golang & Preact.
Stars: ✭ 6,989 (+2965.35%)
Mutual labels:  analytics, google-analytics
Goaccess
GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
Stars: ✭ 14,096 (+6082.46%)
Mutual labels:  analytics, google-analytics
Angulartics
Analytics for AngularJS applications.
Stars: ✭ 1,966 (+762.28%)
Mutual labels:  analytics, google-analytics
Angulartics2
Vendor-agnostic analytics for Angular2 applications.
Stars: ✭ 963 (+322.37%)
Mutual labels:  analytics, google-analytics
Analytics
UNMAINTAINED! - Complete Google Analytics, Mixpanel, KISSmetrics (and more) integration for Meteor
Stars: ✭ 211 (-7.46%)
Mutual labels:  analytics, google-analytics
Aurelia Google Analytics
An Aurelia.io plugin that adds Google Analytics page tracking to your project.
Stars: ✭ 28 (-87.72%)
Mutual labels:  analytics, google-analytics
App
Just a little analytics insight for your personal or indie project
Stars: ✭ 40 (-82.46%)
Mutual labels:  analytics, google-analytics
Analytics
Simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
Stars: ✭ 9,469 (+4053.07%)
Mutual labels:  analytics, google-analytics
Next Nprogress
Next.js HOC to integrate NProgress inside your app
Stars: ✭ 145 (-36.4%)
Mutual labels:  nextjs, hoc
Umami
Umami is a simple, fast, website analytics alternative to Google Analytics.
Stars: ✭ 9,228 (+3947.37%)
Mutual labels:  analytics, google-analytics
Analytics Spammers
Ce dépôt à pour but de bâtir un dictionnaire Open Source des spammers Analytics
Stars: ✭ 6 (-97.37%)
Mutual labels:  analytics, google-analytics
Save Analytics From Content Blockers
A proxy back end for Google Tag Manager & Google Analytics
Stars: ✭ 159 (-30.26%)
Mutual labels:  analytics, google-analytics
Magento2 Google Tag Manager
Google Tag Manager is a user-friendly, yet powerful and cost-effective solution that is a must-have integration for every Magento store. It simplifies the process of adding and managing third-party JavaScript tags. With dozens of custom events and hundreds of data points our extensions the #1 GTM solution for Magento.
Stars: ✭ 208 (-8.77%)
Mutual labels:  analytics, google-analytics

next-ga

The Next.js team has an official plugin being developed, while plugin supports it's still in canary only, the way the plugin works it's simpler than next-ga and I recommend you to check it and do it manually in your project until it's stable.

Plugin link: https://github.com/zeit/next.js/tree/canary/packages/next-plugin-google-analytics

Next.js High Order Component to integrate Google Analytics on every page change.

Usage

Install it

yarn add next-ga

Import it inside your pages/_app.js;

import Router from "next/router";
import withGA from "next-ga";

Wrap your custom App container with it

// pass your GA code as first argument
export default withGA("UA-xxxxxxxxx-1", Router)(MyApp);

That's it, now when the user access a page it will log a pageview to Google Analytics, each page change after that will also trigger a pageview on Google Analytics.

Note: This module detects if it's running in localhost and do nothing there to avoid polluting your analytics with local data.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].