Also consider putting it towards the front of the vehicle not the back. It’s not required but if you’re heading up hill the flag is going to be more visible closer to the front of the vehicle.
On a previous vehicle I mounted my flag to the back of the roof rack before realizing that the front of the rack would be a bit more visible closer..