Merge pull request #305 from pkgw/ga4
src/WWTMVC5/Views/Shared/_Layout.cshtml: migrate Google Analytics tag to GA4
This commit is contained in:
Коммит
f74536ee80
|
@ -54,13 +54,13 @@
|
|||
}
|
||||
</style>
|
||||
|
||||
<!-- Global Site Tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-107473046-1"></script>
|
||||
<!-- Global tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YWNE29K5CB"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() { dataLayer.push(arguments) };
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-107473046-1');
|
||||
gtag('config', 'G-YWNE29K5CB');
|
||||
</script>
|
||||
|
||||
@RenderSection("head", required: false)
|
||||
|
|
Загрузка…
Ссылка в новой задаче