media_type

Media type of the item at the root of the activity chain.

For engagements and clicks on shares, the media type of the share. The value will be one of:

  • post - the share does not contain a link or image.
  • article - the share contains a link.
  • image - the share contains an image.

For engagements and clicks on articles, the value is always article.

Query filtering

  1. Filter to comments on shares containing links:

    li.subtype == "activity|comment" AND ||.||.media_type == "article"

  2. Filter to clicks on shares containing images:

    li.type == "click" AND ||.||.media_type == "image"

Analysis

You can use this target to analyze the types of posts that are being shared and enagaged with.

  1. Analyze the breakdown of media types receiving comments:

    "filter": "li.subtype == \"activity|comment\"",
    "parameters": {
        "analysis_type": "freqDist",
        "parameters": {
            "target": "||.||.media_type",
            "threshold": 3
        }
    }

    Notice here a query filter is used to filter to comments only.

  2. Analyze the breakdown of media types which drive engagements:

    "filter": "li.subtype in \"activity|like, activity|comment, activity|reshare\"",
    "parameters": {
        "analysis_type": "freqDist",
        "parameters": {
            "target": "||.||.media_type",
            "threshold": 3
        }
    }

    Notice here a query filter is used to filter to all engagement types and exclude shares.

Resource information

Type: string

Tokenized for query filters: No

Analysis target: Yes

Query filter: Yes

Child analysis target: Yes