Browse Source

Added referrer tracking for downloads.

master
Teknikode 6 years ago
parent
commit
4eb1c4c43e
  1. 4
      Teknik/Helpers/Tracking.cs

4
Teknik/Helpers/Tracking.cs

@ -98,6 +98,10 @@ namespace Teknik.Helpers @@ -98,6 +98,10 @@ namespace Teknik.Helpers
tracker.setIp(ipAddress);
tracker.setTokenAuth(config.PiwikConfig.TokenAuth);
// Get Referral
if (request.UrlReferrer != null)
tracker.setUrlReferrer(request.UrlReferrer.ToString());
tracker.doTrackAction(url, type);
}
}

Loading…
Cancel
Save