Skip to content

Commit

Permalink
feat: update default template to allow google analytics from metadata
Browse files Browse the repository at this point in the history
Bringing dotnet#8733 to the default template.
  • Loading branch information
SeanKilleen authored May 28, 2023
1 parent 2ba377e commit 40c377b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/default/partials/head.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

<head>
<meta charset="utf-8">
{{#_googleTagId}}
<script async src="https://www.googletagmanager.com/gtag/js?id={{_googleTagId}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', '{{_googleTagId}}');
</script>
{{/_googleTagId}}
{{#redirect_url}}
<meta http-equiv="refresh" content="0;URL='{{redirect_url}}'">
{{/redirect_url}}
Expand Down

0 comments on commit 40c377b

Please sign in to comment.