---
schema_version: "1"
id: 72d8333e8bb923060836b1dcf46ef5a6f31d6a4599e9a58f12f8fce43191af00
title: LiveContentMicrositeURL()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/ampscript/references/sites/mc-ampscript-reference-sites-live-content-microsite-url.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-sites/mc-ampscript-reference-sites-live-content-microsite-url.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 693d8adde969b07ae77269520cb344cda069b92a262eadbcba3c549bf3d24785
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# 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.
