Tracking in iOS Applications
This guide explains how to integrate Roivenue Tracking into your iOS app to measure key user actions such as page views and conversions (e.g., purchases or custom goals).
Prerequisites
What the Tracking API Expects
{
"propertyId": "adbfb3aa-xxxx-xxxx-xxxx-xxxxxxxx",
"type": "pageview",
"timestamp": "2024-10-30T07:50:40",
"url": "https://example.com/?utm_source=facebook",
"deviceId": "20904e-f1e3-79f2-b5b7-00d6a7bfe57e",
"userId": "someUserHashed",
"referer": "$direct",
"screenWidth": 1170,
"screenHeight": 2532,
"utmSource": "facebook",
"utmMedium": "cpc",
"utmCampaign": "autumn_sale",
"conversionType": "purchase",
"conversionId": "ORD-001",
"conversionValue": 149.99,
"currencyCode": "EUR"
}Implementation Overview
Capturing and Managing UTM Parameters
Step 1 β Create the UTM Manager
Step 2 β Hook into App Lifecycle
Step 3 β Create the Tracker Class
Step 4 β Track Page Views
Step 5 β Track Conversions
Last updated
Was this helpful?