I enabled settings in Google Analytics as follows
and added the below code to my website to capture Google Analytics
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-X"</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-XXXXXXXX-X');
</script>
But for some reason my report doesn't show the age & gender information. Could you please advise which step I missed out?
Socio-demographic information is based on a part of users, so especially if you have few daily visits you have to wait until you have acquired some data in the next days.