support environment variable config of Analytics

[#68132600]