If i have a page called www.testsite.com and I link to that page using a querystring in the url, is it possible to attach that same querystring to all the outgoing links/traffic somehow?

For instance, say I link to that page like this www.testsite.com?parameter1=somevalue
And then, on that page I click a link to for instance google, and I would like the parameter to be passed so the url would be www.google.com?parameter1=somevalue.

I know how to do this manually, but is there someway it can be appended to the url automatically? Like catch the outgoing request before happening and add the parameter?

Thanks!

Eric