• Constructs the payload data for syncing visitor attributes.

    Parameters

    • settings: SettingsModel

      Configuration settings.

    • userId: string | number

      User identifier.

    • eventName: string

      Name of the event.

    • attributeKey: string

      Key of the attribute to sync.

    • attributeValue: dynamic

      Value of the attribute.

    • Optional visitorUserAgent: string = ''

      Visitor's user agent.

    • Optional ipAddress: string = ''

      Visitor's IP address.

    Returns Record<string, any>

    • The constructed payload data.