LiveContentMicrositeUrl()

Returns a link to view live content on a microsite, rather than viewing it directly in an email. This function is helpful when sending coupons through SMS messages or text-only emails.

The LiveContentMicrositeURL(contentType, externalKey) function has two parameters:

  • contentType (string): Required. The content type. The only accepted value is coupon.
  • externalKey (string): Required. The external key of the live content.

To use the function, pass it the string "coupon" and the external key of the live content coupon that you want to link to.

The function returns a URL that refers to a landing page that contains the coupon.