Passing external variables to Ethnio

Let's say you'd like to track where the responses came from in an easy way that let's you filter and target different groups. Or maybe you want to only show an Ethnio intercept to certain types of web or app users. You can take any data your system collects, and share that with Ethnio to either target or store responses. Segment, Google Analytics, internal tools - anything your engineers have access to share. You can do that by creating a question under Screeners >> Questions with the type "hidden external variable," or by going to Targeting >> Custom Targeting Filter.

See the screen shot below for how it would look with this example. We use standard suffix syntax so you can work with your developers to pass the suffix to the JavaScript like  src="// or the links you would send out would be That "ref" or "guid" part is up to you to define.

Please note, if you're creating a targeting filter to only show your JavaScript-based screener to certain customers, for example, you can do this variable setup in Targeting. But if you're using a variable with your Direct Link screener, to track campaigns, then you do need to setup a hidden variable question. 


More Detail

When someone requests either a screener via JavaScript or a direct link with an additional parameter, as set in field ‘Variable name as is in URL’ with some value, for example:, ref - is variable name, and 11 - value.

Then ethnio will see if the value for such a variable name is listed in answers list for hidden question. If ethnio finds an answer with that name (that's the left part of each answer pair) equal to the value, which is again in this case 11, it will get the associated value for it from the right side of the list. Confusing, we know. Basically it tries to match the parameter to the value. So then this answer will be sent as regular predefined answer and you  will see it in recruits list as one of answers.

Btw, there's one variable name that will break our system, and that is "id" so you can't have id=id. Guess it's recursive or something.

Passing Variables Without Labels

If ethnio doesn't find an answer with the same value it will not translate it and will display it as is under recruits. So if we got the request but the question has no other_value5 answer predefined, then in the recruits list, you'll just see it as other_value5. It makes predefined answers not obligatory so you can assign unique IDs from your database to ethnio responses if you'd like.

Sending a Variable to a Third Party Tool

If you pass something like Visitor ID along to your ethnio screener, and then you'd like to also append that to the URL you send to a tool like Surveymonkey, you can do that! Just check this little box under logic. The syntax will be the same as you set under questions - so if you have it set to "" that means we'll send it as" Of course this means you have to be using logic.


Still need help? Contact Us Contact Us