User analytics: Use user email as Rudderstack id (#36788)

This commit is contained in:
Dominik Prokop 2021-07-15 12:28:13 +02:00 committed by GitHub
parent 8c91b290ba
commit 421f5040ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ export class RudderstackBackend implements EchoBackend<PageviewEchoEvent, Rudder
(rds as any).load(options.writeKey, options.dataPlaneUrl); (rds as any).load(options.writeKey, options.dataPlaneUrl);
if (options.user) { if (options.user) {
(rds as any).identify(String(options.user.id), { (rds as any).identify(options.user.email, {
email: options.user.email, email: options.user.email,
orgId: options.user.orgId, orgId: options.user.orgId,
}); });