| java.lang.Object org.ofbiz.marketing.tracking.TrackingCodeEvents
TrackingCodeEvents | public class TrackingCodeEvents (Code) | | Events used for maintaining TrackingCode related information
author: David E. Jones version: $Revision: 1.2 $ since: 2.0 |
checkPartnerTrackingCodeUrlParam | public static String checkPartnerTrackingCodeUrlParam(HttpServletRequest request, HttpServletResponse response)(Code) | | If TrackingCode monitoring is desired this event should be added to the list
of events that run on every request. This event looks for the parameter
ptc and handles the value as a Partner Managed Tracking Code.
If the specified trackingCodeId exists then it is used as is, otherwise a new one
is created with the ptc value as the trackingCodeId. The values for the fields of
the new TrackingCode can come from one of two places: if a dtc parameter
is included the value will be used to lookup a TrackingCode with default values,
otherwise the default trackingCodeId will be looked up in the partner.trackingCodeId.default
in the general.properties file. If that is still not found just use an empty TrackingCode.
|
checkTrackingCodeCookies | public static String checkTrackingCodeCookies(HttpServletRequest request, HttpServletResponse response)(Code) | | If attaching TrackingCode Cookies to the visit is desired this event should be added to the list
of events that run on the first hit in a visit.
|
checkTrackingCodeUrlParam | public static String checkTrackingCodeUrlParam(HttpServletRequest request, HttpServletResponse response)(Code) | | If TrackingCode monitoring is desired this event should be added to the list
of events that run on every request. This event looks for the parameter
autoTrackingCode or a shortened version: atc .
|
makeTrackingCodeOrders | public static List makeTrackingCodeOrders(HttpServletRequest request)(Code) | | Makes a list of TrackingCodeOrder entities to be attached to the current order; called by the createOrder event; the values in the returned List will not have the orderId set
|
|
|