Custom Macro Formatting Guidelines

When creating a Match and Activate audience, all columns/headers in the file will be available as macros in the audience.

Below are the file requirements when creating a Match & Activate Audience:

  • The file must contain headers
  • Header names must not contain “Connect_”
  • Header names must not contain any special characters or spaces - only letters and numbers
  • Header names must not exceed 24 characters
  • Header names must not be duplicated in the same file

Note: CUSTOM_URL is no longer a valid macro. Any macro can be used as a URL. Only macros that are valid URLs beginning with http:// or https:// should be used as the main CTA.

 

Custom macros are displayed on the audience details page:

unnamed - 2025-04-30T135327.081

Custom Macros contained in the selected audience are available to be used in the HTML. We are no longer using CUSTOM1-25 macros. The new custom macro names to be used in the HTML are the same as those in the audience.

Example: Audience for Order123 contains the following custom macros:

PRODUCT NAME

REGION 

STORE URL

Macros in the HTML:

When implemented in the HTML, the same macro names are to be used enclosed in double curly brackets.

Macros that Contain URLs:

When using macros that contain URLs, including main CTAs, we expect the URL to begin with “http://(s)”:

Order: 

After selecting an audience for your order, all available macros, both standard and custom, will show.

unnamed - 2025-04-30T135833.662

Flight: 

When creating your flight, all available macros, both standard and custom, will show.

unnamed - 2025-04-30T135928.391

Email Testing:

Please ensure the seed and test list you upload follows the exact column order as the test list macros shown below. 

unnamed - 2025-04-30T140108.354

HTML Validation:

After running HTML validation, only macros found in your HTML, From Name, and Subject will show.

unnamed - 2025-04-30T142522.099

If any macros were found in your HTML/Subject/From Name but are NOT contained in your audience, they will be highlighted in RED. 

unnamed - 2025-04-30T142741.504

Main CTA:

The CUSTOM_URL macro is no longer valid. Any macro that contains a valid URL beginning with http or https:// can be selected as a main CTA.

  • It is the user’s responsibility to ensure that any URL is valid, or this will result in email campaigns not performing and errors in email campaigns.

Personalized URLs (PURLs):

We support 3 different implementations for PURLs (personalized URLs) which support multiple use cases:

In HTML:

1: Macro in Query String:

2: Macro in the URL path:

3: Macro as the full URL

 

For more information, view our Connect Self-Serve Guide