Skip to content

Commit a8e365c

Browse files
Merge pull request operator-framework#438 from java-operator-sdk/analytics
Add analytics to website.
2 parents a4e3bcc + 0898e6f commit a8e365c

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

docs/_includes/analytics.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- Global site tag (gtag.js) - Google Analytics -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TCB1LERV5K"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
8+
gtag('config', 'G-TCB1LERV5K');
9+
</script>

docs/_layouts/default.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta content="width=device-width, initial-scale=1" name="viewport"/>
66
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title | escape }}{% endif %}</title>
77
{% include links.html %}
8+
{% include analytics.html %}
89
</head>
910
<body class="page">
1011
{% include header.html %}

docs/_layouts/homepage.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta content="width=device-width, initial-scale=1" name="viewport"/>
66
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title | escape }}{% endif %}</title>
77
{% include links.html %}
8+
{% include analytics.html %}
89
</head>
910
<body class="page">
1011
{% include header.html %}

0 commit comments

Comments
 (0)