mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
User analytics: Use user email as Rudderstack id (#36788)
This commit is contained in:
parent
8c91b290ba
commit
421f5040ec
@ -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,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user