Skip to content

Commit 4a03211

Browse files
committed
GA manually set in custom field
1 parent e97ccd2 commit 4a03211

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Diff for: _config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ social:
7373

7474
# Analytics
7575
analytics:
76-
provider : "google" # false (default), "google", "google-universal", "custom"
76+
provider : "custom" # false (default), "google", "google-universal", "custom"
7777
google:
78-
tracking_id : "G-736KCPCJH3"
78+
tracking_id :
7979

8080
# Site Author
8181
author:

Diff for: _includes/analytics-providers/custom.html

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

8+
gtag('config', 'G-736KCPCJH3');
9+
</script>
310
<!-- end custom analytics snippet -->

0 commit comments

Comments
 (0)