media_type

For shares, the type of content posted.

For engagements and clicks, the content type of the share engaged with.

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 article views the value is always article.

Query filtering

  1. Filter to shares containing links:

    ||.||.subtype == "activity|share" AND ||.||.media_type == "article"

  2. Exclude shares containing images:

    ||.||.subtype == "activity|share" AND NOT ||.||.media_type == "image"

Analysis

You can use this target to analyze the media types of interactions that are stored in an index.

  1. Analyze the breakdown of media types in the last 24 hours:

    "parameters": {
        "analysis_type": "freqDist",
        "parameters": {
            "target": "li.media_type",
            "threshold": 3
        }
    }

  2. Analyze the breakdown of media types for shares only:

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

    Notice that here a query filter is used to filter to only share activities.

Resource information

Type: string

Tokenized for query filters: No

Analysis target: Yes

Query filter: Yes

Child analysis target: Yes