Campaign Performance Report
{{ campaign.title }}

Brand: {{ campaign.brand.name if campaign.brand else "-" }}  •  Status: {{ campaign.status }}  •  Boosting: {% if campaign.boosting_rights_enabled %}Enabled{% else %}Not Enabled{% endif %}

Generated on: {{ generated_on.strftime('%d %b %Y %H:%M') if generated_on and generated_on.strftime is defined else generated_on }}
Campaign ID: {{ campaign.campaign_code or campaign.id }}
Campaign Performance Summary
Total Impressions
{{ totals.impressions }}
Total Reach
{{ totals.reach }}
Engagement Rate
{% if overall_eng_rate is not none %} {{ "%.2f"|format(overall_eng_rate) }}% {% else %} - {% endif %}
CTR
{% if overall_ctr is not none %} {{ "%.2f"|format(overall_ctr) }}% {% else %} - {% endif %}
Performance Highlights
{% set ns = namespace( top_reach=None, top_eng=None, top_ctr=None, top_clicks=None ) %} {% for c in contents %} {% set p = perf_map.get(c.id) %} {% if p %} {% if p.reach is not none and (ns.top_reach is none or p.reach > (ns.top_reach[1].reach or 0)) %} {% set ns.top_reach = (c, p) %} {% endif %} {% if p.engagement_rate is not none and (ns.top_eng is none or p.engagement_rate > (ns.top_eng[1].engagement_rate or 0)) %} {% set ns.top_eng = (c, p) %} {% endif %} {% if p.ctr is not none and (ns.top_ctr is none or p.ctr > (ns.top_ctr[1].ctr or 0)) %} {% set ns.top_ctr = (c, p) %} {% endif %} {% if p.clicks is not none and (ns.top_clicks is none or p.clicks > (ns.top_clicks[1].clicks or 0)) %} {% set ns.top_clicks = (c, p) %} {% endif %} {% endif %} {% endfor %}
Highest Reach
{% if ns.top_reach %}{{ ns.top_reach[0].creator.name }}{% else %}-{% endif %}
{% if ns.top_reach %} {{ ns.top_reach[0].campaign_deliverable.platform.name }} • {{ ns.top_reach[0].campaign_deliverable.deliverable_type.name }} • Reach: {{ ns.top_reach[1].reach }} {% else %} No data available {% endif %}
Best Engagement
{% if ns.top_eng %}{{ ns.top_eng[0].creator.name }}{% else %}-{% endif %}
{% if ns.top_eng %} {{ ns.top_eng[0].campaign_deliverable.platform.name }} • {{ ns.top_eng[0].campaign_deliverable.deliverable_type.name }} • Eng: {{ "%.2f"|format(ns.top_eng[1].engagement_rate) }}% {% else %} No data available {% endif %}
Best CTR
{% if ns.top_ctr %}{{ ns.top_ctr[0].creator.name }}{% else %}-{% endif %}
{% if ns.top_ctr %} {{ ns.top_ctr[0].campaign_deliverable.platform.name }} • {{ ns.top_ctr[0].campaign_deliverable.deliverable_type.name }} • CTR: {{ "%.2f"|format(ns.top_ctr[1].ctr) }}% {% else %} No data available {% endif %}
Most Clicks
{% if ns.top_clicks %}{{ ns.top_clicks[0].creator.name }}{% else %}-{% endif %}
{% if ns.top_clicks %} {{ ns.top_clicks[0].campaign_deliverable.platform.name }} • {{ ns.top_clicks[0].campaign_deliverable.deliverable_type.name }} • Clicks: {{ ns.top_clicks[1].clicks }} {% else %} No data available {% endif %}
Creator-wise Summary
{% set creator_ns = namespace(items=[]) %} {% for c in contents %} {% set found = namespace(v=False) %} {% for row in creator_ns.items %} {% if row.creator_id == c.creator.id %} {% set found.v = True %} {% endif %} {% endfor %} {% if not found.v %} {% set totals_ns = namespace( impressions=0, reach=0, likes=0, comments=0, shares=0, saves=0, clicks=0, conversions=0, posts=0 ) %} {% for x in contents %} {% if x.creator.id == c.creator.id %} {% set px = perf_map.get(x.id) %} {% if px %} {% set totals_ns.impressions = totals_ns.impressions + (px.impressions or 0) %} {% set totals_ns.reach = totals_ns.reach + (px.reach or 0) %} {% set totals_ns.likes = totals_ns.likes + (px.likes or 0) %} {% set totals_ns.comments = totals_ns.comments + (px.comments or 0) %} {% set totals_ns.shares = totals_ns.shares + (px.shares or 0) %} {% set totals_ns.saves = totals_ns.saves + (px.saves or 0) %} {% set totals_ns.clicks = totals_ns.clicks + (px.clicks or 0) %} {% set totals_ns.conversions = totals_ns.conversions + (px.conversions or 0) %} {% endif %} {% set totals_ns.posts = totals_ns.posts + 1 %} {% endif %} {% endfor %} {% set _ = creator_ns.items.append({ 'creator_id': c.creator.id, 'creator_name': c.creator.name, 'handle': c.creator.handle, 'posts': totals_ns.posts, 'impressions': totals_ns.impressions, 'reach': totals_ns.reach, 'likes': totals_ns.likes, 'comments': totals_ns.comments, 'shares': totals_ns.shares, 'saves': totals_ns.saves, 'clicks': totals_ns.clicks, 'conversions': totals_ns.conversions }) %} {% endif %} {% endfor %} {% for row in creator_ns.items %} {% endfor %}
Creator Posts Impressions Reach Likes Comments Shares Saves Clicks Conversions
{{ row.creator_name }}
@{{ row.handle }}
{{ row.posts }} {{ row.impressions }} {{ row.reach }} {{ row.likes }} {{ row.comments }} {{ row.shares }} {{ row.saves }} {{ row.clicks }} {{ row.conversions }}
Post-wise Performance
{% for c in contents %} {% set p = perf_map.get(c.id) %} {% endfor %}
Creator Platform Deliverable Unit Live URL Ad Code Imp. Reach Likes Comments Shares Saves Clicks Conv. Eng % CTR %
{{ c.creator.name }} {{ c.campaign_deliverable.platform.name }} {{ c.campaign_deliverable.deliverable_type.name }} {{ c.unit_index }} {% if c.live_url %}{{ c.live_url }}{% else %}-{% endif %} {% if c.ad_code %}{{ c.ad_code }}{% else %}-{% endif %} {{ p.impressions if p and p.impressions is not none else "" }} {{ p.reach if p and p.reach is not none else "" }} {{ p.likes if p and p.likes is not none else "" }} {{ p.comments if p and p.comments is not none else "" }} {{ p.shares if p and p.shares is not none else "" }} {{ p.saves if p and p.saves is not none else "" }} {{ p.clicks if p and p.clicks is not none else "" }} {{ p.conversions if p and p.conversions is not none else "" }} {% if p and p.engagement_rate is not none %} {{ "%.2f"|format(p.engagement_rate) }} {% else %} - {% endif %} {% if p and p.ctr is not none %} {{ "%.2f"|format(p.ctr) }} {% else %} - {% endif %}