{% load analytics_extras %}
{% include "partials/_platform_icon.html" with platform=active_account.platform size="lg" %}

Analytics aren't available for {{ active_account.get_platform_display }}

{{ analytics_unavailable_notice }}

{% if analytics_disabled_by_admin %} {% comment %} Admin-disabled, not an API limitation — so unlike the LinkedIn Personal / Bluesky / Mastodon copy above, there is something to do about it. "May need reconnecting" rather than a promise that this page will offer the button: whether the stored token can read insights depends on the platform (Instagram Direct now always asks for the scope; Facebook / TikTok / YouTube still gate theirs on this toggle), and the re-check that surfaces the Reconnect banner is a background task — it doesn't run if the worker is down, and a bulk queryset.update() of the toggle fires no signal at all. Advice that holds in every one of those cases beats advice that is usually superseded. The id is what the view test anchors on, so this copy can be reworded freely. ({# #} is single-line only in Django — a multi-line one renders as visible page text.) {% endcomment %}

An administrator can switch it on under Analytics platforms in the Django admin. If this account connected while it was off, it may also need reconnecting before insights can be read.

{% endif %}
Create a post