CategoriesView All

Event

Primer - Instantly deploy native screens personalized for every new user.

Supported Features

  • User Attributes
  • eCommerce Events
  • App Events
  • Session Events

Prerequisites

In order to enable mParticle’s integration with Primer you will need the SDK Token for your Primer project, and to manually set up and start the Primer SDK.

  1. Sign up for an account with Primer and get your Token from the General tab in the Settings page.

  2. Whitelist Primer’s domain:

    //XML code for whitelisting Primer's domain
    
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSExceptionDomains</key>
        <dict>
            <key>goprimer.com</key>
            <dict>
                <key>NSIncludesSubdomains</key>
                <true/>
                <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
                <true/>
            </dict>
        </dict>
    </dict>
  3. The Primer integration only supports the iOS platform and you must add the Primer Kit to your app.

SDK Initialization

//Initialize the Primer Kit
[Primer startWithToken:@"YOUR_SDK_TOKEN"];

//Present the onboarding experience
[Primer presentExperience];
  1. Start the SDK in -application:didFinishLaunchingWithOptions: prior to starting the mParticle SDK
  2. Present an onboarding experience by calling the presentation method in the -viewDidLoad of your first view controller to be presented to the user on app load.

For more information, and additional optional integration features, please refer to the Primer iOS SDK Documentation.