Skip to content

Commit

Permalink
GA4 upgrade (#369)
Browse files Browse the repository at this point in the history
* GA4 update
  • Loading branch information
gvreddy04 authored Sep 20, 2023
1 parent 0ca7d3d commit 9fa2a5a
Show file tree
Hide file tree
Showing 6 changed files with 11,193 additions and 8,088 deletions.
12 changes: 11 additions & 1 deletion BlazorBootstrap.Demo.Server/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@
<link href="css/demo.css" rel="stylesheet" asp-append-version="true" />
<link href="BlazorBootstrap.Demo.Server.styles.css" rel="stylesheet" asp-append-version="true" />

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

<!-- Microsoft Clarity -->
<script type="text/javascript">
(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
Expand Down
12 changes: 6 additions & 6 deletions BlazorBootstrap.Demo.WebAssembly/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
<link href="css/demo.css" rel="stylesheet" />
<link href="BlazorBootstrap.Demo.WebAssembly.styles.css" rel="stylesheet" />

<script>window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) }, ga.l = +new Date, ga("create", "UA-214301343-1", "auto"), ga("set", "anonymizeIp", !0), ga("send", "pageview")</script>
<script async src="https://www.google-analytics.com/analytics.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-214301343-1"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-60QGZHW8TG"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-214301343-1');

gtag('config', 'G-60QGZHW8TG');
</script>
<!-- Micorosft Clarity -->

<!-- Microsoft Clarity -->
<script type="text/javascript">
(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
Expand Down
17 changes: 8 additions & 9 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ const config = {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
googleAnalytics: {
trackingID: 'UA-214301343-1',
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
// googleAnalytics: {
// trackingID: 'UA-214301343-1',
// // Optional fields.
// anonymizeIP: true, // Should IPs be anonymized?
// },
gtag: {
trackingID: 'G-60QGZHW8TG',
anonymizeIP: true,
},
}),
],
Expand Down Expand Up @@ -99,11 +103,6 @@ const config = {
darkTheme: darkCodeTheme,
additionalLanguages: ['csharp', 'cshtml'],
},
//googleAnalytics: {
// trackingID: 'UA-214301343-1',
// // Optional fields.
// anonymizeIP: true, // Should IPs be anonymized?
//},
}),
customFields: {
version: '0.0.4',
Expand Down
Loading

0 comments on commit 9fa2a5a

Please sign in to comment.