Added additional checks to the entity name and referrer to avoid possible bugs with mongo special characters.
Added additional checks to the entity name and referrer to avoid possible bugs with mongo special characters.

Webiny/AnalyticsDb