Use the Daily Metrics API to send your own internal metrics and have them included in your daily email.
Grab your API key from the "Project Settings" page and then it's as easy as this:
const axios = require("axios");
const url = "https://app.thedailymetrics.com/api/metrics/";
const metrics = [
{
date: "2020-07-16",
sales: 7500.25,
users: {
signups: 32,
active: 101,
},
clients: {
new: 32,
churn: 10,
},
},
{
date: "2020-07-15",
sales: 750.5,
clients: {
new: 10,
churn: 5,
},
},
];
const apiKey = "{YOUR_API_KEY}";
axios
.post(url, {
apikey: apiKey,
metrics: metrics,
})
.then(function (response) {
// metrics successfully added
console.log(response.data);
})
.catch(function (error) {
// error adding metrics
console.log("Error adding metrics!!");
console.log(error);
});