-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to set user on javascript #27
Comments
There's no way to do this right now, but happy to accept a PR (will need to get it added to Ahoy Ruby project as well). Maybe something like: ahoy.setUserId(1); |
Working on it |
I'd also be really interested in this feature - @gknedo looking forward to seeing the result!!! |
@nabilfreeman WIP, working o ruby gem now. |
Is this available? |
Still interested too... lol. Prepare yourself for the following crime against humanity... I wrote a Lambda that checks the Ahoy tables every 30 min and copies (This is because we don't run rails but still use Ahoy separately from our Node stack) |
This was my hacky solution using the ruby gem. def track_event(data)
if data[:properties]["shop_id"]
data[:shop_id] = data[:properties]["shop_id"]
data[:properties].delete("shop_id")
end
super(data)
end I set the user_id (or shop id in my case) as a property, then i listen track_event, and set the shop if if there is a shop id property |
If the API ins't running on the same server i couldn't found a way to track the user of the action
The text was updated successfully, but these errors were encountered: