For the complete documentation index, see llms.txt. This page is also available as Markdown.

Design your data model & schema

Decide what the platform indexes and makes queryable, and declare it in your datamart's schema.

Your goal

Decide which of your data must be queryable, and declare it - because in mediarithmics, what you can segment on is determined by your schema, not by what you happen to send.

Expected outcome

A published schema that indexes exactly the properties your use cases need, and a data model your teams can read: identifiers on one side, describing content on the other.

The one thing to understand first

This is why data-model design comes before collection: sending data is cheap and reversible, deciding what is queryable is neither.

The shape of a mediarithmics data model

Everything hangs off the UserPoint, and divides into families of nodes.

  • Identifiers decide who the data belongs to, and therefore when two UserPoints become one. See User identity.

  • Describing content is what you query and segment on. Its structure is what the schema declares.

Work through it in this order

1

Know the standard objects

The objects the platform stores about a user, which of them identify the user, and which describe them.

2

List the questions your use cases ask

"Users who bought category X in the last 30 days", "users who abandoned a basket over €100", "users reachable by email in region Y". Each question tells you which property has to be indexed, and on which object.

3

Decide your identity model

Which identifiers you will collect, and which of them are strong enough to merge two UserPoints. This is the decision with the longest-lasting consequences.

4

Write the schema

Declare the objects and properties, and index only what you will query on.

5

Use the standard events where you can

Predefined event names and properties unlock built-in analytics, dashboards, and funnels. Custom events do not.

6

Add computed data where a query cannot do the job

Aggregates and scores that would be expensive or impossible to express as a query.

7

Write it down as a plan, and keep it honest

A tracking and data plan is what keeps the schema, the collection, and the use cases aligned over time.

In this section

Last updated

Was this helpful?