# 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.

## Availability

<table>
  <tr>
    <td>Marketing Cloud Engagement</td>
    <td>✅ Yes</td>
  </tr>
  <tr>
    <td>Marketing Cloud Next</td>
    <td>❌ No</td>
  </tr>
</table>

## Syntax

```
LiveContentMicrositeURL(contentType, externalKey)
```

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.

## Usage

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

```
%%=LiveContentMicrositeURL('coupon', 'MyCoupon')=%%
```

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