Skip to content

Commit

Permalink
fix: missing user id in ga4 forwarder plugin (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyang1520 authored Jan 15, 2025
1 parent 8a10f89 commit e1f2da7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const gaEventsForwarderPlugin = ({ measurementIds = [] }: Options = {}):
// });
if (userId !== lastSeenGAUserId) {
// 2a. Set current event's user ID as Amplitude SDK's current user ID.
amplitude.setUserId(event.user_id);
amplitude.setUserId(userId);
// 2b. Update last seen GA user ID to be used on the next iteration.
lastSeenGAUserId = userId;
}
Expand Down

0 comments on commit e1f2da7

Please sign in to comment.