Skip to main content

Sending Knak Assets from HubSpot

Set up Knak emails and landing pages so they render correctly when you send them from HubSpot.

Overview

When you sync a Knak email or landing page to HubSpot, your asset must include specific HubL tags. HubL (HubSpot Markup Language) is HubSpot's template language. It allows HubSpot to add required content such as unsubscribe links or company information.

If any required HubL tags are missing, HubSpot displays an error when you try to publish or send your asset.


Required HubL Tags

Landing Pages

Your landing page must include the following HubL tags:

  • {{standard_footer_includes}}

  • {{standard_header_includes}}

Emails

Your email must include the following HubL tags to meet CAN-SPAM requirements.

  • {{unsubscribe_link}} or {{unsubscribe_link_all}} (include at least one)

  • {{unsubscribe_anchor}}

  • {{site_settings.company_name}}

  • {{site_settings.company_street_address_1}}

  • {{site_settings.company_city}}

  • {{site_settings.company_state}}

  • {{site_settings.company_zip}}

Important: Removing any required HubL tags may prevent you from sending emails from HubSpot.


Set Up a Reusable HubSpot Footer in Knak

Create a reusable footer module that contains all required HubL tags. This helps ensure every email meets HubSpot's requirements.

Create the Footer Module

  1. In Knak, create a new Footer module.

  2. Give the module a descriptive name, such as HubSpot Required Footer.

  3. Save the new module.

Add the Required HubL Tags

  1. Open your new footer module.

  2. Add a Text component to the module.

  3. Paste all required HubL tags into the text component.

    New footer module named "HubSpot Required Footer" in Knak.

Add the Unsubscribe Links

Create two text links in the same footer module.

  1. Add the unsubscribe text to your footer.

  2. Select the text.

  3. Add a link.

  4. Enter the appropriate HubL tag as the Link URL.

    • Unsubscribe from all emails: {{unsubscribe_link_all}}

      Link settings showing a HubL unsubscribe tag entered as the link URL in Knak.
    • Update email preferences: {{unsubscribe_link}}

      Link settings showing a HubL email preferences tag entered as the link URL in Knak.

Tip: If you use these HubL tags often, consider creating them as merge tags. You can then insert them as Special Links instead of copying and pasting the HubL tags each time.

For instructions, see No Code and Multi-Map Merge Tags.


Sync Your Email or Landing Page to HubSpot

  1. In the Knak Builder, click Actions.

  2. Click Sync.

    Actions menu in the Knak Builder with the Sync option selected.
  3. Select your HubSpot integration.

  4. (Optional) Rename your asset.

  5. (Optional) Enter a Template Folder Path.

    HubSpot sync dialog showing the asset name and Template Folder Path fields.

Using a Template Folder Path (Optional)

By default, Knak saves your HTML assets in the Knak folder within HubSpot's Design Manager.

You can organize your assets into subfolders by entering a folder path before syncing.

Template Folder Path

Result

Knak Subfolder

Creates Knak → Knak Subfolder

Another Folder/Knak Subfolder

Creates Knak → Another Folder → Knak Subfolder

Troubleshooting:

If you're syncing to HubSpot and don't see the Template Folder Path field, your account may be using a different sync experience. Contact Knak Support if you need to organize synced assets into custom folders.


Find Your Synced Assets in HubSpot

After syncing, you can find your assets in different areas of HubSpot.

Emails

Synced emails appear in MarketingEmails.

HubSpot Marketing > Emails page displaying a synced Knak email.

Landing Pages

Synced landing pages appear in ContentLanding Pages.

HubSpot Content > Landing Pages page displaying a synced Knak landing page.

HTML Templates

The HTML version of every synced email and landing page appears in ContentDesign Manager.

HubSpot Design Manager showing synced Knak HTML templates.

Preview Text Behavior

Knak inserts preview text directly into your email HTML. The text remains hidden until an email client displays it.

Because of this behavior, HubSpot does not show preview text in the email Settings page.

HubSpot showing synced Knak HTML settings.

To Verify Your Preview Text:

  1. Send yourself a test email.

  2. Open the email in your inbox.

  3. Confirm the preview text appears as expected.

    Email inbox showing preview text generated from a Knak email.

Need more help? Contact support via live chat within Knak using the chat bubble in the bottom right corner or email support@knak.com.

Did this answer your question?