From 1d244f907da8bcb56d2f67c45fcbbb86ed5f7e84 Mon Sep 17 00:00:00 2001 From: Vlad Faust Date: Sat, 22 Sep 2018 17:09:03 +0300 Subject: [PATCH] feat: add Google Analytics script --- src/index.pug | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.pug b/src/index.pug index bc588e6..1f44e65 100644 --- a/src/index.pug +++ b/src/index.pug @@ -17,6 +17,12 @@ html meta(property="og:url" content="https://vladfaust.com") script(src="bundle.js") script(async, src="https://c6.patreon.com/becomePatronButton.bundle.js") + script(async, src="https://www.googletagmanager.com/gtag/js?id=UA-87763635-1") + script. + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'UA-87763635-1'); body div.bar h1.top My name is Vlad Faust