Skip to content

Commit

Permalink
Merge pull request #227 from Quattro8/writerside/final
Browse files Browse the repository at this point in the history
GTM analitycs
  • Loading branch information
smth-to-smb authored Feb 13, 2024
2 parents f466558 + 123b4c1 commit 934a9c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions cfg-writerside/buildprofiles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<web-root>https://www.jetbrains.com/help</web-root>
<og-twitter>@qodanaevolves</og-twitter>
<og-image>https://resources.jetbrains.com/storage/products/qodana/img/meta/preview.png</og-image>
<include-in-head>thirdparty/dpk-gtm-analytics.html</include-in-head>
</variables>
<build-profile instance="qd">
<variables>
Expand Down
11 changes: 11 additions & 0 deletions cfg-writerside/thirdparty/dpk-gtm-analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&amp;l=' + l : '';
j.async = true;
j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-5P98');
</script>
<script src="https://resources.jetbrains.com/storage/help-app/v6/analytics.js"></script>

0 comments on commit 934a9c7

Please sign in to comment.