Success Solutions logo marksuccess SOLUTIONS

Template Tracker

Template Tracker user guide

For Salesforce admins who set up Template Tracker, and the managers who read its results. See which email templates are used, by whom and how often, and which are never used.

For admins: set it up

  1. In Setup > Permission Sets, assign Template Tracker Admin to yourself and anyone who should run refreshes and change settings.
  2. Assign Template Tracker Viewer to managers who should see the results, reports and dashboard but not change anything. The results are counts for the whole org and include sender names, so choose who gets them.
  3. Open the Template Tracker app (or the Template Tracker tab) from the App Launcher.
  4. Optional: in Count emails from, choose a start date and click Save date. Leave it blank to count all your email history.
  5. Click Refresh now. The first refresh reads every template and all the emails in the history you chose. In a large org this can take a while; the page shows when it has finished.
  6. Click Turn nightly refresh on. Template Tracker then refreshes every night at 2:30am (your org's time zone) and only reads emails sent since the last refresh.

Rebuild clears Template Tracker's own records and counts everything again from the start date. Use it after you change the start date. It never touches your templates or emails.

What is counted

  • Sent by people - emails sent with a template (Lightning, Classic or Visualforce) from the Lightning email composer. Salesforce saves these as Email Message records with the template, the sender and the record they were sent from.
  • List emails - Salesforce doesn't save the template on each list email, so they aren't in "Sent by people". They do update the template's Last Used Date, so a template used only in list emails still shows as used.
  • Times Used (Salesforce) - Salesforce's own running total on each template. It also goes up for emails sent by Apex and Flow, but has no sender or dates.
  • Automated and other - every day, Template Tracker saves a snapshot of Times Used. The rise each day, minus the emails sent by people, is shown as automated (Apex, Flow and other). This builds up from the day you install the app; it can't go back in time.
  • Email alerts are not counted. Salesforce doesn't record email alert sends against the template. A template marked "never used" may still be used by an email alert, so check your alerts before deleting it.
  • Counts mean "sent from Salesforce", not "delivered". They only go back as far as your org keeps Email Message records.

Using the Template Tracker tab

  • All templates - every template, with Sent by people, Last 12 months, Times Used (Salesforce), Last used, number of senders and top sender. Click a column to sort.
  • Never used and Not used in 12 months - the templates you might tidy up. "Last used" is the later of the last email sent by a person and Salesforce's Last Used Date.
  • Most used - bar charts of the most used templates and top senders.
  • Search, Folder and Kind filter the list. Tick Show deleted templates to see counts for templates that have since been deleted.
  • Click a template's name to open its usage page: the last 12 months, top senders, where its emails were sent from, and automated sends since the first snapshot.

Reports and dashboard

The Template Tracker report folder has seven reports, and the Template Tracker Overview dashboard shows the main ones:

  • Most Used Templates
  • Never Used Templates
  • Templates Not Used in 12 Months
  • Template Emails by Sender
  • Template Emails by Month
  • Template Emails by Record Type
  • People vs Automated Sends

You can also build your own reports with the Template Usage report types. The dashboard runs as one chosen user, so everyone who opens it sees that user's view. To change who that is, edit the dashboard and set View dashboard as to a user with the Viewer or Admin permission set.

What you might see

  • "You need the Template Tracker Admin permission set to do this." - only admins can refresh, rebuild or change settings. Ask your Salesforce admin.
  • "A refresh is already running. Try again when it has finished." - wait for the current refresh. The status line at the top shows when it ends.
  • "Choose a date in the past, or leave it blank to count all history." - the Count emails from date can't be in the future.
  • Times Used (Salesforce) is 0 but Sent by people is not - Salesforce only started raising Times Used for some send paths in recent releases, and imported or older emails don't raise it. Both numbers are shown so you can compare.
  • No emails counted at all - check that Enhanced Email is on (Setup > Enhanced Email), and that people send from the Lightning email composer.

Good to know

  • Template Tracker is read only. It never changes or deletes your templates or emails.
  • It stores only counts, dates, template names and sender names - never email subjects, bodies or addresses. No data leaves your org.
  • The refresh job reads all emails with a template, so the counts are org-wide. Who can see them is up to the permission sets you assign.
  • People who send email don't need anything from Template Tracker.

Uninstalling

Click Turn nightly refresh off, then go to Setup > Installed Packages and click Uninstall. This removes Template Tracker's objects and the counts stored in them. Your templates and emails are not changed.

Support

Template Tracker is free and is built and supported by Success Solutions Ltd.

For help or feedback, use our contact form and choose Our apps - support or feedback. Please don't send personal data from your org unless you need to.