Unsubscribe Link

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.

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:

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.

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.

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:

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.

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.