Enforcing categories for Plasmic pages.

I’m looking for a mechanism to assign a “category” to each of our Plasmic pages. This category will then be used for event tracking by our codebase.

We’ve implemented this by using “Page Metadata” inside the Page Settings, but it has the downside of being too open (since anyone can write any category into the text field). We want to make this a little more strict and only allow certain values to be used. But not sure if that’s possible with the current Page Metadata feature.

Is there any other Plasmic feature that we could use to achieve this? We’ve also thought of adding tests on our side to detect any category that deviates from the allowed set, but ideally we’d want to enforce this before the content is published. Thoughts?

Page metadata is the best fit that comes to mind…