Search code examples
javascriptajaxcookiesbloggervisitor-pattern

Is it possible to determine the gender of visitor of my blogger.com blog?


I would like to show slightly different content to male and female visitors, so I would like to know if there is a way to determine the gender of the visitor by JavaScript or any other method eg. an AJAX call from JavaScript to an external server which provide a backend to access the GData APIs with Python / Ruby, or simply accessing the cookie information. For example on YouTube there is a classification of the viewership by gender, so I think that Google services can determine the gender somehow, assuming that the visitor is logged in to his / her Google account.


Solution

  • I think that Google services can determine the gender somehow, assuming that the visitor is logged in to his / her Google account.

    Its possible for google because they have the cookie set in the browser and that cookie belong to a user who has entered the gender while creating a account (Gender is mandatory while creating gmail account). So its as simple as they go fetch the data from their database for the user gender.

    If you have to use their API's to get the data you must atleast have their emailID and also your site must be google authentication enabled. Else its not possible.