Adding custom user ID to Vanity's "track!" method

134 Views Asked by At

There's a Vanity metric that is tracked by a cronjob, long after the user has left the website.

How should I pass the user ID to the "track!" method to ensure that the conversion is handled properly?

1

There are 1 best solutions below

2
On BEST ANSWER

You can pass an identity option to the track! method, as the documentation shows:

track!(:click, :identity => 'user_id')