Skip to content

Commit

Permalink
flag introduced in order to disable tracking for a specific resource
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Apr 23, 2013
1 parent 614daf7 commit a130591
Showing 1 changed file with 17 additions and 0 deletions.
Expand Up @@ -13,6 +13,7 @@ public class TrackingInformationV1 {
private String pageType;
private String requestAction;
private HashMap<String, String> hm = new HashMap();
private boolean doNotTrack = false;

/**
* Get tags
Expand Down Expand Up @@ -71,4 +72,20 @@ public HashMap<String, String> getCustomFields() {
public void addCustomField(String key, String value) {
hm.put(key, value);;
}

/**
* Check whether resource associated with this tracking information should be tracked
* @return true when resource associated should not be tracked, false otherwise
*/
public boolean doNotTrack() {
return doNotTrack;
}

/**
* Set flag whether resource associated with this tracking information should not be tracked
* @param doNotTrack When set to true, then resource associated should not be tracked
*/
public void setDoNotTrack(boolean doNotTrack) {
this.doNotTrack = doNotTrack;
}
}

0 comments on commit a130591

Please sign in to comment.