Email

Links in emails or CTAs lead to an error page

Last updated: April 18, 2019

There are a few possible reasons why clicking the links in your HubSpot emails or clicking your CTAs lead to an error page. Some of them may require your web developer or IT department to reconfigure your web server settings and/or security plugins.  You can also opt turn off email click tracking as this may resolve the issue.

URL redirect

If you are linking to a page created in HubSpot with a redirect set up, ensure the Match the query string option is cleared for the redirect. This removes any query strings that may be affecting the redirect. Learn how to manage your HubSpot redirects.

URL length

To track clicks, HubSpot appends tracking information to the end of each URL in an email with email tracking enabled, and to the end of a URL used in a CTA.

If you copy a link from an already sent email or CTA, to be used a new email or CTA, the initial tracking information will be included, and the end link will have two sets of tracking information. This can cause the URL to be too long to open. Ensure you link to the final destination URL of your page.

Some security plugins can also set limits on URL length. For example, the Ultimate Security Checker installed in Wordpress will prevent links with more than 255 characters from functioning.

External system settings

If you are linking or redirecting to a non-HubSpot website, your web server may not be properly configured to handle additional tracking URL strings. If your system can be modified to allow for specific tracking parameters, you can add the following HubSpot email parameters: 

  • hsenc (email click tracking)
  • _hsmi (email click tracking)
  • hsCtaTracking (CTA tracking)
  • utm_medium
  • utm_source
  • utm_campaign

In addition to the tracking parameters above, your external system should be configured to allow additional hyphens to be added to the URL.