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

Bad Request

To fix this issue, you just need to add some code that removes this cookie:

Just make sure to replace “yourdomain.com” with your top-level domain name.