mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-26 01:53:13 +08:00
Fix analytics links
This commit is contained in:
parent
c4143a8930
commit
e465ed535a
1 changed files with 4 additions and 2 deletions
|
@ -3,8 +3,10 @@
|
|||
<script>
|
||||
window.trackDownloadLink = function(eventAction) {
|
||||
return function(event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
if (!ga || !ga.hasOwnProperty("loaded") || ga.loaded != true) {
|
||||
document.location = href;
|
||||
return;
|
||||
}
|
||||
var href = $(event.currentTarget).attr('href');
|
||||
ga('send',{
|
||||
'hitType': 'event',
|
||||
|
|
Loading…
Reference in a new issue