Documentation

Developers

API References
Data Subject Request API

Data Subject Request API Version 1 and 2

Data Subject Request API Version 3

Platform API

Platform API Overview

Accounts

Apps

Audiences

Calculated Attributes

Data Points

Feeds

Field Transformations

Services

Users

Workspaces

Warehouse Sync API

Warehouse Sync API Overview

Warehouse Sync API Tutorial

Warehouse Sync API Reference

Data Mapping

Warehouse Sync SQL Reference

Warehouse Sync Troubleshooting Guide

ComposeID

Warehouse Sync API v2 Migration

Calculated Attributes Seeding API

Bulk Profile Deletion API Reference

Group Identity API Reference

Custom Access Roles API

Data Planning API

Pixel Service

Profile API

Events API

mParticle JSON Schema Reference

IDSync

Media SDKs

Android

iOS

Web

Client SDKs
AMP

AMP SDK

Android

Initialization

Configuration

Network Security Configuration

Event Tracking

User Attributes

IDSync

Screen Events

Commerce Events

Location Tracking

Media

Kits

Application State and Session Management

Data Privacy Controls

Error Tracking

Opt Out

Push Notifications

WebView Integration

Logger

Preventing Blocked HTTP Traffic with CNAME

Linting Data Plans

Troubleshooting the Android SDK

API Reference

Upgrade to Version 5

Cordova

Cordova Plugin

Identity

Flutter

Getting Started

Usage

API Reference

Direct Url Routing

Direct URL Routing FAQ

Web

Android

iOS

iOS

Initialization

Configuration

Event Tracking

User Attributes

IDSync

Screen Tracking

Commerce Events

Location Tracking

Media

Kits

Application State and Session Management

Data Privacy Controls

Error Tracking

Opt Out

Push Notifications

Webview Integration

Upload Frequency

App Extensions

Preventing Blocked HTTP Traffic with CNAME

Linting Data Plans

Troubleshooting iOS SDK

Social Networks

iOS 14 Guide

iOS 15 FAQ

iOS 16 FAQ

iOS 17 FAQ

iOS 18 FAQ

API Reference

Upgrade to Version 7

React Native

Getting Started

Identity

Roku

Getting Started

Identity

Media

Unity

Upload Frequency

Getting Started

Opt Out

Initialize the SDK

Event Tracking

Commerce Tracking

Error Tracking

Screen Tracking

Identity

Location Tracking

Session Management

Xbox

Getting Started

Identity

Web

Initialization

Configuration

Content Security Policy

Event Tracking

User Attributes

IDSync

Page View Tracking

Commerce Events

Location Tracking

Media

Kits

Application State and Session Management

Data Privacy Controls

Error Tracking

Opt Out

Custom Logger

Persistence

Native Web Views

Self-Hosting

Multiple Instances

Web SDK via Google Tag Manager

Preventing Blocked HTTP Traffic with CNAME

Facebook Instant Articles

Troubleshooting the Web SDK

Browser Compatibility

Linting Data Plans

API Reference

Upgrade to Version 2 of the SDK

Xamarin

Getting Started

Identity

Web

Alexa

Server SDKs

Node SDK

Go SDK

Python SDK

Ruby SDK

Java SDK

Quickstart
Android

Overview

Step 1. Create an input

Step 2. Verify your input

Step 3. Set up your output

Step 4. Create a connection

Step 5. Verify your connection

Step 6. Track events

Step 7. Track user data

Step 8. Create a data plan

Step 9. Test your local app

HTTP Quick Start

Step 1. Create an input

Step 2. Create an output

Step 3. Verify output

iOS Quick Start

Overview

Step 1. Create an input

Step 2. Verify your input

Step 3. Set up your output

Step 4. Create a connection

Step 5. Verify your connection

Step 6. Track events

Step 7. Track user data

Step 8. Create a data plan

Java Quick Start

Step 1. Create an input

Step 2. Create an output

Step 3. Verify output

Node Quick Start

Step 1. Create an input

Step 2. Create an output

Step 3. Verify output

Python Quick Start

Step 1. Create an input

Step 2. Create an output

Step 3. Verify output

Web

Overview

Step 1. Create an input

