{% extends 'base.html' %} {% load djinsight_tags %} {% block title %}Popular Content - djinsight Example{% endblock %} {% block content %}
This dashboard demonstrates how djinsight can track and display analytics for different types of content. All statistics are updated in real-time using Redis and tracked automatically.
{{ article.content|truncatewords:20 }}
By {{ article.author }} • {{ article.published_at|date:"M d, Y" }}No articles with views yet. Create some articles and visit them to see analytics!
${{ product.price }} • {{ product.category }}
No products with views yet.
Add Products{{ course.instructor }} • {{ course.difficulty|title }}
No courses with views yet.
Add Courses{% templatetag openblock %} total_views_stat {% templatetag closeblock %}
{% templatetag openblock %} unique_views_stat {% templatetag closeblock %}
{% templatetag openblock %} views_today_stat {% templatetag closeblock %}
{% templatetag openblock %} last_viewed_stat {% templatetag closeblock %}
{% templatetag openblock %} live_stats_counter {% templatetag closeblock %}
PageViewStatisticsMixin
to your model{% templatetag openblock %} page_view_tracker {% templatetag closeblock %}
in templates{% templatetag openblock %} total_views_stat {% templatetag closeblock %}
, etc..djinsight-stat-item
, .djinsight-stat-value