Skip to content

Commit

Permalink
Adding plausible to web component login button (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
loiswells97 committed Dec 12, 2023
1 parent a1851ef commit 11c9cb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- HTML projects loading in web component (#789)
- Enabled modals in the web component (#802)
- Context menu styling in the web component (#819)
- Collect web component login data (#818)

## [0.20.0] - 2023-11-24

Expand Down
3 changes: 3 additions & 0 deletions src/components/Menus/Sidebar/DownloadPanel/DownloadPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export const DownloadPanel = () => {
const user = useSelector((state) => state.auth.user);

const handleLogIn = () => {
if (window.plausible) {
window.plausible("Login button");
}
document.dispatchEvent(logInEvent);
};

Expand Down

0 comments on commit 11c9cb8

Please sign in to comment.