CodeStyle: use JSON_THROW_ON_ERROR with json_encode()
Move analytics settings to the module settings