Skip to content

Commit 050b12b

Browse files
committed
google analytics script
also: - meta name="google-site-verification" - iframe resize function not sure if they are necessary though
1 parent 86d8d63 commit 050b12b

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

docs/StardustDocs/cfg/buildprofiles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<buildprofiles xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/build-profiles.xsd"
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
55
<variables>
6+
<include-in-head>dpk-gtm-analytics.html</include-in-head>
67
<header-logo>kotlin-logo.svg</header-logo>
78
<web-root>https://kotlin.github.io/dataframe/</web-root>
89
<download-page/>
@@ -13,7 +14,6 @@
1314
<algolia-api-key>bce9ba6ce7419efe813d671244d3bf6a</algolia-api-key>
1415
<search-scopes-provider>https://www.jetbrains.com/search/json/</search-scopes-provider>
1516
<generate-sitemap-url-prefix>https://kotlin.github.io/dataframe/</generate-sitemap-url-prefix>
16-
<analytics-head-script-file>resize-iframes.js</analytics-head-script-file>
1717
<enable-browser-edits>true</enable-browser-edits>
1818
<browser-edits-url>https://github.com/Kotlin/dataframe/edit/master/docs/StardustDocs/</browser-edits-url>
1919
</variables>

docs/StardustDocs/cfg/resize-iframes.js renamed to docs/StardustDocs/cfg/dpk-gtm-analytics.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<meta name="google-site-verification" content="Lffz_ab-_S5cmA07ZXVbucHVklaRsnk8gEt8frHKjMk"/>
2-
<!-- Google Analytics -->
3-
<script>
4-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
6-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
7-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
82

9-
ga('create', 'UA-47631155-3', 'auto');
10-
ga('send', 'pageview');
3+
<script>
4+
(function (w, d, s, l, i) {
5+
w[l] = w[l] || [];
6+
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
7+
var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&amp;l=' + l : '';
8+
j.async = true;
9+
j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl;
10+
f.parentNode.insertBefore(j, f);
11+
})(window, document, 'script', 'dataLayer', 'GTM-5P98');
1112
</script>
12-
<!-- End Google Analytics -->
13+
14+
<script src="https://resources.jetbrains.com/storage/help-app/v6/analytics.js"></script>
15+
1316
<script>
1417
window.onload = function() {
1518
function updateIframeThemes(theme) {

0 commit comments

Comments
 (0)