Check EnableAnalytics in StoreAnalytics()

Adds `EnableAnalytics` check back in.