For the complete documentation index, see llms.txt. This page is also available as Markdown.

Affiliate Linkcodes in Emails

Article Topics: Linkcodes, Emails, Affiliates

Listing Linkcodes in Emails

When sending automated emails to affiliates in NATS, you can dynamically retrieve and display their unique linkcodes for a specified program and site using Smarty template functions.

{nats_list_linkcodes userid=$loginid data_only=1 program=program_number site=site_number}

Replace program_number with the program ID and site_number with the site ID.

You can construct dynamically tracked tour links for affiliates in your mass mailings by combining the {nats_list_linkcodes} Smarty function with your tour URL.

Each affiliate that receives an email containing the following text and Smarty code will get the link to the tour with their NATS code embedded in the URL:

URL?nats={nats_list_linkcodes userid=$toid program=program_number site=site_number 
  tour=tour_number data_only=1 code_only=1}{$linkcodes.program_number.site_number.tour_number.0.0.0}

Replace the following:

Example

For a tour on example.com/tour, program number one, site number two, and tour number three, the code will look like this:

LinkcodesMailing Overview

Last updated

Was this helpful?