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.

Learn more about visitor attributes->

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>

Last updated