Project

General

Profile

« Previous | Next » 

Revision 60280

[Library|Trunk]

Piwik: download give the current url instead of the blob url. Remove url parameter from trackDownload()

Metrics: add usage counts link in the logo

View differences:

piwik.service.ts
25 25

  
26 26
      }
27 27
    }
28
    trackDownload (properties:EnvProperties, downloadURL, siteId = null):any {
28
    trackDownload (properties:EnvProperties, siteId = null):any {
29 29
      var ua = this.getUserAgent();
30 30
      var referrer = this.getReferrer();
31
      var url = properties.piwikBaseUrl+((siteId!=null)?siteId:properties.piwikSiteId)+"&rec=1&url="+StringUtils.URIEncode(downloadURL)+"&download="+StringUtils.URIEncode(downloadURL)+
31
      var url = properties.piwikBaseUrl+((siteId!=null)?siteId:properties.piwikSiteId)+"&rec=1&url="+StringUtils.URIEncode(location.href)+"&download="+StringUtils.URIEncode(location.href)+
32
        "&action_name="+StringUtils.URIEncode("Download titleeee!!!!")+
32 33
      ((ua != null && ua.length > 0)?('&ua='+StringUtils.URIEncode(ua)):'')+
33 34
      ((referrer != null && referrer.length > 0)?('&urlref='+StringUtils.URIEncode(referrer)):'');
34 35
      //console.log("Piwik - trackDownload: "+url);

Also available in: Unified diff