Skip to content

Commit 1c3c7fe

Browse files
committed
add google analytics
1 parent 643f808 commit 1c3c7fe

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ contact_note: # > Email is the best way to reach me.
109109
# Analytics and search engine verification
110110
# -----------------------------------------------------------------------------
111111

112-
google_analytics: # your Google Analytics measurement ID (format: G-XXXXXXXXXX)
112+
google_analytics: G-07ZY9F9FTG # your Google Analytics measurement ID (format: G-XXXXXXXXXX)
113113
cronitor_analytics: # cronitor RUM analytics site ID (format: XXXXXXXXX)
114114

115115
google_site_verification: # your google-site-verification ID (Google Search Console)

_includes/analytics.html

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

_layouts/default.html

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<meta http-equiv="refresh" content="3; url={{ site.baseurl }}/" />
88
{%- endif -%}
99
{% include head.html %}
10+
{% include analytics.html %}
1011
</head>
1112

1213
<!-- Body -->

assets/pdf/cv.pdf

-280 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)