Hi i need to do if Statement for pathname. That's how i trying to do this but it's doesn't work.
if (pathname == "/") {
category = 'home';
pagetype = 'homepage';
}
If pathname is like that the script should show category : home
and pagetype : homepage
.
Thanks for help