Wrapped analytics object creation in script tags