Skip to content

Commit 7ed600b

Browse files
committed
Enable google tag analytics
1 parent 523edfe commit 7ed600b

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

en/docs/deploy/jar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This guide explains how to deploy an integration as an executable JAR file.
44

55
1. Navigate to the Visualizer view by clicking on the Ballerina Integrator icon on the sidebar.
66
2. Click on the **`Deploy on VM`** under the **`Deployment Options`** section in the right panel.
7-
3. Click **`Create Executable `** button.
7+
3. Click **`Create Executable`** button.
88
<a href="{{base_path}}/assets/img/deploy/jar.gif"><img src="{{base_path}}/assets/img/deploy/jar.gif" alt="Build JAR" width="70%"></a>
99

1010
4. The integration will be built as an executable JAR and the JAR file will be available in the `target\bin` directory of the project.

en/mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ markdown_extensions:
115115
- pymdownx.mark
116116
- pymdownx.smartsymbols
117117
- pymdownx.superfences
118+
- pymdownx.tabbed:
119+
alternate_style: true
118120
- pymdownx.tasklist:
119121
custom_checkbox: true
120122
- pymdownx.tilde

en/theme/material/main.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,29 @@
22
This file is the main template use in every page except the redoc and home page.
33
-#}
44
{% extends "base.html" %}
5+
6+
{% block analytics %}
7+
<!-- Google Tag Manager -->
8+
<script>(function(w,d,s,l,i){
9+
w[l]=w[l]||[];w[l].push({
10+
'gtm.start':
11+
new Date().getTime(),event:'gtm.js'
12+
});var f=d.getElementsByTagName(s)[0],
13+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.setAttributeNode(d.createAttribute('data-ot-ignore'));j.async=true;j.src=
14+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
15+
})(window,document,'script','dataLayer','GTM-5CR98L58');</script>
16+
<!-- End Google Tag Manager -->
17+
{% endblock %}
18+
19+
{% block extrahead %}
20+
<meta name="google-site-verification" content="pRwRUP0jDUECheRt5DziuVd3gSs2UTw6EhL4nud3NMk" />
21+
{{ super() }}
22+
{% endblock %}
23+
24+
{% block content %}
25+
{{ super() }}
26+
<!-- Google Tag Manager (noscript) -->
27+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5CR98L58" height="0" width="0"
28+
style="display:none;visibility:hidden"></iframe></noscript>
29+
<!-- End Google Tag Manager (noscript) -->
30+
{% endblock %}

0 commit comments

Comments
 (0)