How I set AffiliateWP on sub domain?

I am providing services on my main domain, I want to setup my affiliate program with AffiliateWP plugin on my subdomain. User can generate affiliate links from my sub domain while I am providing services on main domain. Example https://my.elementor.com/affiliates/