“Contact information” tag

 

Questo articolo è attualmente disponibile in inglese e spagnolo. Puoi fare riferimento a questa documentazione mentre arriva nella tua lingua.

The "Contact Information" tag is an HTML code snippet used to record contacts’ data from the ecommerce site in the contact profile fields in Connectif.

  

This article is part of the guide to creating a custom integration.
If your integration is via a module, this tag will be added to your ecommerce platform automatically.

 

What is this tag and where is it used?

The "cn_client_info" tag must be inserted on all pages.

Properties 

The different properties of the contact’s information must be defined within the "cn_client_info" tag as child tags, indicating the name of the property in the "class" attribute.

The properties to be included in the tag are:  

Name Required Type Multiple Description
primary_key Yes string No Primary key.
Connectif identifies contacts using their email address. Two contacts cannot have the same email address.
_name No string No Contact name.
_surname No string No Contact last name.
_newsletter_subscription_status No string No Contact’s newsletter subscription status ("Subscribed", "Unsubscribed" or "Never subscribed").

Other considerations 

To sync data in custom fields a <span> tag must be embedded in the “cn_client_info” class with the ID of the custom field.

  To learn how to identify the ID of a custom field, click here.

In properties based on checkbox-type custom fields, the list of values must be included like this:

<div class="cn_client_info" style="display:none">
   <span class="primary_key">email@example.com</span>
   <span class="_name">John</span>
   <span class="_surname">Doe</span>
   <span class="_newsletter_subscription_status">subscribed</span>
   <span class="ID-CAMPO">VALOR</span>
<span class="ID-CAMPO" data-field-list="true">
      <span>ID-OPCIÓN-1</span>
      <span>ID-OPCIÓN-2</span>
      ...
   </span>
</div>

 

Example 

Once the properties are included, the tag will look like this:

<div class="cn_client_info" style="display:none">
   <span class="primary_key">email@example.com</span>
   <span class="_name">John</span>
   <span class="_surname">Doe</span>
   <span class="_newsletter_subscription_status">subscribed</span>
</div>

 

 
 

Congratulations!
You’ve reached the end of the tutorial.

  

Do you have questions?
Don’t forget, our Connectif specialists are here to help you. To contact them, just open a Support ticket by clicking the blue “Help” button on your dashboard.


Keep learning!

To make the most of your Connectif account, we recommend reading these articles next:

Questo articolo ti è stato utile?
Utenti che ritengono sia utile: 0 su 0