Fix analytics directives

The docs indiciate you can use directives like 'analytics-category',
however the ifProperty check was incorrect and preventing them from
being used.