Changing a "thing" dependent on how user nagivated to page

We have a survey tool that can be viewed in both English and Welsh. The language selection is controlled by a drop down that respondents can change at any point during the survey.

What we have been asked to provide for our client is the ability for the survey to display in Welsh if the respondent comes to the survey from their Welsh language site, and English if they come from their English language site.

I have considered making separate URLs and using those, but I cannot have 2 slugs on the same survey (as far as I can tell)

I then looked at the possibility of triggering a custom state but i cannot work out how to make the source URL (external site) trigger the action

Ideally, we don’t want to make 2 completely separate surveys as that will separate the response data for the client.

Any suggestions would be greatly appreciated!

Hello, I believe you need a language detector, I’ve never used it, but it’s for testing.

That was super helpful and worked perfectly - thank you!

1 Like