Step 2. Verify your input

Step 3. Set up your output

Step 4. Create a connection

Step 5. Verify your connection

Step 6. Track events

Step 7. Track user data

Step 8. Create a data plan

Tools

mParticle Command Line Interface

Linting Tools

Smartype

Guides
Partners

Introduction

Outbound Integrations

Outbound Integrations

Firehose Java SDK

Inbound Integrations

Kit Integrations

Overview

Android Kit Integration

JavaScript Kit Integration

iOS Kit Integration

Compose ID

Data Hosting Locations

Glossary

Migrate from Segment to mParticle

Migrate from Segment to mParticle

Migrate from Segment to Client-side mParticle

Migrate from Segment to Server-side mParticle

Segment-to-mParticle Migration Reference

Rules Developer Guide

API Credential Management

The Developer's Guided Journey to mParticle

Guides

Customer 360

Overview

User Profiles

Overview

User Profiles

Group Identity

Overview

Create and Manage Group Definitions

Calculated Attributes

Calculated Attributes Overview

Using Calculated Attributes

Create with AI Assistance

Calculated Attributes Reference

Predictive Attributes

What are predictive attributes?

Predict Future Behavior

Create Future Prediction

Use Future Predictions in Campaigns

Assess and Troubleshoot Predictions

Next Best Action

Next Best Action Overview

Create a Next Best Action (NBA)

View and Manage NBAs

Activate Next Best Actions in Campaigns

Getting Started

Create an Input

Start capturing data

Connect an Event Output

Create an Audience

Connect an Audience Output

Transform and Enhance Your Data

Platform Guide
Billing

Usage and Billing Report

Observability

Observability Overview

Observability User Guide

Observability Troubleshooting Examples

Observability Span Glossary

The New mParticle Experience

The new mParticle Experience

The Overview Map

Event Forwarding

System Alerts

Trends

Introduction

Data Retention

Data Catalog

Connections

Activity

Data Plans

Live Stream

Filters

Rules

Blocked Data Backfill Guide

Tiered Events

mParticle Users and Roles

Analytics Free Trial

Troubleshooting mParticle

Usage metering for value-based pricing (VBP)

Segmentation
New Audiences Experience

Audiences Overview

Create an Audience

Connect an Audience

Manage Audiences

Classic Audiences Experience

Real-time Audiences (Legacy)

Standard Audiences (Legacy)

Journeys

Journeys Overview

Manage Journeys

Download an audience from a journey

Audience A/B testing from a journey

Predictive Audiences

Predictive Audiences Overview

Using Predictive Audiences

IDSync

IDSync Overview

Use Cases for IDSync

Components of IDSync

Store and Organize User Data

Identify Users

Default IDSync Configuration

Profile Conversion Strategy

Profile Link Strategy

Profile Isolation Strategy

Best Match Strategy

Aliasing

Analytics

Introduction

Core Analytics

Setup

Sync and Activate Analytics User Segments in mParticle

User Segment Activation

Welcome Page Announcements

Settings

Project Settings

Roles and Teammates

Organization Settings

Global Project Filters

Portfolio Analytics

Analytics Data Manager

Analytics Data Manager Overview

Events

Event Properties

User Properties

Revenue Mapping

Export Data

UTM Guide

Analyses

Analyses Introduction

Segmentation: Basics

Getting Started

Visualization Options

For Clauses

Date Range and Time Settings

Calculator

Numerical Settings

Segmentation: Advanced

Assisted Analysis

Properties Explorer

Frequency in Segmentation

Trends in Segmentation

Did [not] Perform Clauses

Cumulative vs. Non-Cumulative Analysis in Segmentation

Total Count of vs. Users Who Performed

Save Your Segmentation Analysis

Export Results in Segmentation

Explore Users from Segmentation

Funnels: Basics

Getting Started with Funnels

Group By Settings

Conversion Window

Tracking Properties

Date Range and Time Settings

Visualization Options

Interpreting a Funnel Analysis

Funnels: Advanced

Group By

Filters

Conversion over Time

Conversion Order

Trends

Funnel Direction

Multi-path Funnels

Analyze as Cohort from Funnel

Save a Funnel Analysis

