Rather than passing in the entire request.env we're trying to filter the hash and submit only the needed params as such:
@env = {}
["HTTP_X_REQUESTED_WITH", "HTTP_X_FORWARDED_FOR", "REMOTE_ADDR", "mixpanel_events"].each do |key|
if env.has_key?(key)
@env[key] = env[key]
end
end
It seems as we may be filtering too many params as the referrer isn't being tracked properly. Any idea which params we should not be filtering out in order to get the referrer tracker properly?
Rather than passing in the entire request.env we're trying to filter the hash and submit only the needed params as such:
and instantiating as such:
It seems as we may be filtering too many params as the referrer isn't being tracked properly. Any idea which params we should not be filtering out in order to get the referrer tracker properly?