Mailchimp Sync - User Registration Group

I have multiple pages where users could register on my site and I would like to be able to sync my users with different groups when they register. Meaning, if the user registers on page A, they should go to group A. If a user registers on page B, they should go to Group B. All groups are in the same list.

Please let me know if there is a way to do this.

Thanks,
Judah