Google Analytics acc. to German privacy policy

Hi there,
I need to add two code snippets to your plugin Google Analytics + in order to comply with the German privacy policy.
There is the opt out code which I have to add before the Google code and the anonymizeIP code which goes between the "ga" codes.
Is there an easy way to do this?
Thanks.
Daniel