Skip to content

Commit e497fe7

Browse files
committed
Add Google Analytics tracking code
1 parent e583400 commit e497fe7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

blog/build/render/page.rkt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
,(stylesheet "/css/pygments.min.css")
4141
(link ([rel "alternate"] [type "application/atom+xml"] [title "Atom Feed"] [href ,(feed-path 'atom #:tag tag)]))
4242
(link ([rel "alternate"] [type "application/rss+xml"] [title "RSS Feed"] [href ,(feed-path 'rss #:tag tag)]))
43+
(script ([async ""] [src "https://www.googletagmanager.com/gtag/js?id=UA-65250372-1"]))
44+
(script ,(~a "window.dataLayer = window.dataLayer || [];"
45+
"function gtag(){dataLayer.push(arguments);};"
46+
"gtag('js', new Date());"
47+
"gtag('config', 'UA-65250372-1');"))
4348
(body
4449
(header
4550
(nav ([role "navigation"] [class "navigation-bar"])

0 commit comments

Comments
 (0)