Post Tag Metrics
The postTagMetrics query returns analytics data aggregated by post tags, allowing you to analyze performance based on how you've categorized your content.
Query
query postTagMetrics(
$startDate: DateTime!
$endDate: DateTime!
$supportsEngagementRate: Boolean
) {
postTagMetrics(
startDate: $startDate
endDate: $endDate
supportsEngagementRate: $supportsEngagementRate
) {
postTag {
id
name
color
}
metrics {
metric
value
aggregation
}
}
}
{
"startDate": "2025-01-01T00:00:00Z",
"endDate": "2025-03-31T23:59:59Z",
"supportsEngagementRate": true
}
{
"data": {
"postTagMetrics": [
{
"postTag": {
"id": "tag-001",
"name": "Product Launch",
"color": "#FF5733"
},
"metrics": [
{
"metric": "posts",
"value": 28,
"aggregation": "sum"
},
{
"metric": "likes",
"value": 15420,
"aggregation": "sum"
},
{
"metric": "likes",
"value": 550.7,
"aggregation": "avg"
},
{
"metric": "comments",
"value": 892,
"aggregation": "sum"
},
{
"metric": "comments",
"value": 31.9,
"aggregation": "avg"
},
{
"metric": "engagement_rate",
"value": 4.8,
"aggregation": "avg"
}
]
},
{
"postTag": {
"id": "tag-002",
"name": "Behind the Scenes",
"color": "#3498DB"
},
"metrics": [
{
"metric": "posts",
"value": 42,
"aggregation": "sum"
},
{
"metric": "likes",
"value": 8920,
"aggregation": "sum"
},
{
"metric": "likes",
"value": 212.4,
"aggregation": "avg"
},
{
"metric": "comments",
"value": 412,
"aggregation": "sum"
},
{
"metric": "comments",
"value": 9.8,
"aggregation": "avg"
},
{
"metric": "engagement_rate",
"value": 3.2,
"aggregation": "avg"
}
]
},
{
"postTag": {
"id": "tag-003",
"name": "Educational",
"color": "#2ECC71"
},
"metrics": [
{
"metric": "posts",
"value": 35,
"aggregation": "sum"
},
{
"metric": "likes",
"value": 12100,
"aggregation": "sum"
},
{
"metric": "likes",
"value": 345.7,
"aggregation": "avg"
},
{
"metric": "comments",
"value": 1205,
"aggregation": "sum"
},
{
"metric": "comments",
"value": 34.4,
"aggregation": "avg"
},
{
"metric": "engagement_rate",
"value": 5.4,
"aggregation": "avg"
}
]
}
]
}
}
Parameters
false. When enabled, the query calculates engagement rate where applicable.Response Structure
The response includes an array of results, one per post tag used during the time period. Each result contains:
- postTag: Details about the tag including ID, name, and color
- metrics: An array of metric values aggregated across all posts with this tag
For each metric, you'll receive:
- sum: The total count across all posts with this tag
- avg: The average value per post with this tag
The posts metric shows how many posts were tagged with this tag during the period.
Metrics Returned
The query automatically includes relevant metrics based on the platforms where tagged posts were published:
Core Metrics (All Platforms)
- posts: Number of posts with this tag
- likes: Total and average likes (or platform equivalent)
- comments: Total and average comments (or platform equivalent)
Platform-Specific Metrics
Depending on which platforms your tagged posts were published to, you may also see:
- impressions: Total impressions (Instagram, Twitter, Facebook, LinkedIn, TikTok)
- views: Total views (TikTok, YouTube, Threads)
- shares: Total shares (Instagram, TikTok, Facebook)
- reach: Total reach (Instagram, Facebook)
- engagement_rate: Average engagement rate (when
supportsEngagementRateis enabled)
Understanding Engagement Rate
When supportsEngagementRate is set to true, the query includes an engagement rate calculation. The engagement rate is calculated as:
(likes + comments + shares) / impressions × 100
This metric is only calculated for platforms that provide impression data.
Examples
Compare Content Categories
Analyze which types of content perform best:
{
"startDate": "2025-01-01T00:00:00Z",
"endDate": "2025-03-31T23:59:59Z",
"supportsEngagementRate": true
}
Quarterly Campaign Analysis
Review performance of different campaign tags over a quarter:
{
"startDate": "2025-07-01T00:00:00Z",
"endDate": "2025-09-30T23:59:59Z",
"supportsEngagementRate": false
}
Monthly Content Review
Get monthly metrics to inform your content strategy:
{
"startDate": "2025-10-01T00:00:00Z",
"endDate": "2025-10-31T23:59:59Z",
"supportsEngagementRate": true
}
Year-End Report
Generate an annual report showing which content tags performed best:
{
"startDate": "2025-01-01T00:00:00Z",
"endDate": "2025-12-31T23:59:59Z",
"supportsEngagementRate": true
}
Use Cases
This query is ideal for:
- Content Strategy: Identify which content categories resonate most with your audience
- Campaign Analysis: Compare performance across different campaign types
- Topic Performance: Discover which topics generate the most engagement
- Content Planning: Use historical tag performance to inform future content plans
- ROI Tracking: Measure the effectiveness of different content themes
- Team Reporting: Show content team which themes are performing best
Working with Post Tags
Post tags are created and managed in your Postpone account. To use this query effectively:
- Tag your posts consistently: Apply tags to posts as you create them
- Use meaningful names: Choose tag names that reflect content categories or campaigns
- Organize by theme: Group related content under the same tags
- Review regularly: Use this query periodically to inform your content strategy