Save information to GA from cookie value

The cookie will initially be used on the search results page but in the
future could be used for other things also.

The pull request for the search result cookie is here: https://github.com/alphagov/frontend/pull/535/