Yes, it should work fine however please make sure to add the correct domain to setDomains
and also make sure to set the cookie domain -
_paq.push(['setCookieDomain', '*.example.com']);
This is basically the value which you’ve entered here -
Have a great day!