developers.urbit.org/pages/_app.js

23 lines
482 B
JavaScript
Raw Normal View History

2021-12-11 01:30:57 +03:00
import React, { useEffect } from "react";
import { init } from "@socialgouv/matomo-next";
2021-09-30 16:23:38 +03:00
import "../styles/globals.css";
2021-10-01 02:14:18 +03:00
import "../styles/prism.css";
2021-09-30 16:10:31 +03:00
2021-12-11 01:30:57 +03:00
const MATOMO_URL = process.env.NEXT_PUBLIC_MATOMO_URL;
const MATOMO_SITE_ID = process.env.NEXT_PUBLIC_MATOMO_SITE_ID;
2021-09-30 16:10:31 +03:00
function MyApp({ Component, pageProps }) {
2021-12-11 01:30:57 +03:00
useEffect(() => {
init({
url: MATOMO_URL,
siteId: MATOMO_SITE_ID,
});
});
2021-09-30 16:23:38 +03:00
return <Component {...pageProps} />;
2021-09-30 16:10:31 +03:00
}
2021-09-30 16:23:38 +03:00
export default MyApp;