The Sync to Third Party Automation Action should be used to push Contact Data from the platform to an API listener page on your server. You can in turn insert this data into your database or to your CRM, given it has its own api.nnThis listener is a web page or web application you create on your server that is always active and has code that allows it to accept and verify “contact” data sent from the platform, This listener then invokes backend services on your server, based on the information received.nnYou have 3 options to sync your data:nn1- Retargeting Audience: Facebook Ads and Google Adwords.nnChoose an audience to sync your contact to.nnnn2- Native Integration: Salesforce, Hubspot, etc.nnChoose one of the sync that you have already created in one of the connectors. Please note that the sync type should be Automation (Generates URL).nn
nn3- Webhook: Your own URL.nnAdd your Webhook URL, choose what to sync, the sending method and the Data content type.nn
n
n
How it works
n
n
- n
- Create a private file on your server that is not publicly accessible to front-end users. The custom listener code will be added to this file (more explanation below).
- On the automation action, choose Synch Contact to Third Party, choose which marketing data to synchronize and insert the path to the file created in step 1.n
- The platform will automatically send the marketing data to you each time a contact matches the automation rules specified.
- The platform sends a FORM POST containing contact information appended to the URL.
- The API listener (code sample included below) detects and processes the data.
- The API listener page must contain a custom script that waits for the messages, and then passes them to various backend applications for processing.
n
n
n
n
n
n
n
n
n
List of available marketing data
n
n
n
- n
- Using GET as in this example: https://www.example.com/?param1=[#SHORTCODE-1#]¶m2=[#SHORTCODE_2#]&… where [#…#] are the custom fields shortcodes from the list you are targeting within the journey. These shortcodes will hold the values of the contact that reached that action, within the journey. The URL would be your receiving end of the API. Note you can use our shortcode library to manipulate the shortcodes, ex: [#PROPER EMAIL/2#] and there are no limits on the number of fields you can pass.
- Using POST request in the following order:n
Arrayn(n [transactionid] => 123456789n [contact] => Array()n [fields] => Array()n [campaigns-opened] => Array()n [links-clicked] => Array()n [pages-visited] => Array()n [automation-triggered] => Array()n [goals-reached] => Array()n [webhooks-triggered] => Array()n [lead-score] => Array()n [lead-status] => Array()n)
n
n
n
n
n
n
Basic Information: ‘contact’
n
n
n
Arrayn(n [id] => Contact's IDn [email] => Contact's E-mail Addressn [phone] => Contact's Phonen [profile_url] => Contact's Profile Pagen)
n
n
n
Custom Fields: ‘fields’
n
n
n
Arrayn(n [id] => Field IDn [name] => Field namen [value] => Contact's field valuen)
n
n
n
Email Campaigns Open: ‘campaigns-opened’
n
n
n
Arrayn(n [id] => Campaign IDn [name] => Campaign namen [open_date] => Contact's open campaign date/timen)
n
n
n
Links Clicked: ‘links-clicked’
n
n
n
Arrayn(n [url] => Link urln [clicks] => Contact's total clicksn)
n
n
n
Pages Visited: ‘pages-visited’
n
n
n
Arrayn(n [page] => Page urln [visit_date] => Contact's page visit date/timen)
n
n
n
Automation Triggered: ‘automation-triggered’
n
n
n
Arrayn(n [id] => Automation IDn [name] => Automation namen [trigger_date] => Contact's automation triggered date/timen)
n
n
n
Goals Reached: ‘goals-reached’
n
n
n
Arrayn(n [id] => Goal IDn [name] => Goal namen [reach_date] => Contact's goal reached date/timen)
n
n
n
Webhooks Triggered: ‘webhooks-triggered’
n
n
n
Arrayn(n [id] => Webhook IDn [name] => Webhook namen [trigger_date] => Contact's webhook triggered date/timen)
n
n
n
Lead Score: ‘lead-score’
n
n
n
Arrayn(n [id] => Score IDn [name] => Score namen [score] => Score valuen [score_date] => Contact's score triggered date/timen)
n
n
n
Lead Status: ‘lead-status’
n
n
n
Arrayn(n [score] => Contact's total scoren [label] => Contact's score labeln)n
n
n
Update contact from response
nYou have the option to update your contact info based on the API response.nnTurn on the Update contact from response option and choose the key response you need to map to a contact field.nnn
[lore_button label=”Get Started” link=”app.aoaassociates.com/Login” size=”regular” style=”default”]