Document a canonical tag by recording the preferred input URL, the normalized target, the exact generated tag, its deployment location, and the final verification result.

This record makes the workflow reproducible: a reviewer can see what you entered, what changed during normalization, where the markup was installed, and which checks remain. The Canonical Tag Generator creates the HTML link element; it does not deploy a tag or provide an implementation log. Keep your documentation in the change record for the site.

how do i document the steps i use to generate canonical tag when using canonical tag generator
How Do I Document Canonical Tag Generator Steps?

What the workflow record should capture

Canonicalization is a site-wide consistency decision, not merely a string transformation. Google Search Central's canonicalization guidance describes rel=canonical as a strong signal rather than a guarantee. A useful workflow record therefore identifies the preferred address and shows that the generated annotation was applied and checked consistently.

  • Scope: The duplicate page, route, template, or content group affected by the change.
  • Original input: The complete URL entered into the generator, including its scheme, host, path, and intentional query string.
  • Generated output: The exact HTML link element copied from the tool rather than a reconstructed version.
  • Normalization notes: Any fragment removal, host-case change, default-port removal, internationalized-domain conversion, path serialization, or HTML ampersand escaping.
  • Implementation details: The page, CMS template, framework source file, or other location where the element was inserted.
  • Verification result: The delivered canonical, the target's response status, and any conflicting canonical signals that were found or resolved.

Keep the entered URL and generated target together. They may look different after normalization, and only the generated address is copied into the tag.

Generate and record the canonical element

  1. Enter the preferred target. Open the Canonical Tag Generator and enter the complete absolute URL you want search systems to prefer. Include the HTTP or HTTPS scheme, the correct host, the full path, and any query string that is intentionally part of the address. A relative path such as /products/widget is not accepted because its meaning depends on where the document is deployed.
  2. Generate and preserve the result. Generate the tag, then copy the exact output into your change record. Store the original input alongside it so the normalization can be explained later. Do not retype the element from memory or silently omit a query parameter that appeared in the generated target.
  3. Compare the normalized target with the intended page. Open the normalized address and confirm that it reaches the real page you want preferred, that the page returns a 200 response, and that it serves the equivalent primary content. If the target redirects, fails, or displays different content, correct the target before installing the tag.
  4. Install the copied element in the HTML head. Paste the exact generated link element into the source head of the page or template that needs to send the canonical signal. Do not place it in the body. For duplicate pages, the annotation should identify the same preferred target used across the duplicate set.
  5. Inspect the delivered page. View the delivered HTML or inspect the document head on the live URL. Confirm that exactly one intended canonical element is present and that its href resolves to the documented target with equivalent primary content.
  6. Complete the audit trail. Record the implementation location, inspection result, and any remaining conflict involving an HTTP canonical header, sitemap entry, internal link, or client-side script. A record is complete only when another person can identify both the generated markup and the evidence that it was deployed.

Record normalizations without changing the intended target

The generator uses browser-standard URL parsing and serialization, based on the behavior described by the WHATWG URL Standard. Document the result whenever the generated address differs from the text originally entered.

URL condition Generator behavior Useful audit note
Uppercase host letters Serializes the host in lowercase. Record the original host and normalized lowercase host.
Default HTTP or HTTPS port Removes the default port from the serialized URL. State which explicit port was present in the input.
Internationalized domain Serializes it to its ASCII-compatible form. Keep the Unicode input beside the converted host.
Non-ASCII path Serializes the path through browser URL rules. Compare the generated path with the intended public address.
Path letter case Preserves path case because it remains significant. Do not treat a path-case change as an accepted normalization.
Fragment identifier Removes the fragment from the canonical target. Note that the canonical identifies the underlying resource, not a location within it.
Query string Preserves the query string. Explain why each intentional parameter belongs in the preferred URL.
Ampersand in a query string Escapes it as & in the HTML attribute. Record that the displayed URL still represents the ordinary ampersand character.

The tool deliberately leaves several content and routing decisions to you. It does not remove tracking parameters, sort query keys, force HTTPS, add or remove www, choose a trailing-slash policy, resolve redirects, or inspect page similarity. Those choices depend on how the site serves and organizes its content, so the workflow record should name the policy or evidence behind each decision.

Verify the deployed source in context

Generation and deployment are separate operations. The generator returns markup only: it cannot edit a CMS template, confirm that a build system copied the template, or inspect how a framework renders the final document. After copying the element into the source head, inspect the actual response on the real URL. For a focused inspection routine, see the guide on how to check a canonical tag after you generate it.

For client-rendered applications, make the canonical clear in the source output and avoid scripts that replace or add canonical elements inconsistently after the page loads. Check representative templates or routes rather than assuming one successful page proves that every generated page is correct. Record the routes checked, the canonical found in each delivered document, and any route that still needs correction.

Keep every canonical signal aligned

A self-referential canonical on the preferred page is commonly recommended, while duplicate versions should point consistently to that same target. Document those decisions instead of treating each generated tag as an isolated edit. Also check for conflicting signals, such as one canonical in the HTML, a different canonical in an HTTP header, and another preferred address in the XML sitemap.

Important internal links should lead to the preferred address as well. A canonical tag consolidates duplicate URL signals, but it does not redirect visitors, remove a URL from search immediately, or replace a redirect during a site migration. If a duplicate should no longer be served, use a permanent redirect and record that separate action. Keep the redirect decision and the canonical decision distinct in the change record.

Capture a reusable change record

Copy this structure into a ticket, CMS note, repository record, or deployment log so future canonical changes remain easy to audit:

  • Change reference, date, and responsible owner
  • Pages or routes affected
  • Reason for selecting the preferred target
  • Original URL entered into the generator
  • Normalized target returned by the generator
  • Exact generated HTML element
  • Automatic transformations, including fragment removal
  • Routing decisions intentionally left unchanged
  • Template or source-file deployment location
  • Target status and primary-content verification
  • Delivered-page canonical inspection result
  • Header, sitemap, internal-link, and script conflicts
  • Follow-up actions and their owners

For a query-string example, an illustrative input could be https://example.com/products/widget?color=blue&size=large. Its normalized target remains the same URL because the query string is preserved. A corresponding escaped HTML element would be <link rel="canonical" href="https://example.com/products/widget?color=blue&amp;size=large">. Copy the generator's actual output into the record rather than reconstructing it from this illustration.

Know where the generator stops

Only complete, credential-free HTTP and HTTPS targets are accepted. Relative URLs, FTP, javascript, data, and other unsupported schemes are rejected. Embedded usernames or passwords are also rejected because a canonical should identify a public content location without exposing credentials in markup. If the content requires authentication, canonicalization does not make it public or resolve the access-control decision; review whether that page should be indexed at all.

The input remains in your browser, and the tool produces the normalized target and escaped markup for local copying. It cannot determine whether the chosen URL is semantically the best canonical, whether a redirect should be used, or whether the final page is technically sound. Those are the decisions and checks your documentation must capture. A reliable record therefore ends with the exact tag, its location, the delivered-page result, and an honest list of unresolved site-level signals.

For a deeper look, see How Do I Document the Steps I Use to Generate Hreflang?.