add optional support for google analytics.