Fix Analytics, Jesus Christ, it's been broken all this time

master
Zequez 2016-04-02 12:24:19 -03:00 committed by Ezequiel Schwartzman
parent b485751feb
commit 182fbc78b4
1 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '#{Rails.configuration.ga_ua}', '#{Rails.configuration.ga_url}');
$(document).on('page:change', function(){
document.addEventListener('page:change', function(ev){
ga('send', 'pageview');
});