Social Sharing

Social Sharing Event

Along with all standard Analytics Event properties, a Social Sharing Event includes the following additional properties:

Schema

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

Alias (contextData key)
Meaning / Use Case
Suggested Adobe Target (placeholder)
Friendly Label Example

lsc.shareTarget

Platform segmentation

prop{SHARE_TARGET}

Share Target

lsc.shareText

Share context

prop{SHARE_TEXT}

Share Text

lsc.shareUrl

Inbound traffic analyis

prop{SHARE_URL}

Share URL

lsc:share:cancel

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

Schema

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

lsc:share:click

Visitor clicked a social sharing target CTA.

Schema

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

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

Last updated