# Unsubscribe Link

**URL:** <https://community.hubspot.com/t/unsubscribe-link/126901>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [February 26, 2025, 1:32pm UTC](https://community.hubspot.com/t/unsubscribe-link/126901 "2025-02-26T13:32:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BarLilos](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@BarLilos](https://community.hubspot.com/u/BarLilos)\
**Post date:** [February 26, 2025, 1:32pm UTC](https://community.hubspot.com/t/unsubscribe-link/126901/1 "2025-02-26T13:32:33Z")

</div>

I’m using a custom module for the footer appearing in all of the company mail templates, but I have yet to find out if it’s possible to change the global unsubsribe\_link and if so where should I look for the declaration of it. I didn’t find any configuration files for the custom module so I’m clearly lost.  
If someone went through the same trouble and knows what can I do, I’ll be more than helpful.

---

<div class="post-metadata">

**Author:** ![MichaelMa](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@MichaelMa](https://community.hubspot.com/u/MichaelMa)\
**Post date:** [February 26, 2025, 2:25pm UTC](https://community.hubspot.com/t/unsubscribe-link/126901/2 "2025-02-26T14:25:48Z")

</div>

Would you mind clarifying what you mean by “change” the link? Change the URL? Change the text? Change how it looks?

The link is a hubspot system generated URL tied to the contact.

There are a few options under Settings → Objects → Activities that apply globally:

 ![MichaelMa_0-1740579845189.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/9/a941de41fa66ece2499d5dc239c0644273cc38b3.png)

 ![MichaelMa_1-1740579859151.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/1/115022f7adacbb9c9bc45f6dddd8245b7b3809fc.png)

Other than that, everything else would likely be up to your email look and feel (modules and templates) and whatever custom code you have around the link.

---

<div class="post-metadata">

**Author:** ![BarLilos](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@BarLilos](https://community.hubspot.com/u/BarLilos)\
**Post date:** [February 26, 2025, 2:30pm UTC](https://community.hubspot.com/t/unsubscribe-link/126901/3 "2025-02-26T14:30:20Z")

</div>

Hi Michael, first of all thank you for your response. I’m talking about the global value for {{ unsubscribe\_link }}. I didn’t find a module file to change it or anywhere inside the object activities that you mentioned.

---

<div class="post-metadata">

**Author:** ![MichaelMa](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@MichaelMa](https://community.hubspot.com/u/MichaelMa)\
**Post date:** [February 26, 2025, 2:46pm UTC](https://community.hubspot.com/t/unsubscribe-link/126901/4 "2025-02-26T14:46:12Z")

</div>

URL for the unsubscribe link is generated by Hubspot and can’t really be modified.

{{ unsubscribe\_link }} (HubL variable code) generates the link. The text around it is whatever you have coded. You can see other variables here:

> **[HubL variables - HubSpot docs](https://developers.hubspot.com/docs/cms/reference/hubl/variables)**
>
> HubSpot templates can use a host of predefined variables that can be used to render useful website and email elements. This page is a reference listing of those variables.

The settings I mentioned is your Hubspot settings not the module settings. You can find that (presuming you have access) by clicking the gear icon in the top right of the screen, going to Objects on the left side panel and click Activities.

It’s not clear if you want trying to change the TEXT of the link or the link itself. You cannot change the link but you can likely change the text of the link (eg, change “Click here to unsubscribe”. Where that is, however, would be unique to your hub because we don’t know how you have things set up.

Places to look:

If you’re using the hubspot footer module in the email, you can edit the footer module and use the display: custom option to customize the footer text. You would likely save the modified email as a new template for you to reuse instead of constantly editing the footer for every send.

 ![MichaelMa_1-1740581136822.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/e/feb86757424da72303cbe97373030a1370723988.png)

If you’re using a custom module, you can likely find the code for the module in Design Manager (side bar Content → Design Manager). You would have to locate the file. If it’s from the Market Place, you might have to clone the module and use that instead (as you won’t have edit rights).

If you are using a custom Email Template then you would have to look into how that’s built.
