Skip to content

Commit 1df18fd

Browse files
committed
analytics added
1 parent 13b6c44 commit 1df18fd

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{{!Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license.}}
2+
3+
<head>
4+
<meta charset="utf-8">
5+
{{#_matomoContainerId}}
6+
<!-- Matomo Tag Manager -->
7+
<script>
8+
var _mtm = window._mtm = window._mtm || [];
9+
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
10+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
11+
g.async=true; g.src='https://matomo.devexpress.com/js/container_{{_matomoContainerId}}.js'; s.parentNode.insertBefore(g,s);
12+
</script>
13+
<!-- End Matomo Tag Manager -->
14+
{{/_matomoContainerId}}
15+
{{#_googleAnalyticsTagId}}
16+
<script async src="https://www.googletagmanager.com/gtag/js?id={{_googleAnalyticsTagId}}"></script>
17+
<script>
18+
window.dataLayer = window.dataLayer || [];
19+
function gtag() { dataLayer.push(arguments); }
20+
gtag('js', new Date());
21+
gtag('config', '{{_googleAnalyticsTagId}}');
22+
</script>
23+
{{/_googleAnalyticsTagId}}
24+
{{#redirect_url}}
25+
<meta http-equiv="refresh" content="0;URL='{{redirect_url}}'">
26+
{{/redirect_url}}
27+
{{^redirect_url}}
28+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
29+
<title>{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}</title>
30+
<meta name="viewport" content="width=device-width">
31+
<meta name="title" content="{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}">
32+
{{#_description}}<meta name="description" content="{{_description}}">{{/_description}}
33+
{{#description}}<meta name="description" content="{{description}}">{{/description}}
34+
<link rel="shortcut icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
35+
<link rel="stylesheet" href="{{_rel}}styles/docfx.vendor.min.css">
36+
<link rel="stylesheet" href="{{_rel}}styles/docfx.css">
37+
<link rel="stylesheet" href="{{_rel}}styles/main.css">
38+
<meta property="docfx:navrel" content="{{_navRel}}">
39+
<meta property="docfx:tocrel" content="{{_tocRel}}">
40+
{{#_noindex}}<meta name="searchOption" content="noindex">{{/_noindex}}
41+
{{#_enableSearch}}<meta property="docfx:rel" content="{{_rel}}">{{/_enableSearch}}
42+
{{#_enableNewTab}}<meta property="docfx:newtab" content="true">{{/_enableNewTab}}
43+
{{/redirect_url}}
44+
</head>

docfx.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@
3737
}
3838
],
3939
"dest": "_site",
40-
"template": "default",
40+
"template": [
41+
"default",
42+
"./.template"
43+
],
4144
"globalMetadata": {
4245
"_appTitle": "DevExpress End-User Documentation" ,
4346
"_appFaviconPath": "favicon.ico",
4447
"_appFooter": "Copyright (c) 1998-2024 Developer Express Inc. All rights reserved.",
45-
"_appLogoPath": "logo.svg"
48+
"_appLogoPath": "logo.svg",
49+
"_matomoContainerId": "kE7MWPi0"
4650
}
4751
},
4852
"pdf": {

0 commit comments

Comments
 (0)