Skip to content

Commit

Permalink
Add GTag
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jul 19, 2023
1 parent 07bec5b commit 2767d19
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions MyApp/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<!doctype html>
<html lang="en">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-7722718-13"></script>
<script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);}
gtag('js', new Date()); gtag('config', 'UA-7722718-13');</script>

<meta charset="utf-8"/>
<meta name='date' content='@DateTime.UtcNow.ToString("O")'>
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand All @@ -20,14 +24,16 @@
@await RenderSectionAsync("Head", required: false)

<script async src="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js"></script>
@Html.ImportMap(new() {
["app.mjs"] = ("/mjs/app.mjs", "/mjs/app.mjs"),
["vue"] = ("/lib/mjs/vue.mjs", "/lib/mjs/vue.min.mjs"),
@Html.ImportMap(new()
{
["app.mjs"] = ("/mjs/app.mjs", "/mjs/app.mjs"),
["vue"] = ("/lib/mjs/vue.mjs", "/lib/mjs/vue.min.mjs"),
["@servicestack/client"] = ("/lib/mjs/servicestack-client.mjs", "/lib/mjs/servicestack-client.min.mjs"),
["@servicestack/vue"] = ("/lib/mjs/servicestack-vue.mjs", "/lib/mjs/servicestack-vue.min.mjs"),
["@servicestack/vue"] = ("/lib/mjs/servicestack-vue.mjs", "/lib/mjs/servicestack-vue.min.mjs"),
})
</head>
<body class="bg-white dark:bg-black dark:text-white">

@await Html.PartialAsync("Header")

<div class="min-h-screen">
Expand Down

0 comments on commit 2767d19

Please sign in to comment.