This commit is contained in:
Dawid Wysokiński 2021-04-04 14:47:10 +02:00
parent 8c2f0793c8
commit f5986b0037
4 changed files with 21 additions and 2 deletions

2
.env
View File

@ -1 +1 @@
DATE_OF_THE_EXAM=2021-06-22T00:00:00.000Z
DATE_OF_THE_EXAM=2021-06-22T00:00:00.000Z

1
.env.production Normal file
View File

@ -0,0 +1 @@
GA_TRACKING_ID=G-355ES1R23J

View File

@ -34,7 +34,24 @@ export default class MyDocument extends Document {
render() {
return (
<Html>
<Head />
<Head>
<script
async
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.GA_TRACKING_ID}`}
/>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${process.env.GA_TRACKING_ID}', {
page_path: window.location.pathname,
});
`,
}}
/>
</Head>
<body>
<Main />
<NextScript />

View File

@ -269,6 +269,7 @@ function PrivacyPolicyPage() {
<Link
title="Google Ads"
href="https://www.google.com/ads/preferences/"
style={{ wordBreak: 'break-all' }}
>
https://www.google.com/ads/preferences/
</Link>