Allow specification of a tracking URL suffix to be added after the event name.
This commit is contained in:
@@ -330,7 +330,8 @@ public class Application
|
|||||||
public URL getTrackingURL (String event)
|
public URL getTrackingURL (String event)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return _trackingURL == null ? null : new URL(_trackingURL + event);
|
String suffix = _trackingURLSuffix == null ? "" : _trackingURLSuffix;
|
||||||
|
return _trackingURL == null ? null : new URL(_trackingURL + event + suffix);
|
||||||
} catch (MalformedURLException mue) {
|
} catch (MalformedURLException mue) {
|
||||||
Log.warning("Invalid tracking URL [path=" + _trackingURL + ", event=" + event +
|
Log.warning("Invalid tracking URL [path=" + _trackingURL + ", event=" + event +
|
||||||
", error=" + mue + "].");
|
", error=" + mue + "].");
|
||||||
@@ -472,6 +473,9 @@ public class Application
|
|||||||
_trackingCookieName = (String)cdata.get("tracking_cookie_name");
|
_trackingCookieName = (String)cdata.get("tracking_cookie_name");
|
||||||
_trackingCookieProperty = (String)cdata.get("tracking_cookie_property");
|
_trackingCookieProperty = (String)cdata.get("tracking_cookie_property");
|
||||||
|
|
||||||
|
// Some app may need an extra suffix added to the tracking URL
|
||||||
|
_trackingURLSuffix = (String)cdata.get("tracking_url_suffix");
|
||||||
|
|
||||||
// clear our arrays as we may be reinitializing
|
// clear our arrays as we may be reinitializing
|
||||||
_codes.clear();
|
_codes.clear();
|
||||||
_resources.clear();
|
_resources.clear();
|
||||||
@@ -1111,6 +1115,7 @@ public class Application
|
|||||||
protected ArrayIntSet _trackingPcts;
|
protected ArrayIntSet _trackingPcts;
|
||||||
protected String _trackingCookieName;
|
protected String _trackingCookieName;
|
||||||
protected String _trackingCookieProperty;
|
protected String _trackingCookieProperty;
|
||||||
|
protected String _trackingURLSuffix;
|
||||||
|
|
||||||
protected int _javaVersion;
|
protected int _javaVersion;
|
||||||
protected String _javaLocation;
|
protected String _javaLocation;
|
||||||
|
|||||||
Reference in New Issue
Block a user