From 17555a6c6d345ad0b0f74d1be813026773f17a67 Mon Sep 17 00:00:00 2001 From: Andrew Simonson Date: Sun, 10 Apr 2022 14:31:54 -0400 Subject: [PATCH] header analytics --- public/index.html | 11 +++++++++-- src/analytics.js | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 src/analytics.js diff --git a/public/index.html b/public/index.html index 08a1876..880282a 100644 --- a/public/index.html +++ b/public/index.html @@ -13,7 +13,15 @@ --> - + + + Simonson - Portfolio @@ -21,7 +29,6 @@
- \ No newline at end of file diff --git a/src/analytics.js b/src/analytics.js new file mode 100644 index 0000000..56d501a --- /dev/null +++ b/src/analytics.js @@ -0,0 +1,6 @@ +window.dataLayer = window.dataLayer || []; +function gtag() { dataLayer.push(arguments); } +gtag('js', new Date()); + +gtag('config', 'G-E2V93W9CNV'); +console.log("HHHHHHHHHHHHHH") \ No newline at end of file