Skip to content

Commit 9a91183

Browse files
Updated gtag
1 parent 5418a87 commit 9a91183

File tree

2 files changed

+33
-22
lines changed

2 files changed

+33
-22
lines changed

_includes/head.html

-10
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55

6-
<!-- Global site tag (gtag.js) - Google Analytics -->
7-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ZY17XZJWMR"></script>
8-
<script>
9-
window.dataLayer = window.dataLayer || [];
10-
function gtag(){dataLayer.push(arguments);}
11-
gtag('js', new Date());
12-
13-
gtag('config', 'G-ZY17XZJWMR');
14-
</script>
15-
166
<!-- Metadata -->
177
<meta name="author" content="Fabrizio Fubelli">
188
<meta name="keywords" content="offensive hub, hacking, tool, cyber security, penetration testing, pentest, hack, offensive, software">

_layouts/default.html

+33-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
{% include head.html %}
4-
<body>
5-
{% include header.html %}
6-
<section id="about">
7-
{% include about.html %}
8-
</section>
9-
<section id="projects">
10-
{% include projects.html %}
11-
</section>
12-
{{ content }}
13-
{% include footer.html %}
14-
</body>
3+
<!-- Global site tag (gtag.js) - Google Analytics -->
4+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ZY17XZJWMR"></script>
5+
<script>
6+
window.dataLayer = window.dataLayer || [];
7+
function gtag(){dataLayer.push(arguments);}
8+
gtag('js', new Date());
9+
10+
gtag('config', 'G-ZY17XZJWMR');
11+
</script>
12+
13+
<!-- Google Tag Manager -->
14+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
15+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
16+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
17+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
18+
})(window,document,'script','dataLayer','GTM-P7QT6FM');</script>
19+
<!-- End Google Tag Manager -->
20+
{% include head.html %}
21+
<body>
22+
<!-- Google Tag Manager (noscript) -->
23+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P7QT6FM"
24+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
25+
<!-- End Google Tag Manager (noscript) -->
26+
{% include header.html %}
27+
<section id="about">
28+
{% include about.html %}
29+
</section>
30+
<section id="projects">
31+
{% include projects.html %}
32+
</section>
33+
{{ content }}
34+
{% include footer.html %}
35+
</body>

0 commit comments

Comments
 (0)