snowplow: fixed bug where analytics was treated as a global variable