Skip to content

Commit 1ddd722

Browse files
committed
Adding Google Analytics
1 parent 784543c commit 1ddd722

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/resources/templates/pug/layouts/main_layout.pug

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ html(lang="en", xmlns:th="http://www.thymeleaf.org")
1616
link(rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css' integrity='sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk' crossorigin='anonymous')
1717
link(rel="stylesheet" th:href="@{styles/main.css}")
1818

19+
//- Global site tag (gtag.js) - Google Analytics
20+
script(async='' src='https://www.googletagmanager.com/gtag/js?id=UA-158781103-1')
21+
script.
22+
window.dataLayer = window.dataLayer || [];
23+
function gtag(){dataLayer.push(arguments);}
24+
gtag('js', new Date());
25+
gtag('config', 'UA-158781103-1');
26+
1927
body
2028

2129
section

0 commit comments

Comments
 (0)