Custom Variable not working in piwik

I have set a custom variables like this . Buti didn’t get any result in dashboard and any registered custom variable

_paq.push([“setCustomVariable”, 1, “test”, “test”, “visit”]);
_paq.push([‘setCustomVariable’, 2,“Gender”,“Male”,“visit”]);

Please give me a guide how can i set a custom variable that will work .

Thank you

There’s a tutorial posted in the blog, and the documentation about it.