Hey @Ankit_002 ,
As far as I understand it, uniqueCounter can only be the last variable being used in the template. Here is a post talking about this issue. Can you try removing $(domainname) from your template and just hardcoding a domain name for now to see if this works?
Thank you,
- Zach