Send events to Movable Ink using RudderStack cloud mode.
6 minute read
After you have successfully instrumented Movable Ink as a destination in RudderStack, follow this guide to correctly send your events to Movable Ink in cloud mode.
Find the open source transformer code for this destination in the GitHub repository.
Create event mapping in Movable Ink
To send an event successfully to Movable Ink via RudderStack, you must set up its mapping in Movable Ink:
Select the preferred endpoint and scroll to the Event Mappings section.
Click New event mapping and fill the details:
Refer to the identify and track sections to know about the Match criteria value.
Click Create to create the event successfully.
Click the created event, enter the JSON paths for the event properties (refer to the RudderStack JSON Path in the corresponding event’s mapping table in below sections) and click Save Fields:
Turn the event status as Activate.
Identify
You can use the identify call to create or update a user in Movable Ink.
RudderStack maps the identify call to Movable Ink’s Identify event. You must set up the identify event mapping in Movable Ink with the match criteria as .type == "identify". See Create event mapping in Movable Ink for more information.
You can send up to 1000 events in a batch with the batch request size not exceeding 1 MB.
Supported mappings
RudderStack maps the following identify event fields to the corresponding Movable Ink schema fields:
RudderStack property path
Movable Ink schema field
Data type
.userId Required
UserID
String
.anonymousId Required
AnonymousId
String
.timestamp Required
Timestamp
Number
.context.timezone
Timezone
String
Track
You can use a track call to send the ecommerce and custom events to Movable Ink. The match criteria for any track event in the Movable Ink dashboard is .event == "Event Name". See Create event mapping in Movable Ink for more information.
Movable Ink supports the following predefined event schemas (mentioned with their corresponding match criterias):
Product (Product Viewed)
Category (Category Viewed)
CartAdd (Product Added)
Search (Products Searched)
Conversion (Order Completed)
CartRemove (Product Removed)
You can also create custom event schemas by clicking New Schema in the Movable Ink dashboard.
Movable Ink supports upto 20 custom properties for the Product, CartAdd, and CartRemove events. You must provide the custom property’s name and JSON path by clicking the event and adding the values in the schema fields.
You can send up to 1000 events in a batch with the batch request size not exceeding 1MB.
Product
The match criteria for Product event in Movable Ink is .event == "Product Viewed".
A sample code is shown:
rudderanalytics.track("Product Viewed",{product_id:"622c6f5d5cf86a4c77358033",sku:"8472-998-0112",category:"Games",name:"Cones of Dunshire",brand:"Wyatt Games",variant:"expansion pack",price:49.99,quantity:5,coupon:"PREORDER15",currency:"USD",position:1,url:"https://www.website.com/product/path",image_url:"https://www.website.com/product/path.webp",})
RudderStack maps the following properties to Movable Ink schema fields for Product event:
RudderStack property path
Movable Ink schema field
Data type
Note
.properties.product_id Required
ID
String
-
.timestamp Required
Timestamp
String
-
.userId Required, if anonymousId is absent.
UserID
String
-
.anonymousId Required, if userId is absent.
AnonymousID
String
-
.properties.categories[]
Categories
Array
You can pass the category URL and ID under categories. For example, .url, .id.
.channel
Channel
String
-
.properties.price
Price
Number
-
.context.timezone
Timezone
Number
-
.properties.name
Title
String
-
.properties.url
URL
String
-
Category
RudderStack does not support any standard ecommerce event corresponding to the Category event but recommends to set the match criteria in Movable Ink as Category Viewed. However, you can configure any other event name and JSON path in the Movable Ink schema field and pass the same to RudderStack.
RudderStack maps the following properties to Movable Ink schema fields for Category event:
RudderStack property path
Movable Ink schema field
Data type
.properties.category_id Required
CategoryID
String
.timestamp Required
Timestamp
String
.userId Required, if anonymousId is absent.
UserID
String
.anonymousId Required, if userId is absent.
AnonymousID
String
.channel
Channel
String
.context.timezone
Timezone
Number
.properties.name
Title
String
.properties.url
CategoryURL
String
CartAdd
The match criteria for CartAdd event in Movable Ink is .event == "Product Added".
A sample code is shown:
rudderanalytics.track("Product Added",{product_id:"622c6f5d5cf86a4c77358033",sku:"8472-998-0112",category:"Games",name:"Cones of Dunshire",brand:"Wyatt Games",variant:"expansion pack",price:49.99,quantity:5,coupon:"PREORDER15",position:1,url:"https://www.website.com/product/path",image_url:"https://www.website.com/product/path.webp",})
RudderStack maps the following properties to Movable Ink schema fields for CartAdd event:
RudderStack property path
Movable Ink schema field
Data type
Note
.properties.product_id Required
ID
String
-
.timestamp Required
Timestamp
String
-
.userId Required, if anonymousId is absent.
UserID
String
-
.anonymousId Required, if userId is absent.
AnonymousID
String
-
.properties.categories[]
Categories
Array
You can pass the category URL and ID under categories. For example, .url, .id.
.channel
Channel
String
-
.properties.price
Price
Number
-
.context.timezone
Timezone
Number
-
.properties.name
Title
String
-
.properties.url
URL
String
-
Search
The match criteria for Search event in Movable Ink is .event == "Products Searched".
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.