onCreateUser() is a server only method and can only be called once.
My two questions are:
What if a package wants to make use of
onCreateUser()? It can’t because if the app also uses it, one of the
onCreateUser()s won’t be called. Is there another way to do something once a user signs up? I tried using the
Meteor.users.before.insert..., but that didn’t work.
Is there a simple way to tell on the client if a user has just signed up? I’d like to have an
onCreateUser()event on the client too. The reason is that I’d like to send a sign-up event to google analytics on a successful signup.