Explore Users from a Funnel

Export Results from a Funnel

Cohorts

Getting Started with Cohorts

Analysis Modes

Save a Cohort Analysis

Export Results

Explore Users

Saved Analyses

Manage Analyses in Dashboards

Journeys

Getting Started

Event Menu

Visualization

Ending Event

Save a Journey Analysis

Users

Getting Started

User Activity Timelines

Time Settings

Export Results

Save A User Analysis

Query Builder

Data Dictionary

Query Builder Overview

Modify Filters With And/Or Clauses

Query-time Sampling

Query Notes

Filter Where Clauses

Event vs. User Properties

Group By Clauses

Annotations

Cross-tool Compatibility

Apply All for Filter Where Clauses

Date Range and Time Settings Overview

User Attributes at Event Time

Understanding the Screen View Event

User Aliasing

Dashboards

Dashboards––Getting Started

Manage Dashboards

Organize Dashboards

Dashboard Filters

Scheduled Reports

Favorites

Time and Interval Settings in Dashboards

Query Notes in Dashboards

Analytics Resources

The Demo Environment

Keyboard Shortcuts

User Segments

Tutorials

Analytics for Marketers

Analytics for Product Managers

Compare Conversion Across Acquisition Sources

Analyze Product Feature Usage

Identify Points of User Friction

Time-based Subscription Analysis

Dashboard Tips and Tricks

Understand Product Stickiness

Optimize User Flow with A/B Testing

APIs

User Segments Export API

Dashboard Filter API

Warehouse Sync

Data Privacy Controls

Data Subject Requests

Default Service Limits

Feeds

Cross-Account Audience Sharing

Approved Sub-Processors

Import Data with CSV Files

Import Data with CSV Files

CSV File Reference

Glossary

Video Index

Analytics (Deprecated)
Identity Providers

Single Sign-On (SSO)

Setup Examples

Settings

Debug Console

Data Warehouse Delay Alerting

Introduction

Developer Docs

Introduction

Integrations

Introduction

Rudderstack

Google Tag Manager

Segment

Data Warehouses and Data Lakes

Advanced Data Warehouse Settings

AWS Kinesis (Snowplow)

AWS Redshift (Define Your Own Schema)

AWS S3 (Snowplow Schema)

AWS S3 Integration (Define Your Own Schema)

BigQuery (Snowplow Schema)

BigQuery Firebase Schema

BigQuery (Define Your Own Schema)

GCP BigQuery Export

Snowflake (Snowplow Schema)

Snowplow Schema Overview

Snowflake (Define Your Own Schema)

APIs

Dashboard Filter API (Deprecated)

REST API

User Segments Export API (Deprecated)

SDKs

SDKs Introduction

React Native

iOS

Android

Java

JavaScript

Python

Object API

Developer Basics

Aliasing

Integrations

24i

Event

Abakus

Event

Aarki

Audience

Actable

Feed

ABTasty

Audience

Adikteev

Audience

Event

AdChemix

Event

AdMedia

Audience

Adjust

Event

Feed

Adobe Marketing Cloud

Cookie Sync

Server-to-Server Events

Platform SDK Events

Adobe Audience Manager

Audience

Adobe Campaign Manager

Audience

Adobe Target

Audience

AdPredictive

Feed

Airship

Audience

Event

Feed

AgilOne

Event

Algolia

Event

Alooma

Event

AlgoLift

Event

Feed

Amazon Advertising

Audience

Amazon Kinesis

Event

Amazon Kinesis Firehose

Event

Audience

Amazon Redshift

Data Warehouse

Amazon S3

Event

Amazon SNS

Event

Amobee

Audience

Amazon SQS

Event

Amplitude

Forwarding Data Subject Requests

Event

Analytics

Audience

Event

Forwarding Data Subject Requests

Ampush

Audience

Event

Anodot

Event

Antavo

Feed

AppLovin

Audience

Event

Apptentive

Event

Apteligent

Event

Apptimize

Event

Attentive

Event

Feed

Attractor

Event

Microsoft Azure Blob Storage

Event

Batch

Event

Audience

Bidease

Audience

Bing Ads

Event

Bluecore

Event

Bluedot

Feed

Blueshift

