Skip to content

Commit

Permalink
adding google tags
Browse files Browse the repository at this point in the history
  • Loading branch information
charlestephen committed Feb 21, 2024
1 parent d0aae49 commit d079092
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
23 changes: 11 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<!DOCTYPE html>
<html lang="en">

<head>
<!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) {
w[l] = w[l] || []; w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
}); var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-K9SF9FB7');</script>
<!-- End Google Tag Manager -->
<head><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7JGD2RBZ3L"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-7JGD2RBZ3L');
</script>
<!-- End Google tag -->
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />

Expand Down Expand Up @@ -613,4 +612,4 @@ <h4>Call:</h4>
<script src="assets/js/main.js"></script>
</body>

</html>
</html>
13 changes: 11 additions & 2 deletions inner-page.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<!DOCTYPE html>
<html lang="en">

<head>
<head><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7JGD2RBZ3L"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-7JGD2RBZ3L');
</script>
<!-- End Google tag -->
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />

Expand Down Expand Up @@ -134,4 +143,4 @@ <h2>Inner Page</h2>
<script src="assets/js/main.js"></script>
</body>

</html>
</html>

0 comments on commit d079092

Please sign in to comment.