Skip to content

Commit b2857df

Browse files
author
KHOUBZA Younes
committed
add google analytics
1 parent 93b2e2f commit b2857df

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

_layouts/after-widget.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
<script async src="https://www.googletagmanager.com/gtag/js?id=G-T4D78SM7TC"></script>
1818
<script>
1919
window.dataLayer = window.dataLayer || [];
20-
function gtag() { dataLayer.push(arguments);}
20+
21+
function gtag() {
22+
dataLayer.push(arguments);
23+
}
24+
2125
gtag('js', new Date());
2226
gtag('config', 'G-T4D78SM7TC');
2327
</script>

_layouts/default.html

+11
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@
1515
<link rel="icon" type="image/png" href="/static/favicon.png"/>
1616
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/styles/monokai.min.css" integrity="sha512-z8wQkuDRFwCBfoj7KOiu1MECaRVoXx6rZQWL21x0BsVVH7JkqCp1Otf39qve6CrCycOOL5o9vgfII5Smds23rg==" crossorigin="anonymous" />-->
1717
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/styles/xcode.min.css"/>
18+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-T4D78SM7TC"></script>
19+
<script>
20+
window.dataLayer = window.dataLayer || [];
21+
22+
function gtag() {
23+
dataLayer.push(arguments);
24+
}
25+
26+
gtag('js', new Date());
27+
gtag('config', 'G-T4D78SM7TC');
28+
</script>
1829
<script data-ad-client="ca-pub-9317139815225070" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
1930
</head>
2031
<body class="flex flex-col min-h-screen min-w-full leading-normal bg-gray-50 overflow-x-hidden">

0 commit comments

Comments
 (0)