change analytics code to global one.
Support JuNii2 3.0