Skip to content

derhub/flutter_klaviyo

Repository files navigation

flutter_klaviyo

Unofficial Flutter plugin for klaviyo ios

Setup

Setup public key

read more here https://github.com/klaviyo/klaviyo-swift-sdk

FlutterKlaviyo.setupWithPublicAPIKey(apiKey: 'YOUR_KLAVIYO_PUBLIC_API_KEY');

Setup user email

FlutterKlaviyo.setUpUserEmail(userEmail: "yes@example.com");

Track Event

note: It only support name only event

Klaviyo.sharedInstance.trackEvent(eventName: "User login")

Setup with push notification

note: this is usually run after FlutterKlaviyo.setUpUserEmail(...

FlutterKlaviyo.setUpUserEmail(userEmail: "yes@example.com");
FlutterKlaviyo.initNotification();

Links