-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
forward visitor info for plausible (#287)
Fixes issue with unique visitors not being counted by forwarded the client's IP address and user agent in the plausible request to `/api/event` Tested on https://dev-plausible-test.cryoet.dev.si.czi.technology/ and opened the website on 3 different devices (laptop, home computer, and phone on LTE) <img width="720" alt="image" src="https://github.com/chanzuckerberg/cryoet-data-portal/assets/2176050/91cce66f-5aaa-46c2-8623-ef9cb35b5627">
- Loading branch information
1 parent
a715b42
commit cf33352
Showing
3 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { AppLoadContext } from '@remix-run/server-runtime' | ||
|
||
export interface ServerContext extends AppLoadContext { | ||
clientIp: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters