I am using the default Google Analytics widget in my nopCommerce installation. My question is around how best to pass the ID of a customer to Google Analytics as the USER_ID when they log on. The CustomerController's Login ActionResult fetches the customer at the moment they successfully log in, but I'm not sure how best to pass that customer's ID to the Analytics script, particularly since logging in can direct users to a variety of landing pages depending on their journey prior to logging in, so I can't simply add a parameter to the
return Redirect(returnUrl);
without changing every potential returnUrl path to expect a parameter.
Any help is appreciated, thanks in advance.