upgrade analytics to universal

A re-implementation of https://github.com/dimagi/Vellum/pull/222 for the new Vellum.

@millerdev