Skip to content

Commit 0364786

Browse files
committed
Update for new hosting
No longer relying on Cloudflare apps.
1 parent 2ee6dcd commit 0364786

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ owner:
3333
facebook: #username
3434
google:
3535
plus: #username
36-
analytics:
36+
analytics: UA-85008990-1
3737
verify:
3838
ad-client:
3939
ad-slot:

_includes/_scripts.html

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,16 @@
88
<script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
99
<script src="{{ site.url }}/assets/js/scripts.min.js"></script>
1010
{% if site.owner.google.analytics %}
11-
<!-- Asynchronous Google Analytics snippet -->
1211
<script>
13-
var _gaq = _gaq || [];
14-
var pluginUrl =
15-
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
16-
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
17-
_gaq.push(['_setAccount', '{{ site.owner.google.analytics }}']);
18-
_gaq.push(['_trackPageview']);
19-
20-
(function() {
21-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
22-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
23-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
24-
})();
25-
</script>
12+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
13+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
14+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
15+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
2616

17+
ga('create', '{{ site.owner.google.analytics }}', 'auto');
18+
ga('send', 'pageview');
2719

20+
</script>
2821
{% endif %}
2922
{% if page.comments %}
3023
{% include _disqus_comments.html %}

0 commit comments

Comments
 (0)