Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
[bug 946697] Force HTTPS for analytics.
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed May 28, 2014
1 parent ec40d5a commit 27ed9d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
5 changes: 1 addition & 4 deletions mozillians/static/mozillians/js/google-analytics.js
Expand Up @@ -13,10 +13,7 @@ if (_gaAccountCode) {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;

var prefix = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www');
ga.src = prefix + '.google-analytics.com/ga.js';

ga.src = 'https://ssl.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
Expand Down
24 changes: 0 additions & 24 deletions mozillians/templates/includes/google_analytics.html

This file was deleted.

0 comments on commit 27ed9d2

Please sign in to comment.