Answer the question
In order to leave comments, you need to log in
How to show different versions of the site to male and female audiences?
At the interview, they asked - "How to show different versions of the site to male and female audiences?". And I cheto blunted, really how? That is, determine by browser, by region - approx. And how to determine gender when opening a site? Does it need to somehow interact with Google Analytics scripts?
I'm dumb? Or the one who interviewed me? After all, such a division carries a monstrous error. If a man sees the female version of the site, he will leave and vice versa (let's say a husband and wife are sitting on the computer, brother and sister, etc.). If it is still useful - then tell me where it is used?
R.S. Googling turned up nothing.
Answer the question
In order to leave comments, you need to log in
it's easier =)
if (user.config.sex = MALE) {
...
} elseif (user.config.sex = FEMALE) {
...
} else {
...
}
Perhaps at the interview they wanted to know how you would get out of this situation? Are you able to think or confidently say no. These are common HR tests.
No conditions - nothing.
The conditions have already been listed above.
You can use a trigger. For example, ask the question "Do you agree that men are always the best cooks?", and if the user clicks "no", most likely it is a woman. Or, a good option, more neutral - take a light green color and see the answer. Answer "light green" - a woman, answer "green" - a man. Until the answer to the site is not allowed. Everything is simple!
Most likely, they wanted to test you at the interview about how you are with logical thinking and reasoning. If they asked me (I most likely answered this way): I would make 2 versions of the site, taking into account the psychological characteristics of a man and a woman (color, arrangement of elements, etc.). When going to the site, the first time I would open the male one, taking into account the fact that you can switch to a new version of the site (female). I would do this several times and remember what the user wants. And then, for n+1 iterations, he opened the version of the site that he (the user) switched to quite often, but at the same time notified him that there was another version of the site.
UPD Draconian correctly writes about registration. You can use the information from there as an option. Either by name and surname, or indicate the gender of the person.
100% - nothing. Especially when several people use one computer.
But Google, for example, just keeps track of where you rummaged and thereby calculates your profile. If your computer is individual, then it works.
If the user has the ability to switch between versions - depending on the subject of the site, first show the version that should attract more of a particular audience, if the user has switched - show the version he has chosen.
Plus, if the site has a mandatory registration, show the version for the gender that was specified, etc. There are a lot of options, recruiters, as a rule, look at how you talk.
Logically, there is a generic version that is displayed if the site visitor's gender is not specified.
After a person registers and indicates the gender in the profile, he will leave the website cookies with authorization. Based on them, the site will decide to display the gendered version.
Plus, in the settings, you can make a checkbox like "use gender-sensitive site design."
Of course, you can go into analytics, user analysis, attach sensors - but why?
In principle, linking to the same Google / Yandex analytics, as well as the api of social networks, even by name it’s quite easy to figure out who the cookies are set for and even tear out this very name, well, of course, if there is no trol troll, well, pop-up questions on the topic " what does a person have between their legs?
It was a test of the reactivity of thinking to an obvious question. Well, i.e. if you are a retard, then this question will baffle you to such an extent that you will go to Google and the Toaster in search of an answer. If you are not a brake, then you will laugh in the face of the questioner))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question