Send Antlytics data to Airtable
Log daily analytics stats to an Airtable base using webhooks, Zapier, or the Scripting extension.
Send Antlytics data to Airtable
Append daily analytics rows to an Airtable base to build custom dashboards and trend reports.
Option A: Via Zapier or Make (easiest)
- Connect Antlytics via Settings → Webhooks to a Zapier or Make webhook trigger.
- Add an Airtable → Create record action step.
- Select your base and table, then map fields:
- Date →
period - Visitors →
stats.visitors(orstats__visitorsin Zapier) - Pageviews →
stats.pageviews - Bounce rate →
stats.bounce_rate
- Date →
Option B: Airtable Scripting extension
Use the Scripting extension to pull data from the Antlytics API on demand or via an automation.
const TOKEN = 'ant_YOUR_API_TOKEN';
const SITE_ID = 'YOUR_SITE_ID';
const res = await fetch(
`https://www.antlytics.com/api/v1/stats?site_id=${SITE_ID}`,
{ headers: { Authorization: `Bearer ${TOKEN}` } }
);
const { visitors, pageviews, bounce_rate } = await res.json();
const today = new Date().toISOString().slice(0, 10);
const table = base.getTable('Stats');
await table.createRecordAsync({
Date: today,
Visitors: visitors,
Pageviews: pageviews,
'Bounce rate': bounce_rate,
});
output.text(`Logged: ${visitors} visitors, ${pageviews} pageviews`);
Pair this with an Airtable Automation → Scheduled trigger to run daily.
Option C: Airtable Automations + HTTP fetch
- In your Airtable base, go to Automations → Create automation.
- Set the trigger to At a scheduled time (daily).
- Add a Run script action and paste the script above.
Need help?
Email support@antlytics.com with your site ID.