TenanciTenanci

Help centerYour app's customers

Customer report

A private link on the customer's own domain with the last 30 days of stats and your SaaS branding, plus an email summary on the 1st of every month.

Show your customers their site is working for them, without giving them access to your dashboard. The report is a page on the customer's own domain, with your branding, showing visitors, pages and where visits came from over the last 30 days. Optionally, the customer gets a summary by email on the 1st of every month.

What the report shows

  • The period (last 30 days) and the domain.
  • Visitors, Page views, Average time and Bounce rate.
  • Top pages, Where visitors came from (direct, search, social, websites, email, campaign), Devices and Countries.

The title, logo and color come from the project's status page (or, if those aren't set, the project name). Nothing from Tenanci shows up. The page needs no login, isn't indexed by search engines and its numbers refresh every few minutes.

  1. Open the customer's domain and go to the Settings tab.
  2. In the Customer report card, click Create report link.
  3. Copy the Report link and send it to your customer. It looks like https://joesbarbershop.com/__tenanci/report/<code>.

Monthly email

  1. In the same card, fill in the Customer email and click Save.
  2. Turn on Send the summary on the 1st of every month.

On the 1st of every month, the customer gets an email with the subject <your brand>: relatório de <month> — <domain>, the visitors and page views for the last 30 days, the top page, the main traffic source and a Ver relatório completo ("See full report") button that opens the link.

Replace or turn off the link

  • Generate a new link: creates a fresh link; the old one stops working immediately. Use it if the link ended up with someone it shouldn't have.
  • Turn off link: the report stops opening and the monthly email is turned off with it.

Through the API

Read with GET /domains/:id/report and change with PUT /domains/:id/report (key with domains:write). For example, to create the link and turn on the monthly email in one go:

cURL
curl -X PUT https://api.tenanci.com/v2/domains/dom_4h7n1q/report \
  -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"enabled":true,"email":"joe@joesbarbershop.com","monthly":true}'
# → { "url": "https://joesbarbershop.com/__tenanci/report/…", "email": "joe@joesbarbershop.com", "monthly": true }
Field What it does
enabled true creates the link (if there isn't one yet); false turns off the link and the monthly email
email the customer's email for the monthly summary (null clears it)
monthly turns the summary on the 1st on or off (needs email)
regenerate true replaces the link; the old one stops working

Turning on the monthly email without an email address returns 400 invalid_email.