debian-mirror-gitlab/app/views/layouts/_google_analytics.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
498 B
Text
Raw Normal View History

2021-02-22 17:27:13 +05:30
= javascript_tag do
2019-10-12 21:52:04 +05:30
:plain
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '#{extra_config.google_analytics_id}']);
_gaq.push(['_trackPageview']);
2014-09-02 18:07:02 +05:30
2019-10-12 21:52:04 +05:30
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();