Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit25713a3

Browse files
Remove broken GA tracking
The old tracking code pointed to bootstrap.com. That's not useful.
1 parentf88e57e commit25713a3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎_includes/header.html‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@
3333

3434
{% include social.html %}
3535

36+
<!-- Global site tag (gtag.js) - Google Analytics -->
37+
<scriptasyncsrc="https://www.googletagmanager.com/gtag/js?id={{site.ga_tracking_code}}"></script>
3638
<script>
37-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
38-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*newDate();a=s.createElement(o),
39-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
40-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
41-
ga('create','{{site.ga_tracking_code}}','getbootstrap.com');
42-
ga('send','pageview');
39+
window.dataLayer=window.dataLayer||[];
40+
functiongtag(){dataLayer.push(arguments);}
41+
gtag('js',newDate());
42+
43+
gtag('config','{{site.ga_tracking_code}}');
4344
</script>
4445
<!--
4546
url: {{ site.url }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp