* VRFS-1533 - track in success path, not failure path of download GA info
This commit is contained in:
parent
1aef96b697
commit
d365054237
|
|
@ -79,11 +79,11 @@
|
|||
var href = clicked.attr('href');
|
||||
if(href != "#") {
|
||||
rest.userDownloadedClient().always(function() {
|
||||
$('body').append('<iframe class="downloading" src="' + clicked.attr('href') + '" style="display:none"/>')
|
||||
context.JK.GA.trackDownload(clicked.attr('data-platform'));
|
||||
$('body').append('<iframe class="downloading" src="' + clicked.attr('href') + '" style="display:none"/>')
|
||||
});
|
||||
}
|
||||
else {
|
||||
context.JK.GA.trackDownload(clicked.attr('data-platform'));
|
||||
// if there is no download available, apologize to the user
|
||||
alert("Sorry, this download is not currently available.");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue