Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to parse __utmz cookie

We use GA for tracking and part of the tracking involves storing the __utmz cookie value in our DB. I have a problem in understanding why is CF 10 not able to parse the __utmz cookie.

CF10 is not parsing or properly retrieving the value of __utmz cookie Or just about any cookie value that has an 'equal (=)' sign in it other than the CFGLOBALS.

Here is the screen shot of the issue (using CFDUMP of COOKIE scope) -

What it should look like -

Proper Google Analytic cookie read

What it is looking like -

Improper Google Analytic cookie read

Server Config: CF10, IIS 7.5, Win 2k8

like image 963
Sanjeev Avatar asked Nov 11 '22 20:11

Sanjeev


1 Answers

Ok! I found the way to mitigate this problem. By using the GetHttpRequestData() method.

<cfscript>    
    _cookie = GetHttpRequestData().headers.cookie;
</cfscript>

This will return an ; delimited list of cookie values. I used regEx to pick the __utmz value I needed.

like image 85
Sanjeev Avatar answered Nov 15 '22 11:11

Sanjeev