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

Surveys: Allow targeting by device type #24495

Closed
Phanatic opened this issue Aug 20, 2024 · 4 comments · Fixed by #28109
Closed

Surveys: Allow targeting by device type #24495

Phanatic opened this issue Aug 20, 2024 · 4 comments · Fixed by #28109
Labels
feature/experimentation Feature Tag: Experimentation feature/surveys

Comments

@Phanatic
Copy link
Contributor

Problem description

Customers would like to target their surveys by device type in the request.
Currently, we have a Latest Device Type person property which is asynchronous and doesn't always work since it uses the last URL visited by a person.

We need to introduce something like the URL targeting properties that we have right now.

@abigailbramble
Copy link
Contributor

@marandaneto
Copy link
Member

a workaround for now would be calling the surveys API manually when you are on the desired device type (renderSurvey)
https://github.com/PostHog/posthog-js/blob/50f08e979ff5daeed10c29cd22281c26a9e29e87/src/posthog-core.ts#L1262-L1265

@danielbachhuber
Copy link
Contributor

https://posthoghelp.zendesk.com/agent/tickets/21678 wants targeting by device type for no-code web experiments

@marandaneto
Copy link
Member

dupe here with more context #27347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/experimentation Feature Tag: Experimentation feature/surveys
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants