Skip to content

Commit

Permalink
Added Google tag
Browse files Browse the repository at this point in the history
  • Loading branch information
DercilioFontes committed Dec 29, 2022
1 parent e2838b1 commit 87b697a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SQFNVSZ1J0"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'G-SQFNVSZ1J0');
</script>
<meta charset="UTF-8" />
<title><%= htmlWebpackPlugin.options.title %></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Expand Down Expand Up @@ -31,7 +42,7 @@
'_ha'
);
_ha('create', '5156', {
auto_track: true
auto_track: true,
});
_ha('send', 'pageview');
</script>
Expand Down

0 comments on commit 87b697a

Please sign in to comment.