Skip to content

Commit 59bf09e

Browse files
committed
Update Google Analytics
1 parent 25039f1 commit 59bf09e

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

remark-script.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
var remark_config = {highlightStyle: 'default'};
22
var slideshow = remark.create(remark_config);
33

4-
var _gaq = _gaq || [];
5-
if (window.location.hostname.substring('coderdojo.si') != -1) {
6-
_gaq.push(['_setAccount', 'UA-39132001-4']);
7-
_gaq.push(['_trackPageview']);
8-
(function() {
9-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
10-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
11-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
12-
})();
13-
}
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('set','url_passthrough',true);
7+
gtag('js', new Date());
8+
gtag('config', 'G-Q0DM27783G');
9+
10+
var ga = document.createElement('script');
11+
ga.async = true;
12+
ga.src = "https://www.googletagmanager.com/gtag/js?id=G-Q0DM27783G";
13+
document.head.appendChild(ga);

0 commit comments

Comments
 (0)