This module enables observing when the user shares a link on social media.
- Source:
Members
(static, constant) onShare :Events.Event.<socialMediaShareCallback, SocialMediaShareOptions>
Type:
- Events.Event.<socialMediaShareCallback, SocialMediaShareOptions>
- Source:
Type Definitions
socialMediaShareCallback(details)
A callback function for the social media share event.
Parameters:
Name | Type | Description |
---|---|---|
details |
SocialMediaShareDetails | Additional information about the social media share event. |
- Source:
SocialMediaShareOptions
Options when adding a social media share event listener.
Type:
- Object
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
matchPattern |
Array.<string> |
<optional> |
[] | The webpages of interest for the measurement, specified with WebExtensions match patterns. |
- Source: