PersistDataValue Transformation

  • Builder for creating a PersistDataValue transformation that stores a value from the dispatch payload (or a constant) into the data layer with a configurable expiry and update policy.

    Example usage:

    let settings = PersistDataValueSettingsBuilder(id: "persist-user-id")
        .persistFrom(.key("user_id"), to: .key("persisted_user_id"))
        .setExpiryPolicy(.forever)
        .setUpdatePolicy(.keepFirstValue)
        .setScope(.afterCollectors)
        .build()
    
    See more

    Declaration

    Swift

    public class PersistDataValueSettingsBuilder : TransformationSettingsBuilder
  • Defines how a persisted value should behave when a value already exists at the destination. Use this to control whether a new value can overwrite an existing one.

    See more

    Declaration

    Swift

    public enum UpdatePolicy : String, Equatable