diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-11-08 06:09:15 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-11-08 06:09:15 +0100 |
commit | 8fca4ca971ebb0116de0f5af67f79dad4f524ec2 (patch) | |
tree | 9bbbddada0c7811c8b54d05440b16f1ee2b23af4 /extensions/BMO/template/en | |
parent | 40f5156e2e047efb2d863181ae7afb02c460d313 (diff) | |
download | bugzilla-8fca4ca971ebb0116de0f5af67f79dad4f524ec2.tar.gz bugzilla-8fca4ca971ebb0116de0f5af67f79dad4f524ec2.tar.xz |
Bug 809747: change from webtrends to google analytics
Diffstat (limited to 'extensions/BMO/template/en')
-rw-r--r-- | extensions/BMO/template/en/default/hook/global/footer-end.html.tmpl | 17 | ||||
-rw-r--r-- | extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl | 13 |
2 files changed, 13 insertions, 17 deletions
diff --git a/extensions/BMO/template/en/default/hook/global/footer-end.html.tmpl b/extensions/BMO/template/en/default/hook/global/footer-end.html.tmpl deleted file mode 100644 index 45fe0b1a4..000000000 --- a/extensions/BMO/template/en/default/hook/global/footer-end.html.tmpl +++ /dev/null @@ -1,17 +0,0 @@ -[% IF urlbase == 'https://bugzilla.mozilla.org/' %] -<script type="text/javascript" src="[% 'extensions/BMO/web/js/webtrends.js' FILTER mtime %]"></script> -<script type="text/javascript"> -//<![CDATA[ -var _tag=new WebTrends({"dcsid":"dcsqjgr30wz5bd6zokoukhwj3_7z7z","rate":100,"fpcdom":"mozilla.org"}); -_tag.dcsGetId(); -//]]> -</script> -<script> -//<![CDATA[ -_tag.dcsCollect(); -//]]> -</script> -<noscript> -<div><img alt="DCSIMG" id="DCSIMG" width="1" height="1" src="//statse.webtrendslive.com/dcsqjgr30wz5bd6zokoukhwj3_7z7z/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=8.6.2"/></div> -</noscript> -[% END %] diff --git a/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl b/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl index 88ad47583..e94b60bb4 100644 --- a/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl +++ b/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl @@ -58,3 +58,16 @@ body { [% END %] [% END %] [% END %] + +[% IF urlbase == 'https://bugzilla.mozilla.org/' %] + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-36116321-3']); + _gaq.push(['_trackPageview']); + (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); + })(); + </script> +[% END %] |