Developer
User guidesDeveloper websiteHelp centerLog in
  • Welcome!
  • Organisations structure
    • Datamart
    • Users and roles
  • User points
    • User identifiers
      • Networks IDs
        • Device-based Network IDs
          • Custom Device ID integration
          • ID5
          • First ID
        • User-based Network IDs
          • Custom User ID integration
          • UTIQ martechpass
      • Accounts
      • Emails
      • Device identifiers
    • User activities and events
    • Compartments
    • User profiles
    • User segments
    • Hyper point & Quarantine
  • Data model
    • Defining your schema
    • Computed fields
      • Concepts
      • Setup
      • Development
      • Examples
  • Data ingestion
    • Real time user tracking
      • Website tracking
      • Mobile apps tracking
      • Ads exposure tracking
      • AMP tracking
      • Conversions tracking
      • Email views and clicks
      • Tracking API
      • Event rules
      • Activity analyzers
    • Bulk processing
      • Imports
        • User activities import
        • User profiles import
        • User choices import
        • Segments import
      • Deletions
        • User identifiers deletion
        • Device points deletion
        • User points deletion
      • User identifiers association
      • Integration batch
    • Activities analytics
    • Data warehouse
      • Preliminary setup
        • BigQuery
      • Create data warehouse
  • Querying your data
    • OTQL queries
    • OTQL examples
    • GraphQL queries
    • UserPoint API
    • User activities
    • Activities analytics queries
      • API Quickstart
      • Dimensions and metrics
      • Use cases
    • Funnel API
  • Alerting
    • Alert configurations
  • Data visualisation
    • Quickstart
    • Dashboards
    • Sections and cards
    • Charts
    • Datasets and data sources
      • Using a data file data source
    • Transformations
    • Filters
    • Cookbook
    • Reference
  • Advanced usages
    • Audience segmentation
      • Audience features
      • Segment builders
      • Audience segment metrics
      • Audience segment feed
        • Building new feeds
        • Monitoring a feed
        • Curated Audiences (SDA)
      • Edge segments
      • Cohort-based Lookalike
    • Contextual targeting
      • Setup
      • Activation
        • Google Ad Manager
        • Xandr (through prebid.js)
      • API documentation
    • Exporting your data
      • Query Exports
      • Datamart replication
    • Data privacy compliance
      • User choices
      • Cleaning rules
      • Exercise of user rights
      • Cookies
    • Campaigns
    • Automations
      • Email routers
      • Email renderers
      • Opt-in provider
      • Custom action plugins
      • Usage limits for automations
    • Plugins
      • Concepts
      • Creation & Deployment
      • Coding your plugin
      • Manage existing plugins
      • Layouts
      • Presets
      • Monitoring
      • Throttling
      • Batching (for external feeds)
    • Platform monitoring
      • Resources usage
        • Dimensions and metrics
      • Collection volumes
        • Dimensions and metrics
      • Events ingestion monitoring
        • Dimensions and metrics
    • Data Clean Room
      • Bunker
      • Clean room
  • Resources
    • Tutorial: Data Ingestion
      • Your first events
        • Add the mediarithmics tag
          • Getting the tag
          • Adding the tag
        • Send events using the tag
          • Adding event properties
          • Finding the UserEvent type in your schema
          • Matching your schema
          • Standard events
      • Your first bulk imports
        • API basics
          • Authentication
          • Your first API call
        • Send documents using the API
          • Requirements
          • Sending documents
    • Using our API
      • Authentication
    • Tools & libraries
      • mics CLI
      • JS Tag
      • Plugin SDK
    • Data cubes
      • Creating a report
      • Reference
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Resources
  2. Tutorial: Data Ingestion
  3. Your first events
  4. Send events using the tag

Finding the UserEvent type in your schema

To learn about what a schema is and how to edit it, checkout the schema section in our user guide.

What we need to look at is the UserEvent (or the type that mirrors UserEvent). For instance you could have something like this:

type UserPoint  @TreeIndexRoot(index:"USER_INDEX") {
    id:ID!
    segments:[UserSegment!]!
    agents:[UserAgent!]!
    creation_date:Date! @Function(params:["creation_ts"], name:"ISODate")
    creation_ts:Timestamp! @TreeIndex(index:"USER_INDEX")
    activities:[UserActivity!]!
}

type UserActivity  {
    id:ID! @TreeIndex(index:"USER_INDEX")
    duration:Int @TreeIndex(index:"USER_INDEX")
    ts:Timestamp! @TreeIndex(index:"USER_INDEX")
    events:[UserEvent!]!
}

type UserEvent  @Mirror(object_type:"UserEvent")  {
   ts:Timestamp! @TreeIndex(index:"USER_INDEX")
   name:String! @TreeIndex(index:"USER_INDEX")
   id:ID! @TreeIndex(index:"USER_INDEX")
}

or something like this:

type UserPoint  @TreeIndexRoot(index:"USER_INDEX") {
    id:ID!
    segments:[UserSegment!]!
    agents:[UserAgent!]!
    creation_date:Date! @Function(params:["creation_ts"], name:"ISODate")
    creation_ts:Timestamp! @TreeIndex(index:"USER_INDEX")
    events:[ActivityEvent!]!
}

type ActivityEvent  @Mirror(object_type:"UserEvent") {
    id:ID! @TreeIndex(index:"USER_INDEX")
    ts:Timestamp! @TreeIndex(index:"USER_INDEX")
    name:String! @TreeIndex(index:"USER_INDEX")
}

In the first case, we will look at the UserEvent object, in the second case, the ActivityEvent object that mirrors the UserEvent object type.

If you don't have an UserEvent type or a type which mirrors it, again, feel free to checkout the schema section in our user guide.

PreviousAdding event propertiesNextMatching your schema

Last updated 10 months ago

Was this helpful?