Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Debug logging from PiwikTracker

* Limit what's tracked
  • Loading branch information
kosarko authored and vidiecan committed Jul 9, 2018
1 parent a92e989 commit ad54db1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -49,6 +49,7 @@ protected void init()
public void trackPage(HttpServletRequest request, String pageName)
{

log.debug("Piwik tracks " + pageName);
String pageURL = getFullURL(request);
tracker.setPageUrl(pageURL);

Expand Down
Expand Up @@ -421,7 +421,7 @@ else if (name != null)
}
}

if(is_item_bitstream && ConfigurationManager.getBooleanProperty("lr", "lr.tracker.enabled")) {
if(is_item_bitstream && ConfigurationManager.getBooleanProperty("lr", "lr.tracker.enabled") && IOUtils.requestRangeContainsStart(request)) {
// Track the download for analytics platform
TrackerFactory.createInstance(TrackingSite.BITSTREAM).trackPage(request,"Bitstream Download / Single File");
}
Expand Down

0 comments on commit ad54db1

Please sign in to comment.