Your weekly metrics, delivered

Traffic and signups from the past 7 days

What you will receive

Weekly Analytics - Jan 15-22

just now

This Week's Numbers

Visitors: 12,847 (+15%)
Signups: 234 (+8%)
Conversion: 1.82%

Top pages:
1. /pricing (2,341 views)
2. /features (1,892 views)

View full report →

How it works

  1. 1Humrun fetches your analytics data each week
  2. 2It calculates key metrics and compares to last week
  3. 3You get a summary with trends and top performers

You configure

mysite.com

Your Plausible site domain

plausible_...

Your Plausible API key

View Python code
import requests
import os
from datetime import datetime, timedelta

SITE_ID = os.environ.get("PLAUSIBLE_SITE_ID")
API_KEY = os.environ.get("PLAUSIBLE_API_KEY")

headers = {"Authorization": f"Bearer {API_KEY}"}
base_url = "https://plausible.io/api/v1/stats"

# This week
end_date = datetime.utcnow().strftime("%Y-%m-%d")
start_date = (datetime.utcnow() - timedelta(days=7)).strftime("%Y-%m-%d")

# Fetch aggregate stats
response = requests.get(
    f"{base_url}/aggregate",
    headers=headers,
    params={
        "site_id": SITE_ID,
        "period": "custom",
        "date": f"{start_date},{end_date}",
        "metrics": "visitors,pageviews,bounce_rate,visit_duration"
    }
)

stats = response.json().get("results", {})

# Fetch top pages
pages_response = requests.get(
    f"{base_url}/breakdown",
    headers=headers,
    params={
        "site_id": SITE_ID,
        "period": "custom",
        "date": f"{start_date},{end_date}",
        "property": "event:page",
        "limit": 5
    }
)

top_pages = pages_response.json().get("results", [])

print(f"Weekly Analytics - {start_date} to {end_date}")
print(f"Visitors: {stats.get('visitors', {}).get('value', 'N/A'):,}")
print(f"Pageviews: {stats.get('pageviews', {}).get('value', 'N/A'):,}")
print(f"Bounce rate: {stats.get('bounce_rate', {}).get('value', 'N/A')}%")
print(f"\nTop pages:")
for i, page in enumerate(top_pages[:5], 1):
    print(f"{i}. {page.get('page')} ({page.get('visitors'):,} visitors)")
Suggested schedule: Every Monday at 9 AMNotifications: After every run
Browse more templates