> For the complete documentation index, see [llms.txt](https://docs.hockeystack.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hockeystack.com/marketing-intelligence/report-examples-and-insights/properties-and-configuration/building-a-campaign-asset-grouping-property.md).

# Building a Campaign / Asset Grouping property

It is quite useful to create groupings out of your more granular touchpoint properties. For example, you might want to group your campaigns by Region, Theme, Objective. Or you might want to group your website pages by their specific Product Area or Target Audience.

To start, create a new defined property.

Use the existing Campaign or Asset properties to build up the groupings.

**Example:**

<figure><img src="https://318687664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FedLASfWbQxGa0eYkwALS%2Fuploads%2FJKoBTasSzmLwMhDLjoOc%2FScreenshot%202026-06-12%20at%206.46.17%E2%80%AFPM.png?alt=media&amp;token=ea71969b-210d-4266-b3e9-1e45a325a728" alt=""><figcaption></figcaption></figure>

Optionally, **after all of the mappings,** you could add a catch-all mapping that says "Campaign is not empty -> map to Ungrouped". It is important that this mapping is at the very end. Because the Defined Property is executed from top to bottom, if you add this catch-all in the middle, it will mess up the grouping of all the mappings that come after it.

<figure><img src="https://318687664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FedLASfWbQxGa0eYkwALS%2Fuploads%2FaQo4nKoqSpisBk4LGJxS%2FScreenshot%202026-06-12%20at%206.47.20%E2%80%AFPM.png?alt=media&amp;token=433695da-89ea-4039-9895-782e5d91704d" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hockeystack.com/marketing-intelligence/report-examples-and-insights/properties-and-configuration/building-a-campaign-asset-grouping-property.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
