Cartup docs
  • Introduction
  • Browse Topics
  • Getting Started
  • Recommendation Configuration
    • Get Recommendation Types
    • Create Recommendation
      • Rules
    • Get Recommendation
    • Update Recommendation
    • Delete Recommendation
    • Create Themes
    • Get Theme List
    • Get Theme
    • Update Theme
    • Delete Theme
  • Recommendations
  • About Recommendations
  • Crosssell Products
  • Content Based Recommendation
  • Trending Product
  • Trending in category
  • Viewed also viewed
  • Recentviews
  • Category Based Recommendations
  • Bought Category Items
  • Bought also bought
  • Viewed Category Items
  • Inspired By Browser History
  • Based on Wishlist
  • Search
  • Search Configurations
  • Create Search Config
  • Get Search Config
  • Update Search Config
  • Delete Search Config
  • Upload Synonym
  • Upload Stop Word
  • Upload OneWay Synonym
  • Get synonym csv file
  • Get OneWay Synonym csv file
  • Get Stopwords csv file
  • Delete Synonym CSV file
  • Delete OneWaySynonym CSV file
  • Delete Stopwords CSV file
  • Search Suggestions
    • Get Search suggestions
  • Search Result
    • Get Search result
  • Shopify app configuration
  • Events Configuration
  • Shopify Widget Configuration
    • Create Widget
    • Verify the Widget
    • To create widget theme
  • Shopify badging configuration
    • To verify default badges
    • To create new badges
      • Create badge
      • Verify the badge
  • Shopify search configuration
    • To verify default search
    • To reconfigure your search
      • AI personalization & Ranking
      • Synomyns & Rules
      • Auto Facets
      • Advanced
    • To create search bar theme
    • To create search results theme
  • Shopify plp configuration
    • To configure plp
    • Verify plp
    • To create plp result theme
  • Events
  • Mobile Integration
  • iOS Integration
  • Android Integration
Powered by GitBook
On this page
  • Initialize Cartup IOS SDK
  • Sending Data
  • Event Handler
  • Sending Tracking Events

Was this helpful?

iOS Integration

Initialize Cartup IOS SDK

Once you've set up your build system or IDE to use the Cartup AI iOS library, you can initialize it in your code by calling init with your application context and your Cartup AI secret token.

import Cartup
cartup.init(orgname: String, orgid: String, secretkey: String, domain: String)

Parameters

Description

orgname

YOUR_ORGNAME Example: “example.org”

orgid

YOUR_ORGID

secretkey

YOUR_SECRET_KEY

domain

YOUR_DOMAIN

You can find your secret key, orgid in the Cartup console.

Sending Data

You can send an event from anywhere in your application. Better understand user/product behavior by storing details that are specific to the event (properties). After initializing the library, you can send the events.

Event Handler

To send events, get event handler after you initialized the cartup iOS library.

let eventHandler = cartup.getEventHandler()

Sending Tracking Events

Function to send tracking events. The function sends user browsing events. There are multiple labels based on page type for example (product view/cart page etc)

PreviousTo create plp result themeNextAndroid Integration

Last updated 3 years ago

Was this helpful?