Add Mixpanel query parameter and cookie processing