Unfortunately, the nature of how redirects work, the only solution is to get your developers to forward those values through to the page that ends up being tracked. (like both @Krishna_Musku and @igupta said for their implementations)
If the redirection is server side, your scripts won't even attempt to load (the actual page won't even start to trigger for the user), if the redirect is client side, it still has to be run ASAP to prevent usability/experience issues, and thus your scripts will never have a chance to run / finish before being sent to the new page.