No hotels that I’m aware of will give you loyalty points unless you book directly. You can also get more loyalty points by using a cobranded hotel card. But only by booking directly.
Don't get them if you book it through booking.com or similar though (although hotels.com at least used to give you a 10% cashback as a credit for free nights, which is handy when you can't stay in one chain)
source: staying now in the hotel and done it ;)