Ken_Chan_95249
Jan 07, 2010Nimbostratus
Add google analytics code to payload
Hi all,
I want to add the google analytics code to payload by irules and I have created the following ..
when HTTP_RESPONSE {
set clen [HTTP::header Content-Length]
HTTP::collect $clen
}
when HTTP_REQUEST_DATA {
set google_code " "
regsub -all "" [HTTP::payload] $google_code new_payload
HTTP::payload replace 0 $clen $new_payload
}
but it seems not working, does any one has any idea about that ? thank you in advance ..