Setting up canonical tags in Webflow helps avoid duplicate content issues, especially when articles are republished or your site uses multiple custom domains. Here's how to implement canonical tags correctly.
www.example.com
). This is the one Google will treat as primary.To handle republished content or manage SEO when articles appear on other sites:
Go to your CMS Template Page (e.g., Blog Post template).
Open Page Settings (gear icon).
Scroll to the "Custom Code" section under the page settings.
In the "Inside tag" section, add:
<link rel="canonical" href="https://www.example.com/blog/{{slug}}" />
Replace www.example.com
with your primary domain.
Ensure {{slug}}
matches the slug field for the CMS collection.
If republished articles have a custom canonical source:
Add a plain text field in your CMS (e.g., canonical_url
).
In the custom code, use conditional logic like:
``
⚠️ Note: Webflow doesn't support dynamic logic in native <head>
sections without custom code. You'd need to use an Embed inside the page body or export the site if fine-grained control is needed.
Set your default domain in Webflow to enforce a primary URL. Then, add custom canonical tags on CMS templates (either static or CMS field-driven) to guide Google on the correct source. This ensures proper SEO across republished content and multiple domains.