Skip to main content
All CollectionsFor Server Side
Server Side Cloudflare
Server Side Cloudflare
Updated over 6 months ago

This approach allows you flexibility in which type of cookies to use - control or project - allowing the hybrid server/client approach with the latest client-side tag with project cookies still facilitating conversion tracking - both usual and conversion package etc

Method: POST

Control request example:

{
"keyToken": "7a22df96f7da9201f8ec4456146b25074ca2012b3cce",
"domainKey": "2203373",
"ta": "ta_ss",
"inputCookies": "project",
"outputCookies": "project",
"_wm_referer": "http://bank.webtrends-optimize.com/corporate",
"s_mode": "staging"
}

Control request with cookies example:

{
"keyToken": "7a22df96f7da9201f8ec4456146b25074ca2012b3cce",
"domainKey": "2203373",
"ta": "ta_ss",
"inputCookies": "project",
"outputCookies": "project",
"_wm_referer": "http://bank.webtrends-optimize.com/corporate",
"s_mode": "staging",
"cookies": {
"_wt.project-2203373-ta_ss": {
"value": "1||2535725-2535732-2535733||true||IN||undefined||1715598067922||1715598063516",
"expires": "2024-08-11T14:14:19.746Z"
},
"_wt.mode-2203373": {
"timeout": 300000,
"type": "session",
"value": "WT3mCqTU3ScTOc~"
},
"_wt.user-2203373": {
"timeout": 7776000000,
"type": "persisted",
"value": "WT3WWWo0_4OmQBVdrMrtVuDg2NjFmPtQ3wMit6kaCe96fTrlDZ87tM8ZJIkl18Ua-NC8ijmMuVAHUES1DVv5Yn0bCJEE5IucnCG4IV7JEekgmWXMQSg7zyOzQnGBfQvm3XVVVr42Ie_w6RysHT77YFEk_sfEu1V1Dp4XrrSmQ~~"
}
}
}

Page view example:

{
"keyToken": "7a22df96f7da9201f8ec4456146b25074ca2012b3cce",
"domainKey": "2203373",
"ta": "ta_ss",
"inputCookies": "project",
"outputCookies": "project",
"_wm_referer": "http://bank.webtrends-optimize.com/corporate",
"s_mode": "staging",
"conversionPoint": "pageview",
"cookies": {
"_wt.project-2203373-ta_ss": {
"value": "1||2535725-2535732-2535733||true||IN||undefined||1715598067922||1715598063516",
"expires": "2024-08-14T12:43:58.768Z"
},
"_wt.mode-2203373": {
"timeout": 300000,
"type": "session",
"value": "WT3mCqTU3ScTOc~"
},
"_wt.user-2203373": {
"timeout": 7776000000,
"type": "persisted",
"value": "WT3wmqBel9RqGNsXVMjnMD7IHtp1Ia_VNEtiFPj6_wha2723vpNQOKMDQG9c5KweUf8U-rk_RvEBH_6C9HXINu6oCUShWR9qV1AnY7cpFVfQfs-9AXC0Kpa-1CnfRO0rWFAB8SBXhgfVPEMQiP2NgiRa5ACUB17u_hOqBNO0Q~~"
}
}
}

Conversion example:

{
"keyToken": "7a22df96f7da9201f8ec4456146b25074ca2012b3cce",
"domainKey": "2203373",
"ta": "ta_ss",
"inputCookies": "project",
"outputCookies": "project",
"_wm_referer": "http://bank.webtrends-optimize.com/corporate",
"s_mode": "staging",
"conversionPoint": "conv",
"cookies": {
"_wt.project-2203373-ta_ss": {
"value": "1||2535725-2535732-2535733||true||IN||undefined||1715598067922||1715598063516",
"expires": "2024-08-14T12:43:58.768Z"
},
"_wt.mode-2203373": {
"timeout": 300000,
"type": "session",
"value": "WT3mCqTU3ScTOc~"
},
"_wt.user-2203373": {
"timeout": 7776000000,
"type": "persisted",
"value": "WT3wmqBel9RqGNsXVMjnMD7IHtp1Ia_VNEtiFPj6_wha2723vpNQOKMDQG9c5KweUf8U-rk_RvEBH_6C9HXINu6oCUShWR9qV1AnY7cpFVfQfs-9AXC0Kpa-1CnfRO0rWFAB8SBXhgfVPEMQiP2NgiRa5ACUB17u_hOqBNO0Q~~"
}
}
}

Did this answer your question?