Add getAnalytics helper

pull/21833/head
James Salter 2021-07-21 08:42:29 +01:00
parent 4b0cb409a0
commit b5564a0de0
1 changed files with 4 additions and 0 deletions

View File

@ -106,3 +106,7 @@ export class PosthogAnalytics {
this.trackPseudonymousEvent(eventName, updatedProperties);
}
}
export default function getAnalytics() {
return PosthogAnalytics.instance();
}