From 2630ae5e8720b447b6817f1ecdcee805076b568e Mon Sep 17 00:00:00 2001 From: felipefialho Date: Thu, 19 Oct 2023 18:07:39 -0300 Subject: [PATCH] feat: add gtm --- src/index.pug | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/index.pug b/src/index.pug index c72f8898..b7ab3f86 100644 --- a/src/index.pug +++ b/src/index.pug @@ -2,7 +2,12 @@ doctype html html(lang='en') - head + head + title #{data.title} - #{data.description} meta(charset='utf-8') meta(name='description' content=data.description) @@ -27,17 +32,13 @@ html(lang='en') meta(name='viewport' content='width=device-width, initial-scale=1, maximum-scale=5') meta(name='theme-color' content=data.theme_color) link(rel='shortcut icon' type='image/favicon' href='favicon.ico') - script(async src='https://www.googletagmanager.com/gtag/js?id=' + data.ga) - script. - window.dataLayer = window.dataLayer || []; - function gtag(){dataLayer.push(arguments);} - gtag('js', new Date()); - gtag('config', '#{data.ga}'); style. body { visibility: hidden; } - body + body + section.header .piano .piano-key