That is a very nice illustration in amazon link above. You will note that the antenna connections on the cards are different for m.2 and minipcie.
Also key here is if you don't have the slot cover with the 2 holes to mount the antenna you are going to need that. If you need it you need to look for antenna kit that also has that part it likely is going to be expensive to buy a tiny strip of metal seperately