Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add document.referrer to statsig custom #4509

Merged
merged 4 commits into from
Jun 13, 2024
Merged

Conversation

haileyok
Copy link
Contributor

Why

Want to add referrer to statsig events. We currently have refUrl, but that requires a URL parameter that doesn't get set outside of our embeds.

How

On web, let's add the value of document.referrer to the statsig session custom object.

Test Plan

I modified a link on google to direct me to http://localhost:19006 with a console log inside of statsig.tsx.

Screenshot 2024-06-13 at 12 06 38 PM

dont include referrer if hostname is bsky.app

save

add `document.referrer` to statsig custom
Copy link

render bot commented Jun 13, 2024

Copy link

Old size New size Diff
7.41 MB 7.41 MB 7 B (0.00%)

@gaearon gaearon merged commit d9066a6 into main Jun 13, 2024
6 checks passed
@haileyok haileyok deleted the hailey/add-referrer-statsig branch September 2, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants