You can use utm tags. suppose your url is www.publicityport.com then your tagged url will be www.publicityport.com/?utm_medium=<medium>&utm_source=<source>&utm_campaign=<campaign name>
here <medium> is the medium through which you are going to share your link (e.x.: email, description, comment)
<source> can be the domain / website name where you shared your url (e.x.: google, meetup, linkedin)
<campaign> this can be the name of the current campaign
NOTE: all these three attributes are independent and not compulsory
Hope this helps!