Browse Source

Added referrer tracking for downloads.

tags/2.0.3
Teknikode 4 years ago
parent
commit
4eb1c4c43e
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Teknik/Helpers/Tracking.cs

+ 4
- 0
Teknik/Helpers/Tracking.cs View File

@@ -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