Button Tracking Instead of Link Tracking?

i'm trying to see here if i can track a button easier than i can track someone clicking a link. because if i can track someone clicking a specific button easier, then that will make my life a shit ton easier so i can track who joins a discord server from a site i'm working on, so i can see who joins from the site i made, to determine the site's value to that discord community specifically.

ok, so putting the link into a button does absolutely fucking nothing. ugh, oh well, off to another support article, or, no, i'll take a break from this for now. i'll work on this later. ciao.

update as of 5-29-2022: i'm trying this again, and am hopefully gonna get it to work, i'm trying to use Google Tag Manager to see who clicks that button and have it be noted in Google Analytics under events by having an event be triggered by someone clicking a link that goes to that page

i just checked This Youtube Video and tried it but nope, it failed. i'll pick this up again later