Skip to content

Commit 13ddd45

Browse files
committed
Fixed google analytics as per issue academicpages#265-academic pages
1 parent 9e56493 commit 13ddd45

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

_config.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,9 @@ social:
7474

7575
# Analytics
7676
analytics:
77-
provider : "google" # false (default), "google", "google-universal", "custom", "goatcounter"
77+
provider : "custom" # false (default), "google", "google-universal", "custom", "goatcounter"
7878
google:
79-
tracking_id : G-D2VVPD3Y2T
80-
goatcounter:
81-
code :
79+
tracking_id : "G-D2VVPD3Y2T"
8280

8381

8482
# Site Author
+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
<!-- start custom analytics snippet -->
22

3+
<!-- Google tag (gtag.js) -->
4+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-D2VVPD3Y2T"></script>
5+
<script>
6+
window.dataLayer = window.dataLayer || [];
7+
function gtag(){dataLayer.push(arguments);}
8+
gtag('js', new Date());
9+
10+
gtag('config', 'G-D2VVPD3Y2T');
11+
</script>
12+
313
<!-- end custom analytics snippet -->

0 commit comments

Comments
 (0)