Dynamic Yield

Last Updated - Platform 25.0 - SDK 20.0

The PoqDynamicYield integration allows the PoqSDK to send events to DynamicYield. Dynamic Yield does not have a native iOS SDK so this integration implements a DynamicYieldService and repository.

This integration also decorates all network tasks with headers by injecting a NetworkTaskDecorator for the shared session. These headers identify the Dynamic Yield user and session for our BE to return dynamic content.

Set up

https://github.com/poqcommerce/Poq.iOS.DynamicYield.git

  1. Make sure the DynamicYield dashboard is set up and copy down your API key.
  2. Add the PoqDynamicYield framework from the URL above to your project. How?
  3. Register the integration in your AppDelegate.swift.
import PoqEmarsys
class AppDelegate: BaseAppDelegate {
override func setupModules() {
PoqPlatform.shared.addModule(PoqDynamicYield())
}
}
  1. Add the dynamicYieldKey to your AppConfig.json.

You can also set the dynamicYieldApiHost to US (https://dy-api.com/v2) based on the client (defaults to the EU Dynamic Yield API).

Developer Mode

The PoqDynamicYield integration is unaffected by developer mode as it is not a typical analytics integration. Dynamic Yield config is based on the current environment.

History

  • 1.0 (Oct 23): Initial release for Poq SDK 20 (v25) with engagement tracking and DY header injection.