One of the cookies that GA Connector script creates (gaconnector_pages_visited_list, and occasionally gaconnector_all_traffic_sources) can sometimes get too big if the user visited too many pages.
On some servers, it results in errors like:
- Size of a request header field exceeds server limit
- 400 Bad Request
- Or similar
To fix this issue, you just need to add some code that removes this cookie:
1 2 3 4 5 |
$(document).ready(function() { gaconnector.setCallback(function(fields) { document.cookie = "gaconnector_pages_visited_list=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=yourdomain.com;path=/"; }); }); |
Just make sure to replace “yourdomain.com” with your top-level domain name.