Feed

Event

Forwarding Data Subject Requests

Branch

Feed

Event

Forwarding Data Subject Requests

Branch S2S Event

Event

Bugsnag

Event

Braze

Audience

Forwarding Data Subject Requests

Feed

Event

Button

Audience

Event

Cadent

Audience

CleverTap

Audience

Event

Feed

Census

Feed

ciValue

Event

Feed

comScore

Event

Conversant

Event

Cordial

Audience

Feed

Cortex

Event

Feed

Forwarding Data Subject Requests

Crossing Minds

Event

Custom Feed

Custom Feed

Criteo

Audience

Event

CustomerGlu

Event

Feed

Customer.io

Audience

Event

Feed

Databricks

Data Warehouse

Datadog

Event

Didomi

Event

Dynalyst

Audience

Dynamic Yield

Audience

Event

Edge226

Audience

Emarsys

Audience

Epsilon

Event

Everflow

Audience

Facebook

Audience

Event

Facebook Offline Conversions

Event

Google Analytics for Firebase

Event

Flurry

Event

Fiksu

Audience

Event

Flybits

Event

ForeSee

Event

AppsFlyer

Event

Feed

Forwarding Data Subject Requests

Formation

Event

Feed

Foursquare

Audience

Feed

FreeWheel Data Suite

Audience

Friendbuy

Event

Google Ad Manager

Audience

Google Ads

Audience

Event

Google Analytics

Event

Google Analytics 4

Event

Google BigQuery

Audience

Data Warehouse

Google Cloud Storage

Audience

Event

Google Enhanced Conversions

Event

Google Marketing Platform

Cookie Sync

Audience

Event

Google Marketing Platform Offline Conversions

Event

Google Pub/Sub

Event

Heap

Event

Google Tag Manager

Event

Herow

Feed

Hightouch

Feed

Ibotta

Event

Hyperlocology

Event

Impact

Event

Indicative

Audience

Event

InMobi

Audience

Event

InMarket

Audience

Insider

Audience

Event

Feed

Inspectlet

Event

Intercom

Event

iPost

Audience

Feed

ironSource

Audience

Jampp

Event

Audience

Iterable

Audience

Event

Feed

Kayzen

Event

Audience

Kafka

Event

Kissmetrics

Event

Klaviyo

Event

Audience

Kochava

Feed

Event

Forwarding Data Subject Requests

Kubit

Event

Leanplum

Event

Feed

Audience

LaunchDarkly

Feed

LifeStreet

Audience

Liftoff

Audience

Event

LiveLike

Event

Localytics

Event

Liveramp

Audience

MadHive

Audience

mAdme Technologies

Event

Mailchimp

Feed

Event

Audience

Marigold

Audience

Mautic

Audience

Event

MediaMath

Audience

Mintegral

Audience

Mediasmart

Audience

Microsoft Azure Event Hubs

Event

MoEngage

Event

Audience

Feed

Moloco

Event

Audience

Monetate

Event

Mixpanel

Event

Audience

Forwarding Data Subject Requests

Movable Ink

Event

Movable Ink - V2

Event

Multiplied

Event

myTarget

Event

Audience

Nanigans

Event

Nami ML

Feed

Narrative

Audience

Event

Feed

NCR Aloha

Event

Neura

Event

OneTrust

Event

Optimizely

Audience

Event

Oracle Responsys

Audience

Event

Paytronix

Feed

Oracle BlueKai

Event

Persona.ly

Audience

Personify XP

Event

PieEye

Inbound Data Subject Requests

Pilgrim

Event

Feed

Pinterest

Audience

Event

Plarin

Event

Postie

Event

Audience

Primer

Event

Punchh

Event

Audience

Feed

Qualtrics

Event

Quantcast

Event

Radar

Event

Feed

Rakuten

Event

Reddit

Audience

Event

Regal

Event

Remerge

Audience

Event

Reveal Mobile

Event

Retina AI

Event

Feed

RevenueCat

Feed

Rokt

Audience

Event

RTB House

Audience

Event

Sailthru

Audience

Event

Salesforce Email

Audience

Feed

Event

Salesforce Sales and Service Cloud

Event

Salesforce Mobile Push

