“Contact information” tag

The “Contact information” tag is a piece of HTML code that allows you to sync your contacts’ data from your ecommerce site and register it in the contact profile fields (system or custom).

  

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

 

Composition

This tag has the class name “cn_client_info” and must be added to every page of your ecommerce platform as follows:

<div class="cn_client_info" style="display:none">
</div>

To determine which data will be sent from the ecommerce platform to your Connectif account, properties are defined in child tags using the class attribute.

 

System field properties

Properties to be included in the tag by default are:

Name Required Type Multiple Description
_surname No string No Contact last name.
_newsletter_subscription_status No string No Contact’s newsletter subscription status (subscribed, unsubscribed, or never subscribed)
_email_status No string No

Contact’s email subscription status (active or unsubscribed).

*Out of use and not supported in future versions.
We recommend using the _newsletter_subscription_status tag for new integrations and/or updates to existing integrations.

tracker_id No string No Unique identifier for the contact. This is provided by Connectif in response to the tracking call. If this field is empty, the Connectif JavaScript will use the tracker ID stored in localStorage by default.
primary_key Yes string No Primary key for identifying the contact using their email address. Two contacts cannot have the same email address.
_name No string No Contact name.


Once 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>

 

Custom field properties

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.
<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">VALOR</span>
</div>

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>

 

 

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:

Was this article helpful?
0 out of 0 found this helpful