PersistDataValue Transformation
-
Builder for creating a
PersistDataValuetransformation that stores a value from the dispatch payload (or a constant) into the data layer with a configurable expiry and update policy.Example usage:
See morelet settings = PersistDataValueSettingsBuilder(id: "persist-user-id") .persistFrom(.key("user_id"), to: .key("persisted_user_id")) .setExpiryPolicy(.forever) .setUpdatePolicy(.keepFirstValue) .setScope(.afterCollectors) .build()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 moreDeclaration
Swift
public enum UpdatePolicy : String, Equatable
View on GitHub
PersistDataValue Transformation Reference