6.4 Sync contact data with the CRM

Let's see how contact data can be synced. Let's go to the CRM & add tags for a specific user. This tag should be added/updated immediately in our WordPress environment. There are 2 ways to make it work.

By a shortcode: we have a shortcode [lcw_contact_sync], and if you add this shortcode to a page and when a contact visits that page, the contact data will be updated by visiting that page.

By automation: This is the recommended way. You need to install our membership snapshot from this link: membership snapshot. when you install this snapshot, you will get a workflow named Send Signal to WP When A Contact Data is Updated, and a custom value named membership_wp_website_link, you must update the value of this 'custom value' to your website URL. If you don't want to install the snapshot, create a workflow with the following trigger & webhook: the trigger: you need to set the trigger to "Contact Changed" screenshot: the workflow trigger

The webhook: you need to set up a webhook that sends the changes of a contact to your website. In this webhook, set the METHOD to POST, the URL to your website URL(you can directly paste your website URL, we recommend creating a custom value and adding the custom value instead of the direct URL.), and add a CUSTOM DATA parameter with the key lcw_contact_update with the value 1. screenshot: the workflow webhook.

We recommend using the By automation way to sync your contact data because it works very efficiently and you can forget about the syncing data once you set up the workflow. The other way By a shortcode is used in some cases where you need to sync contact by force, in this case, an API request will be sent to your CRM for each page load, and try to use this as little as you can.

Last updated