mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Add environment variable for analytics
This commit is contained in:
+6
-3
@@ -38,10 +38,13 @@ class Doc extends Document {
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-FMD81GLKS3');
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
|
||||
gtag('js', new Date());
|
||||
gtag('config', ${process.env.GOOGLE_ANALYTICS_KEY});
|
||||
`
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user