mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-03-06 23:01:19 +00:00
Add next-ga for Google Analytics
This commit is contained in:
1
TODO.md
1
TODO.md
@@ -1,4 +1,3 @@
|
||||
* Google Analytics (ID `UA-58806132-1`)
|
||||
* Stripe
|
||||
* Test ID `pk_test_OmNve9H1OuORlmD4rblpjgzh`
|
||||
* Prod ID `pk_live_xrnwdLNXbt20LMxpIDffJnnC`
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
"lodash": "^3.9.1",
|
||||
"next": "^9.0.6",
|
||||
"next-fonts": "^0.18.0",
|
||||
"next-ga": "^2.3.4",
|
||||
"parse-github-event": "^0.2.0",
|
||||
"prop-types": "^15.5.10",
|
||||
"react": "^16.9.0",
|
||||
|
||||
13
pages/_app.jsx
Normal file
13
pages/_app.jsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from "react";
|
||||
import App from "next/app";
|
||||
import Router from "next/router";
|
||||
import withGA from "next-ga";
|
||||
|
||||
class MyApp extends App {
|
||||
render() {
|
||||
const { Component, pageProps } = this.props;
|
||||
return <Component {...pageProps} />;
|
||||
}
|
||||
}
|
||||
|
||||
export default withGA("UA-58806132-1", Router)(MyApp);
|
||||
Reference in New Issue
Block a user