To automatically update and add a tag to your sitemap in Webflow each time you publish, you’ll need a workaround—Webflow auto-generates sitemaps but doesn't allow editing or tagging them natively. Here's how to automate this with external tools and techniques.
1. Understand Webflow's Sitemap Limitation
- Webflow automatically creates and updates a sitemap at yourdomain.com/sitemap.xml when you publish your site.
- You can't directly edit or inject custom tags into this sitemap.
- For custom sitemap logic, you need to host your own sitemap.xml file and/or use automation tools to manage a sitemap externally.
2. Use an External Sitemap Generator with Hosting Workaround
- Create a custom sitemap.xml on an external server (e.g., AWS S3, Netlify, or GitHub Pages).
- Update your robots.txt in Webflow under Project Settings > SEO to point to the new sitemap URL like this:
Sitemap: https://yourcustomdomain.com/custom-sitemap.xml
This overrides Webflow’s default sitemap for search engines.
3. Automate Sitemap Updates with Zapier + Webflow CMS
- Use Zapier with Webflow’s CMS and scheduling tools to trigger updates.
- Workflow:
- Trigger: On new Webflow CMS item (e.g., blog post publish).
- Action: Update a file (e.g., sitemap.xml) via a connected platform like Google Drive or GitHub.
- Publish: Deploy the file automatically using webhooks or APIs from hosting platforms like Netlify.
Note: This setup assumes your custom sitemap is hosted outside Webflow.
4. Add “Tagging” Logic via Custom Script + Airtable (Advanced)
- Use Airtable as a CMS mirror with fields like published date, URL, and custom tags.
- Connect with Integromat (Make) or Zapier:
- Monitor new CMS records from Webflow.
- Append/update sitemap.xml stored externally.
- Insert custom
<xhtml:link>
or <priority>
, <changefreq>
, or <lastmod>
tags.
5. Consider Hosting Your Whole Sitemap via Netlify
- If you're comfortable with code, use a Netlify site to:
- Generate a sitemap via a function (e.g., Node or Next.js).
- Auto-deploy on Webflow CMS updates using Webhooks.
- Then update your Webflow robots.txt to point to this externally maintained sitemap.
Summary
You can't directly tag Webflow's auto-generated sitemap, but you can override it with a custom, externally hosted sitemap. Use Zapier, Integromat, or Netlify Functions to automate updates and include custom tags every time you publish your site. This method requires hosting the sitemap outside Webflow and updating your robots.txt to reflect the new location.