[SOLVED] Facebook adverts not showing in stats


#1

Hi, I run Facebook ads which link through to one of the sites that is running Piwik. 13 clicks were performed on the advert yesterday yet when I check Piwik there are not hits from Facebook. Why would this be please ?


#2

Hmmm, according to my Apache logs a 402 error is being thrown when the tracking code is called. Any ideas ?


#3

For anybody interested it was Suhosin getting in the way.


(vipsoft) #4

Can you elaborate? Is this something we can workaround or warn during installation?


#5

When piwik.php was being called with the long list of arguments; eg. idsite, rand plus the long referral url from FB the Suhosin was seeing that as a potential attack and throwing a 402 error. I resolved by extending the values for Suhosin

suhosin.cookie.max_array_depth = 256
suhosin.cookie.max_array_index_length = 256
suhosin.cookie.max_name_length = 256
suhosin.cookie.max_totalname_length = 256
suhosin.cookie.max_value_length = 16384
suhosin.cookie.max_vars = 256
suhosin.get.max_array_depth = 256
suhosin.get.max_array_index_length = 256
suhosin.get.max_name_length = 256
suhosin.get.max_totalname_length = 256
suhosin.get.max_value_length = 4096
suhosin.get.max_vars = 256
suhosin.post.max_array_depth = 256
suhosin.post.max_array_index_length = 256
suhosin.post.max_name_length = 256
suhosin.post.max_totalname_length = 256
suhosin.post.max_value_length = 524288
suhosin.post.max_vars = 16384
suhosin.request.max_array_depth = 256
suhosin.request.max_array_index_length = 256
suhosin.request.max_totalname_length = 256
suhosin.request.max_value_length = 100000
suhosin.request.max_vars = 16384
suhosin.request.max_varname_length = 256

(vipsoft) #6

Good to know. 1.2 adds more params.