Only load GA in production environment

Loads Google Analytics when `WP_ENV` is 'production'
Otherwise it passes `ga()` arguments as an array to `console.log()`

Also sets cookie domain to be auto configured.