Class TrackingCodeEvents


  • public class TrackingCodeEvents
    extends java.lang.Object
    Events used for maintaining TrackingCode related information
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • TrackingCodeEvents

        public TrackingCodeEvents()
    • Method Detail

      • checkTrackingCodeUrlParam

        public static java.lang.String checkTrackingCodeUrlParam​(HttpServletRequest request,
                                                                 HttpServletResponse response)
        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.
      • checkPartnerTrackingCodeUrlParam

        public static java.lang.String checkPartnerTrackingCodeUrlParam​(HttpServletRequest request,
                                                                        HttpServletResponse response)
        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 java.lang.String checkTrackingCodeCookies​(HttpServletRequest request,
                                                                HttpServletResponse response)
        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.
      • removeAccesTrackingCodeCookie

        public static java.lang.String removeAccesTrackingCodeCookie​(HttpServletRequest request,
                                                                     HttpServletResponse response)
        Removes the ACCESS tracking code cookie
      • makeTrackingCodeOrders

        public static java.util.List<GenericValue> makeTrackingCodeOrders​(HttpServletRequest request)
        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