Skip to content

Commit

Permalink
Remove remnants of google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
m52go committed Aug 13, 2020
1 parent dba5c87 commit 288eef8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions js/scripts.js
Expand Up @@ -55,10 +55,6 @@ $( document ).ready( function() {
}
});

$( '.dl-win64, .dl-mac, .dl-deb64, .dl-rpm64' ).on( 'click', function() {
sendAnalytic( $(this).attr('class').split('-').pop().split(" ").shift() );
});

//change dom to show downloads for the specific os
function showOSDownloads( os ) {
$( '.dl-' + os ).addClass( 'selected' );
Expand All @@ -72,19 +68,11 @@ $( document ).ready( function() {
downloadLink = downloadLink.replace( /<site_url_placeholder>/g, siteURL );
} else {
downloadLink = downloadLink.replace( /<bisq_version_placeholder>/g, bisqVersion );
sendAnalytic( osName );
}
location.href = downloadLink;
return;
}

//add virtual pageview and event tracking for download attempts
function sendAnalytic( platform ) {
ga( 'send', 'pageview', location.pathname + 'release' );
ga( 'send', 'event', 'Release Build', 'download', platform );
return;
}

//How to get started
$('.step').on({
mouseenter: function () {
Expand Down

0 comments on commit 288eef8

Please sign in to comment.