Event

Samba TV

Audience

Event

Scalarr

Event

SessionM

Event

Feed

SendGrid

Audience

Feed

ShareThis

Audience

Feed

Shopify

Custom Pixel

Feed

Signal

Event

SimpleReach

Event

Singular

Feed

Event

Singular-DEPRECATED

Event

Skyhook

Event

Slack

Event

Smadex

Audience

SmarterHQ

Event

Snapchat Conversions

Event

Snapchat

Event

Audience

Snowflake

Data Warehouse

Snowplow

Event

Split

Event

Feed

Sprig

Audience

Event

Splunk MINT

Event

StartApp

Audience

Statsig

Event

Feed

Stormly

Event

Audience

Swrve

Event

Feed

Talon.One

Event

Audience

Feed

Loyalty Feed

Tapjoy

Audience

Tapad

Audience

Taplytics

Event

Taptica

Audience

Teak

Audience

Ticketure

Feed

The Trade Desk

Audience

Cookie Sync

Event

TikTok Event

Audience

Event

Audience (Deprecated)

Audience Migration

Treasure Data

Audience

Event

Triton Digital

Audience

Twitter

Audience

Event

TUNE

Event

Valid

Event

Vkontakte

Audience

Voucherify

Audience

Event

Webhook

Event

White Label Loyalty

Event

Vungle

Audience

Webtrends

Event

Wootric

Event

Xandr

Audience

Cookie Sync

Yotpo

Feed

Yahoo (formerly Verizon Media)

Audience

Cookie Sync

YouAppi

Audience

Z2A Digital

Event

Audience

Zendesk

Event

Feed

Quadratic Labs

Event

Pushwoosh

Audience

Event

Event

Rakuten Advertising delivers cutting-edge marketing and advertising solutions that harness advanced data and insights to connect brands with engaged audiences worldwide. Their comprehensive suite of affiliate, display, and search offerings empowers marketers to drive conversions, build lasting customer relationships, and accelerate business growth.

Prerequisites

This integration requires some set-up before integrating with mParticle. These steps come directly from Rakuten’s documentation and any questions here will likely be best answered by them.

mParticle Rakuten Implementation

Step 1: Set Gateway Entry Functionality

Publisher links in Rakuten Affiliate will typically direct users to a gateway page. While a gateway page isn’t strictly required, the functionality is, e.g., every page on your site could perform the functions of the gateway page.

The gateway page has two functions. The first is to set a cookie and the second is to redirect users to another site if Rakuten Affiliate passes to the gateway page the parameter url. For more detailed implementation info, please ask your Implementation Specialist for Entry Gateway Page Function Implementation Guidelines.

Incoming HTTP requests to the gateway page may or may not include a url value:

http://www.yoursite.com/rakuten?siteID=1KW2Xiq9xN0-4.c_9w1X8XpO94TU14hg3D&ranMID=1234&ranEAID=1KW2Xiq9xN0&ranSiteID=1KW2Xiq9xN0-4.c_9w1X8XpO94TU14hg3D
http://www.yoursite.com/cgi-bin/rakuten?siteID=1KW2Xiq9xN0-4.c_9w1X8XpO94TU14hg3D&url=http%3A//www.yoursite.com/anotherpage.htm%3FranMID%3D1234%26ranEAID%3D1KW2Xiq9xN0%26ranSiteID%3D1KW2Xiq9xN0-4.c_9w1X8XpO94TU14hg3D

You will set a persistent server-side cookie (rmStoreGateway) on your web server using the Set-Cookie HTTP response header mapping values to cookie key-value pairs in the following table:

Note: These cookies will be required when sending data to mParticle

Name Cookie Key Source Example Value
Merchant ID amid ranMID query string parameter 1234
Tracking ID atrv ranSiteID query string parameter 1KW2Xiq9xN0-4.c_9w1X8XpO94TU14hg3D
UTC Landing Timestamp ald Generated by you 20240101_1446

The cookie you set should expire two years from the current date. Set or overwrite a new cookie every time a user enters the gateway page with a ranSiteID value in the query string. There is no need to retrieve values from cookies that may have been set during prior visits. The last click to refer a user to your site identifies the publisher who receives the commission.

