Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can let onpage clicks and conversions be called in Preview Mode using internal preview cookie which can be manually set before testing and should be removed afterwards. All tracking requests having this cookie set are treaded as called in Preview Mode.

Preview response with cookie looks different because the preview Json object cannot be sent directly in response body, which is always the one pixel image both on clicks and conversions. The preview Json object is transmitted in the custom http header x-preview-response, which can be found in http log of the browser.

Example:
x-preview-response: { "params" : { "bsk" : "{"pid":"X2HZA9W","prn":"Matratzenschoner weiss","pri":"22.64","qty":"1","trc":"MP"}" , "cid" : "B-R4D-ARF-YXY" , "csi" : "4fa728c5-fc92-46d4-be25" , "csn" : "true" , "ctg" : "NewCustomerVoucher" , "inv" : "31.94" , "orc" : "EUR" , "orv" : "22.64" , "pmt" : "paypal" , "sid" : "checkout" , "trc" : "basket" , "typ" : "f" , "uv1" : "4fa728c5-fc92-46d4-be25-7cfd72c36ca6"} , "real_request_type" : "ConversionEvent" , "request_subtype" : "Multi" , "response_content" : "<!DOCTYPE html><html><head><title></title><meta name="content-type" content="text/html; charset=UTF-8"></head><body></body></html>" , "error" : { "code" : 91 , "reason" : "UnknownConversionTarget" , "message" : "unknown ctg <NewCustomerVoucher>"} , "tracking_category" : "basket"}

To set the preview cookie call the following URL:

...