LogoLogo
WebsiteGuide & TutorialBlogBook a Demo
2.0.0
2.0.0
  • Getting Started
  • Widget
    • Overview
    • Installation
    • Customization
      • Settings
        • Greeting
        • Greeting Introduction
        • Conversation button
        • Conversation list title
        • Launcher Text
        • Widget Appearance
      • Methods
        • Widget visibility
        • Widget window state
        • Set Customer Info
        • Get Customer info
      • Events/Callbacks
        • reloadUI
        • onChatMaximize
        • onChatMinimize
        • onChatInitiated/Started
        • onChatClosed
        • onAgentAssign
        • onAgentStateChange (Available/Unavailable)
      • Link resources
        • Share channel link
  • SDK
    • [Under Development] Overview
    • [Under Development] iOS
      • [Under Development] iOS Setup Guide
        • [Under Development] Getting Started
        • [Under Development] Integration Guide (Core)
        • [Under Development] Integration Guide (Lite)
      • [Under Development] Initialization
      • [Under Development] Theme Setting
      • [Under Development] Acquire Delegates for iOS
      • [Under Development] Widget customization
      • [Under Development] React Native
    • [Under Development] Android
      • [Under Development] Android Setup Guide
        • [Under Development] Getting Started
        • [Under Development] Integration Guide (Core)
        • [Under Development] Integration Guide (Lite)
      • [Under Development] Acquire SDK APIs
      • [Under Development] Acquire Delegates for Android
      • [Under Development] React Native
  • Webhooks
    • Introduction
    • Getting Started
    • Securing Webhook
    • Webhook Events
  • REST APIs
    • Introduction
      • Request Types, Permissions, Errors, & Limits
    • Authorization
    • Conversation
      • Cases
        • Messages
          • Retrieve a list of messages
          • Retrieve a message
          • Send a message
          • Update message
          • Delete Message
        • Case List
        • Single Case
        • Create
        • Close Case
        • Reopen Case
        • Invite Agent
      • Snooze
        • [Under Construction] Delete Snooze
        • Create Snooze
      • Notes
        • List all notes
        • Retrieve a note
        • Create
        • Add note message
        • Delete note
        • Retrieve note messages
    • Contact
      • List all contacts
      • Retrieve a contact
      • Add contact
      • Block Contact
      • Merge contact
      • Update contact
      • Delete contact
    • Company
      • List all companies
      • Retrieve a company
      • Add company
      • Update company
      • Delete company
    • Phone
      • Call in queue
      • Ringing
      • Answered
      • Call end
    • Chatbot
      • Conversational Bot
        • Groups
          • Get Default Group
          • List
          • Add
          • Delete
          • Copy
        • Question And Answer
          • List
          • Get
          • Add
          • Update
          • Delete
          • Publish
          • Bulk Action
          • Push QnA To Suggestions
          • Import QnA
      • Sequence Bot
        • Sequence List
        • Get Single Sequence
        • Add
        • Update
        • Delete
        • Bulk Action
        • Copy Existing Sequence
        • Branch
          • Get Single Branch
          • Add
          • Update
          • Delete
          • Set as Parent Branch
      • Bot resources
      • Webhooks in chatbot
    • Analytics
      • Custom Reporting
      • General Analytics
      • Chat
        • Overview
        • Tags
        • Visitor Information
          • Visitor Analytics
          • Visitor Source Overview
        • Video Analytics
      • Cobrowse
      • Chatbot
        • Sequence Bot
        • Conversational Bot
      • Knowledge Base
      • Email
      • VoIP - Call SMS
      • Agent Performance
    • [Under Construction] Custom Cards
      • Timeline-cards
        • Create Interaction Card
        • Update Interaction Card
        • List all Cards
        • Retrieve a card
        • Delete card
      • Exclusive cards
        • Create general card
        • Create app card - from other system
        • Delete card
    • Knowledge Base
      • Groups
        • Add
        • Update
        • Get
        • Get Single
        • Delete
      • Articles
        • Add Article
        • Update Article
        • Delete Article
        • Get Articles
        • Get Single Article
      • Category
        • Add Category
        • Update Category
        • Delete Category
        • Get Category
    • Settings
      • Account Settings
        • Users
          • List
          • Get Single
          • Add
          • Update
          • Delete
        • Roles
          • List
          • Get Single Role
          • Add
          • Update
          • Delete
        • Departments
          • List
          • Get
          • Add
          • Update
          • Delete
        • Custom Attributes
          • List of custom attributes
          • Get a custom Attribute
          • Add a custom attribute
          • Update a custom attribute
          • Delete a custom attribute
      • Conversation Settings
        • Shortcuts
          • List Groups
          • Get
          • Add
          • Update
          • Delete
        • Tags
          • List All Tags
          • Get Single Tag
          • Add New Tag
          • Update Tag
          • Delete Tag
        • Feedback
          • List of all feedback
          • Get single feedback
          • Add feedback
          • Update Feedback
          • Delete feedback
      • Security
        • Block Visitor
          • List
          • Get
          • Add
          • Delete
        • Audit Logs
          • Audit Log
          • Audit Log Users
