Replaced GA tracking script with GTM

This commit is contained in:
Victor Westerlund 2020-12-11 12:58:46 +01:00
parent 988ee48500
commit ea119b44eb

View file

@ -1,15 +1,13 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<!-- Global site tag (gtag.js) - Google Analytics --> <!-- Google Tag Manager -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2RKGE84YP9"></script> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
<script> new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
window.dataLayer = window.dataLayer || []; j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
function gtag(){dataLayer.push(arguments);} 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
gtag('js', new Date()); })(window,document,'script','dataLayer','GTM-5PBVM28');</script>
<!-- End Google Tag Manager -->
gtag('config', 'G-2RKGE84YP9');
</script>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Full-stack web developer from Stockholm, Sweden."> <meta name="description" content="Full-stack web developer from Stockholm, Sweden.">
@ -19,6 +17,9 @@
<title>Victor Westerlund</title> <title>Victor Westerlund</title>
</head> </head>
<body> <body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5PBVM28" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<main> <main>
<div id="intro"> <div id="intro">
<div class="inner"> <div class="inner">