From b317e1b96b0db2d5666c7e112ad0b3bb798c9eea Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Thu, 28 Apr 2022 10:21:16 -0700 Subject: [PATCH] set the writeKey on segment config --- .../OmnivoreKit/Sources/Utils/EventTracking/EventTracker.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/Utils/EventTracking/EventTracker.swift b/apple/OmnivoreKit/Sources/Utils/EventTracking/EventTracker.swift index 737c4f53b..4a130addc 100644 --- a/apple/OmnivoreKit/Sources/Utils/EventTracking/EventTracker.swift +++ b/apple/OmnivoreKit/Sources/Utils/EventTracking/EventTracker.swift @@ -25,7 +25,7 @@ private let segment: Analytics? = { return nil } - let config = Configuration(writeKey: "") + let config = Configuration(writeKey: writeKey) .flushAt(20) // default is 20 .trackApplicationLifecycleEvents(false) // default is true .autoAddSegmentDestination(false) // default is true