Function 2: Redirect Users

When a user comes to the gateway page, in addition to checking for ranSiteID also check for a url value. If a url value exists, redirect the user to that site. If no url value exists, redirect the user to your home page. In redirecting users, do not pass the ranSiteID value from page to page.

For the incoming HTTP request examples from the previous section, Rakuten is the gateway page that you will build. All Rakuten affiliate-referred traffic will be directed to this page. Inform your Rakuten Implementation Specialist what you would like to call the gateway page. In the second example, the url parameter contains the URL-encoded http://www.yoursite.com/anotherpage.htm with the Rakuten Affiliate parameters ranMID, ranEAID, and ranSiteID.

Step 2: Log Commissionable Actions

When an order checkout is complete, two additional fields need to be recorded to your database: the ranSiteID value and the date-time entered. The database fields may be defined as:

Name Type
ranSiteId VarChar(255)
date-time entered Date

These values can be retrieved from the cookie set by the gateway page in Step 1. Next, match the ranSiteID and date-time entered information with the order information.

Once you have set-up and can use these cookie values, you may use them to leverage mParticle’s Rakuten integration.

Supported Platforms

The mParticle event integration for Rakuten supports connections with the following inputs:

  • iOS
  • Android
  • Web
  • Data Feeds
  • tvOS
  • SmartTV
  • Roku
  • Xbox
  • FireTV
  • Alexa

Supported user identities

mParticle can forward the following user identities to Rokt:

  • Email
  • Customer ID
  • Other
  • Other - Other10

Supported Event Types

  • Commerce Event

Event Mappings

Event Data Mappings

mParticle Field Type Rakuten Field Required
Merchant ID Config Setting mid True
transaction_id Transaction Field ord True
Rakuten.Tr Custom Flag tr True
Rakuten.Land Custom Flag land True
timestamp_unixtime_ms Event Attribute date True

Commerce Mappings

mParticle Field Type Rakuten Field Required
Price * Quantity Product Attributes amtlist True
ID Product Attribute skulist True
Quantity Product Attribute qlist True
Name Product Attribute namelist True
Brand Product Attribute brandlist False
Category Product Attribute catlist False
Coupon Code Product Attribute couponlist False
Currency Code Product Attribute cur True

Optional Transaction Fields

Custom Attribute Field Type Rakuten Field
altord Custom Event Attribute altord
catidlist Custom Event Attribute catidlist
cc Custom Event Attribute cc
commreason Custom Event Attribute commreason
coupon Custom Event Attribute coupon
custscore Custom Event Attribute custscore
custstatus Custom Event Attribute custstatus
disamt Custom Event Attribute disamt
disamtlist Custom Event Attribute disamtlist
distypelist Custom Event Attribute distypelist
isclearancelist Custom Event Attribute isclearancelist
iscomm Custom Event Attribute iscomm
ismarketplacelist Custom Event Attribute ismarketplacelist
issalelist Custom Event Attribute issalelist
Itmstatuslist Custom Event Attribute Itmstatuslist
marginlist Custom Event Attribute marginlist
markdownlist Custom Event Attribute markdownlist
ordstatus Custom Event Attribute ordstatus
segment Custom Event Attribute segment
sequencelist Custom Event Attribute sequencelist
shipbylist Custom Event Attribute shipbylist
shipcountry Custom Event Attribute shipcountry
shipidlist Custom Event Attribute shipidlist
shipped Custom Event Attribute shipped
sitename Custom Event Attribute sitename
storecat Custom Event Attribute storecat
storeid Custom Event Attribute storeid
taxexemptlist Custom Event Attribute taxexemptlist

Custom Flags

Rakuten.Tr

Cookie value “atrv” (ranSiteID) set by your gateway page

Rakuten.Land

Cookie value “ald” (UTC Landing Timestamp) set by your gateway page

Configuration Settings

Setting Name Data Type Default Value Description
Rakuten Merchant ID Integer Rakuten Merchant ID we’re tracking events on. Same as ranMID used for gateway page.
External User Identity Type Identity Type Enum Email Identity Type to send to Rakuten as Rakuten’s Customer ID
    Last Updated: March 21, 2025