iOS Integration
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.
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.
To send events, get event handler after you initialized the cartup iOS library.
let eventHandler = cartup.getEventHandler()
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)
Last modified 1yr ago