Rakuten Advertising Tag Setup Guide
This article describes how to set up the Rakuten Advertising tag in your Tag Management account.
Tag tips
- If you paste the
affiliateConfigobject in the Extract From Code field, the tag automatically populatesranMID,discountType, andincludeStatusparameters. - Conversion fires when Order ID is set.
- Affiliate functionality is only available when Allow Commission is set to
True. - Supports these E-Commerce extension parameters:
- Order ID (
_corder) - Tax Amount (
_ctax) - Currency (
_ccurrency) - Promo Code (
_cpromo) - Customer ID (
_ccustid) - List of Product IDs (
_cprod) - List of Names (
_cprodname) - List of Quantities (
_cquan) - List of Prices (
_cprice) - List of Discounts (
_cpdisc)
- Order ID (
Tag configuration
Go to the tag marketplace to add a new tag. For more information, see About tags.
When adding the tag, configure the following settings:
- Tracking Key: Your site-specific tracking key issued by your Rakuten Marketing integration contact.
- Rakuten Affiliate Merchant ID: A 4 or 5-digit merchant ID.
- Tax Rate: Tax rate as a percentage value. For example,
20for UK VAT of 20%. - Conversion Type: The default value is
sale, but can be set to anything. - Discount Type: The discount type for affiliate sales. The default value is
order, but can be set toitem. - Include Status: Whether to include the order status in the tag. The default value is
false.
Data mappings
Data mappings send values from data layer variables to the corresponding variables in the vendor tag. For more information, see About data mappings.
The available categories are:
Standard
| Variable | Description |
|---|---|
trackingKey |
|
conversionType |
|
customerStatus |
|
discountAmount |
|
optionalData |
|
E-Commerce
Array variables (product_id, product_name, product_quantity, product_unit_price, product_sku) are mapped into Rakuten line items. The Rakuten library then builds the skulist, namelist, qlist, amtlist, and other list-style payload fields from those line items.
| Variable | Description |
|---|---|
order_id |
|
order_tax |
|
order_currency |
|
order_coupon_code |
|
order_consumed |
|
order_shipped_country |
|
order_status |
|
order_shipped |
|
order_site_name |
|
customer_id |
|
customer_score |
|
customer_country |
|
product_id |
|
product_name |
|
product_quantity |
|
product_sku |
|
product_unit_price |
|
product_discount |
|
product_brand |
|
product_category |
|
product_category_id |
|
product_coupon |
|
product_is_clearance |
|
product_is_sale |
|
product_margin |
|
Affiliate
| Variable | Description |
|---|---|
allowCommission |
|
affiliateConfig.ranMID |
|
affiliateConfig.taxRate |
|
affiliateConfig.discountType |
|
affiliateConfig.tagType |
|
affiliateConfig.includeStatus |
|
affiliateConfig.removeOrderTax |
|
affiliateConfig.removeTaxFromProducts |
|
affiliateConfig.removeTaxFromDiscount |
|
affiliateConfig.centValues |
|
affiliateConfig.nonCentCurrencies |
|
This page was last updated: November 18, 2026