# Social Sharing

### Social Sharing Event

Along with all standard [Analytics Event properties](https://docs.hello-lisa.com/developers/analytics/abobe-appmeasurement/event-reference/..#canonical-shared-event-schema), a Social Sharing Event includes the following additional properties:

#### Schema

```typescript
interface SocialSharingEvent extends Omit<
  AnalyticsEvent,
  'eventType'
> {
  eventType:
    | 'lsc:share:cancel'
    | 'lsc:share:click'
    | 'lsc:share:complete';

  // Event-specific fields

  /**
   * The distinct social sharing target.
   */
  shareTarget:
    | 'clipboard'
    | 'email'
    | 'facebook'
    | 'linkedin'
    | 'native'
    | 'pinterest'
    | 'twitter'
    | 'whatsapp';
  /**
   * The social sharing text template.
   */
  shareText: string;
  /**
   * The URL being shared by the visitor.
   */
  shareUrl: string;
}

```

#### Alias Mapping Table

<table data-full-width="false"><thead><tr><th width="270.4453125" valign="top">Alias (contextData key) </th><th valign="top">Meaning / Use Case</th><th valign="top">Suggested Adobe Target (placeholder)</th><th valign="top">Friendly Label Example</th></tr></thead><tbody><tr><td valign="top"><code>lsc.shareTarget</code></td><td valign="top">Platform segmentation</td><td valign="top">prop{SHARE_TARGET}</td><td valign="top">Share Target</td></tr><tr><td valign="top"><code>lsc.shareText</code></td><td valign="top">Share context</td><td valign="top">prop{SHARE_TEXT}</td><td valign="top">Share Text</td></tr><tr><td valign="top"><code>lsc.shareUrl</code></td><td valign="top">Inbound traffic analyis</td><td valign="top">prop{SHARE_URL}</td><td valign="top">Share URL</td></tr></tbody></table>

### `lsc:share:cancel`

Visitor cancelled social sharing through their device's native sharing options.

#### Schema

```typescript
export interface SocialSharingCancelEvent extends Omit<
  SocialSharingEvent,
  'eventType'
> {
  eventType: 'lsc:share:cancel';
}
```

### `lsc:share:click`

Visitor clicked a social sharing target CTA.

#### Schema

```typescript
export interface SocialSharingClickEvent extends Omit<
  SocialSharingEvent,
  'eventType'
> {
  eventType: 'lsc:share:click';
}
```

### `lsc:share:complete`

Visitor completed social sharing through their device's native sharing options.

#### Schema

```typescript
export interface SocialSharingCompleteEvent extends Omit<
  SocialSharingEvent,
  'eventType'
> {
  eventType: 'lsc:share:complete';
}
```
