TagSpy

share

Recommended

Use this event when a user has shared content.

Platforms
web, app
When it fires
You send it when the action happens.
Official docs

Parameters (3)

ParameterTypeRequiredDescriptionExample
methodstringNoThe method in which the content is shared.Twitter
content_typestringNoThe type of shared content.image
item_idstringNoThe ID of the shared content.C_12345

Example

gtag.js
gtag('event', 'share', {
  method: 'Twitter',
  content_type: 'image',
  item_id: 'C_12345',
});
GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'share',
  method: 'Twitter',
  content_type: 'image',
  item_id: 'C_12345',
});

Also see