# CMS tracking

**URL:** <https://community.hubspot.com/t/cms-tracking/148811>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [April 29, 2026, 10:54am UTC](https://community.hubspot.com/t/cms-tracking/148811 "2026-04-29T10:54:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![YLivenskiy](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@YLivenskiy](https://community.hubspot.com/u/YLivenskiy)\
**Post date:** [April 29, 2026, 10:54am UTC](https://community.hubspot.com/t/cms-tracking/148811/1 "2026-04-29T10:54:31Z")

</div>

Is there any way to catch in HubSpot CMS when a page is published, deleted, or updated? Blog post published/updated/deleted?

---

<div class="post-metadata">

**Author:** ![MichaelMa](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@MichaelMa](https://community.hubspot.com/u/MichaelMa)\
**Post date:** [April 29, 2026, 12:11pm UTC](https://community.hubspot.com/t/cms-tracking/148811/2 "2026-04-29T12:11:18Z")

</div>

The only way I can think of is through the content audit API.

> **[CMS content audit API - HubSpot docs](https://developers.hubspot.com/docs/api-reference/latest/cms/content-audit/guide)**
>
> The CMS content audit API allows you to filter and sort on content changes by type, time period, or HubSpot user ID to understand content change history.

How do you mean “catch”? In realtime? With the API, maybe polling it every so often is enough?

---

<div class="post-metadata">

**Author:** ![YLivenskiy](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@YLivenskiy](https://community.hubspot.com/u/YLivenskiy)\
**Post date:** [April 30, 2026, 7:30am UTC](https://community.hubspot.com/t/cms-tracking/148811/3 "2026-04-30T07:30:13Z")

</div>

Hi there! Yes, this is what I was looking for: a way to globally track whether changes were made or the status of a page/blog was updated, and based on those changes, trigger further actions and send data to an external source. Thanks for the answer

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [April 29, 2026, 12:48pm UTC](https://community.hubspot.com/t/cms-tracking/148811/4 "2026-04-29T12:48:44Z")

</div>

Hey @YLivenskiy,

API as @MichaelMa is the safest and best way if it’s for external stats.

In case you’d like to create something like a info banner which will be displayed if the page is not published or change something on the page/code depending on the status, you can try following HubLs

```lia-code-sample
{{ content.currentState }}

{{ content.currentlyPublished }} {# boolean #}
{{ content.isPublished }} {# boolean #}

```

Bundled with an if-statement it could look like this

```lia-code-sample
{% if content.currentState == "PUBLISHED" %}
{# some content if the page is published #}
{% endif %}

```

or

```lia-code-sample
{% if content.isPublished %}
{# some content if page is published #}
{% else %}
{# some content if page is not published #}
{% endif %}

```

p.s.:

You can see all page information if you add

`{{ content|tojson }}`

into the rich-text source-code or straight into a module/template

best,

Anton

---

<div class="post-metadata">

**Author:** ![YLivenskiy](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@YLivenskiy](https://community.hubspot.com/u/YLivenskiy)\
**Post date:** [April 30, 2026, 7:22am UTC](https://community.hubspot.com/t/cms-tracking/148811/5 "2026-04-30T07:22:13Z")

</div>

Hi! Thanks for your answer. Really useful information 🤝
