Loading...
Asked by Rolando Carias on Jun 11, 2024
Rolando Carias needs to set a dynamic canonical URL (including query string parameters) for a single specific page, but the standard HubSpot setting doesn't seem to allow this, and he wants to avoid the default canonical.
Answered by Nick James
Nick Laporte demonstrated (via Loom) that HubL variables, including those for query parameters, can be used directly within the 'Canonical URL' field in the page settings > Advanced Options. Matt Scott provided an alternative template-level HubL `replace` method, but the direct setting is preferable.