Skip to content

Commit

Permalink
add roomName to OpenReplay
Browse files Browse the repository at this point in the history
  • Loading branch information
nmpereira committed Sep 27, 2023
1 parent 35e8e1e commit 1cacfcf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ModalContext from "./components/Modal/ModalContext";
import UsernameContext from "./components/Username/UsernameContext";
import ValidRoom from "./components/Room/ValidRoom";
import DefaultRoom from "./components/DefaultRoom/DefaultRoom";
import { OPENREPLAY_KEY } from "../common/common";
import { OPENREPLAY_KEY, roomName } from "../common/common";

const tracker = new Tracker({
projectKey: OPENREPLAY_KEY,
Expand All @@ -34,9 +34,14 @@ const App = (): JSX.Element => {
);

useEffect(() => {
tracker.start();
tracker.start({
userID: userName,
metadata: {
roomName,
},
});
}, []);
tracker.setUserID(userName);

const onGlobalUsers = ({
globalUsersCount,
}: {
Expand Down

0 comments on commit 1cacfcf

Please sign in to comment.