{% extends 'paxalia/base.html' %} {% load static i18n %} {% block title %}{% trans "Cohorts & Retention" %} – Paxalia Analytics{% endblock %} {% block page_title %}{% trans "Cohorts & Retention" %}{% endblock %} {% block page_subtitle %}{% trans "What fraction of each cohort comes back, by week or month" %}{% endblock %} {% block extra_css %} {% endblock %} {% block dashboard_content %}

{% trans "Visitor identity is approximated from the analytics session cookie, which lasts 30 days and isn't refreshed. Weekly retention over the last few weeks is reasonably meaningful; monthly retention beyond about a month will undercount returning visitors whose cookie has since expired — they show up as 'new' again instead." %}

{% trans "Retention" %}

{% if cohort_rows %}
{% for offset in offset_range %} {% endfor %} {% for row in cohort_rows %} {% for cell in row.offsets %} {% if cell %} {% else %} {% endif %} {% endfor %} {% endfor %}
{% trans "Cohort" %} {% trans "Size" %}+{{ offset }}
{{ row.period|date:"M d, Y" }} {{ row.size }}{{ cell.pct }}% ({{ cell.retained }})
{% else %}
{% trans "Not enough data yet to compute cohorts." %}
{% endif %}
{% endblock %}