Powered by GitBook
On this page
  • PHP
  • Rails (Ruby)
  • Django (Python)
  1. Widget
  2. Customization
  3. Methods

Set Customer Info

Visitor attributes are information about a visitor, such as their name, phone number, and email address. In Acquire, we use this information in a variety of places, including in their profiles.

PreviousWidget window stateNextGet Customer info

Last updated 3 years ago

PHP

<script type="text/javascript">
        /* Put visitor details programmatically. */
            window.acquire=window.acquire||[];
            acquire.push({
                fields: {
                    contact: {
                      name:<?php echo $value ?>,
                      email:<?php echo $value ?>,
                      phone:<?php echo $value ?>,
                      calling_code:<?php echo $value ?>,
                      source:<?php echo $value ?>,
                      city:<?php echo $value ?>,
                      state:<?php echo $value ?>,
                      countryid:<?php echo $value ?>,
                      address:<?php echo $value ?>,
                      location:<?php echo $value ?>,
                      contact_country_flag:<?php echo $value ?>
                   }, 
                   case: {
                      remark:<?php echo $value ?>
                   },
                   },
              lang:'<?php echo $language_code ?>' //LANGUAGE CODE
            })
</script>

Rails (Ruby)

<script type="text/javascript">
        /* Put visitor details programmatically. */
            window.acquire=window.acquire||[];
            acquire.push({
                fields: {
                    contact: {
                      name:<%= value %>,
                      email:<%= value %>,
                      phone:<%= value %>,
                      calling_code:<%= value %>,
                      source:<%= value %>,
                      city:<%= value %>,
                      state:<%= value %>,
                      countryid:<%= value %>,
                      address:<%= value %>,
                      location:<%= value %>,
                      contact_country_flag:<%= value %>
                    },
                    case: {
                        remark:<%= value %>
                    },
                    },
                    lang:'<%= language_code %>' //LANGUAGE CODE
            })
</script>

Django (Python)

<script type="text/javascript">
        /* Put visitor details programmatically. */
            window.acquire=window.acquire||[];
            acquire.push({
                fields :{
                    contact: {
                      name:{{ value }},
                      email:{{ value }},
                      phone:{{ value }},
                      calling_code:{{ value }},
                      source:{{ value }},
                      city:{{ value }},
                      state:{{ value }},
                      countryid:{{ value }},
                      address:{{ value }},
                      location:{{ value }},
                      contact_country_flag:{{ value }}
                    },
                    case: {
                      remark:{{ value }}
                    },
                    },
              lang:'{{ language_code }}' //LANGUAGE CODE
            })
</script>

Learn more about visitor attributes->