
# How do I include a page's ID in its contents?

> Output the currentPage identifier from a Format attached to a head region, useful for deep linking from Siteimprove, DubBot, and similar tools.

URL: https://www.hannonhill.com/cascadecms/latest/articles/developing-in-cascade/script-formats/include-page-id-in-contents.html
category: Developing in Cascade
article-type: how-to
content-kind: faq
release-availability: all
tags: templates, metadata, velocity
updated: 2026-10-06

Each asset in Cascade CMS has a unique ID, visible in the URL when viewing the asset in the interface. Including a page's ID in the published source is useful for deep linking back to Cascade CMS from [Siteimprove](https://siteimprove.com/), [DubBot](https://dubbot.com/), and other third-party reporting platforms.

1.  Create a Velocity [Format](https://www.hannonhill.com/cascadecms/latest/articles/developing-in-cascade/script-formats/index.html) containing:
    ```velocity
    <meta name="id" content="${currentPage.identifier.id}"/>
    ```

1.  Create a new [region](https://www.hannonhill.com/cascadecms/latest/articles/content-authoring/pages/system-tags.html) within the `<head>` tags of your Template:
    ```html
    <!-- Page ID for deeplinking. -->
    <​system-region name="PAGE_ID"/>
    ```

1. Attach your Format to this new region in your Template.
1. Publish all pages using that Template so the `<meta>` tag reaches your web server.

See also [Siteimprove Integration](https://www.hannonhill.com/cascadecms/latest/articles/cascade-administration/connectors/web-governance/siteimprove-integration.html) and [DubBot Integration](https://www.hannonhill.com/cascadecms/latest/articles/cascade-administration/connectors/web-governance/dubbot-integration.html).
