Below, you can see a list of the following default mobile events along with their method signatures and examples:
SDK Events
Session events are automatically triggered based on user actions on the application and campaigns and do not require any configuration from the customer's end.
| Event | How does it work? |
|---|---|
| Mobile App Opened | Triggered when the app is opened |
| Session Start | Triggered every time a session starts |
| Session Start From Push | Triggered if a session starts upon a click on a push notification. Test pushes do not trigger this event. |
| Push Session | Triggered if a session starts upon a click on a push notification. Test pushes do not trigger this event. |
| Push Delivered | Triggered when a push is delivered |
| App Push Opened | Triggered when an app push is opened |
| InApp Seen | Triggered when an inApp is seen along with the inApp ID and variant ID information |
| Mobile Social Proof Seen | Triggered when a social proof is seen |
Page Visit Events
You should trigger the page visit events when a user visits the respective type of page in the application. The default page visit events include the Homepage View, Listing Page View, Product Detail Page View, Cart Page View, and Confirmation Page View. See below for their method signatures and examples.
Homepage View
This method allows you to tag the visits on your homepage as an event. You can call this method each time a user visits your homepage.
Method Signature
static visitHomePage()Method Example
RNInsider.visitHomePage();Listing Page View
This method allows you to tag the visits on your listing page as an event. You can call this method each time a user visits your listing page along with the following event parameters: taxonomy, type, referrer, key, show_on_segment, is_pii, device_type, url, and source.
| Parameter | Data Type |
|---|---|
| taxonomy | Array of string |
Method Signature
static visitListingPage(taxonomy: Array<string>)Method Example
const taxonomy = ['taxonomy1', 'taxonomy2', 'taxonomy3'];
RNInsider.visitListingPage(taxonomy);Product Detail Page View
This method allows you to tag the visits on your product page as an event. You can call this method each time a user visits your product page along with the following event parameters: product ID, name, taxonomy, imageURL, price, and currency.
This event is required for the Social Proof method.
| Parameter | Data Type |
|---|---|
| product | object (Insider product object) |
Method Signature
static visitProductDetailPage(product: RNInsiderProduct)Method Example
RNInsider.visitProductDetailPage(insiderExampleProduct);Cart Page View
This method allows you to tag the visits on your cart page as an event. You can call this method each time a user visits your cart page along with the following event parameters: product ID, name, taxonomy, imageURL, price, and currency.
| Parameter | Data Type |
|---|---|
| insiderProduct | Array of Insider product object |
Method Signature
static visitCartPage(products: Array<RNInsiderProduct>)Method Example
RNInsider.visitCartPage(insiderExampleProducts);Wishlist Page View
This method allows you to tag the visits on your wishlist page as an event. You can call this method each time a user visits your wishlist page along with the following event parameters: product ID, name, taxonomy, imageURL, price, and currency.
| Parameter | Data Type |
|---|---|
| insiderProduct | Array of Insider product object |
Method Signature
static visitWishlistPage(products: Array<RNInsiderProduct>): void;Method Example
RNInsider.visitWishlistPage([insiderExampleProduct]);Confirmation Page View (Purchase)
This method allows you to tag the visits on your confirmation page as an event. You can call this method each time a user makes a purchase along with the following event parameters: product ID, name, taxonomy, imageURL, price, and currency.
This event is required for the Track Revenue method.
| Parameter | Data Type |
|---|---|
| saleID | String |
| product | Object (Insider product object) |
Method Signature
static itemPurchased(uniqueSaleID: string, product: RNInsiderProduct)Method Example
RNInsider.itemPurchased('uniqueSaleID', insiderExampleProduct);Sign Up Confirmation
This method allows you to tag the visits on your sign up confirmation page as an event. You can call this method each time a user signs up to your application.
Method Signature
static signUpConfirmation()Method Example
RNInsider.signUpConfirmation()Cart Events
You should trigger the page visit events when a user visits the respective type of page in the application. The default cart events include the Item Added to Cart, Item Removed from Cart, and Cart Cleared. See below for their method signatures and examples.
Item Added to Cart (Add to Cart)
You can call this method whenever a user adds a product (Insider product object) to their cart along with the following event parameters: product ID, name, taxonomy, imageURL, price, and currency.
This event is required for the Cart Reminder method.
| Parameter | Data Type |
|---|---|
| product | Object (Insider product object) |
Method Signature
static itemAddedToCart(product: RNInsiderProduct)Method Example
RNInsider.itemAddedToCart(insiderExampleProduct);Item Removed from Cart
You can call this method whenever a user removes a product (Insider product object) from their cart along with the following event parameters: product ID, name, taxonomy, imageURL, price, and currency.
This event is required for the Cart Reminder method.
| Parameter | Data Type |
|---|---|
| productID | String |
Method Signature
static itemRemovedFromCart(productID: string)Method Example
RNInsider.itemRemovedFromCart('productID');Cart Cleared
You can call this method whenever a user removes all products from their cart or when the last Insider product object is removed from the cart.
This event is required for the Cart Reminder method.
Method Signature
static cartCleared()Method Example
RNInsider.cartCleared();Wishlist events
You should trigger the wishlist events when a user takes the action for the respective type of wishlist moves in the application. The default wishlist events include the Item Added to Wishlist, Item Removed from Wishlist, and Wishlist Cleared. See below for their method signatures and examples.
Item Added to Wishlist (Add to Wishlist)
You can call this method whenever a user adds a product (Insider product object) to their wishlist along with the following event parameters: product ID, name, taxonomy, imageURL, price, and currency.
| Parameter | Data Type |
|---|---|
| product | Object (Insider product object) |
Method Signature
static itemAddedToWishlist(product: RNInsiderProduct)Method Example
RNInsider.itemAddedToWishlist(insiderExampleProduct);Item Removed from Wishlist
You can call this method whenever a user removes a product (Insider product object) from their wishlist along with the following event parameters: product ID, name, taxonomy, imageURL, price, and currency.
| Parameter | Data Type |
|---|---|
| productID | String |
Method Signature
static itemRemovedFromWishlist(productID: string)Method Example
RNInsider.itemRemovedFromWishlist(productID);Wishlist Cleared
You can call this method whenever a user removes all products from their wishlist or when the last Insider product object is removed from the wishlist.
Method Signature
static wishlistCleared(): void;Method Example
RNInsider.wishlistCleared();