Skip to content

Commit 06bd426

Browse files
committed
Add Google Analytics tracking code to static files
1 parent 2cf3ba8 commit 06bd426

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

public/en/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4+
<!-- Global Site Tag (gtag.js) - Google Analytics -->
5+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-620926-3"></script>
6+
<script>
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag(){dataLayer.push(arguments)};
9+
gtag('js', new Date());
10+
11+
gtag('config', 'UA-620926-3');
12+
</script>
413
<meta charset="utf-8"/>
514
<title>Documentation for Ruby</title>
615
<base href="https://docs.ruby-lang.org/en/"/>

public/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
<!DOCTYPE html>
22
<html lang="ja">
33
<head>
4+
<!-- Global Site Tag (gtag.js) - Google Analytics -->
5+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-620926-3"></script>
6+
<script>
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag(){dataLayer.push(arguments)};
9+
gtag('js', new Date());
10+
11+
gtag('config', 'UA-620926-3');
12+
</script>
413
<meta charset="utf-8"/>
514
<title>docs.ruby-lang.org</title>
615
<base href="https://docs.ruby-lang.org/"/>

public/ja/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
<!DOCTYPE html>
22
<html lang="ja">
33
<head>
4+
<!-- Global Site Tag (gtag.js) - Google Analytics -->
5+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-620926-3"></script>
6+
<script>
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag(){dataLayer.push(arguments)};
9+
gtag('js', new Date());
10+
11+
gtag('config', 'UA-620926-3');
12+
</script>
413
<meta charset="utf-8"/>
514
<title>プログラミング言語 Ruby リファレンスマニュアル</title>
615
<base href="https://docs.ruby-lang.org/ja/"/>

0 commit comments

Comments
 (0)