Overview
X-Ray Pixel
X-Ray Pixel Installation Guide
Customizing X-Ray Capture Settings
Contact Suppression
X-Ray SDK for Custom Events
How to Activate the Upgraded Version of X-Ray
Leads & Audiences
Create Audience Segments
Import SMS/Email Contact List
How to Turn on Lead Alerts for X-Ray Website Visitors
Email Automation Builder with S.O.L.D.
Enable Email Suppression List
Clay Integration via Webhooks
How to Activate Customers.ai ESP
Integrations
Email Integration
CRM Integrations
Mailchimp Integration
Klaviyo Integration Part 1: Connect Customers.ai to Klaviyo
Klaviyo Integration Part 2: Activate Klaviyo Signal to Boost Flows
Sendlane Integration
HighLevel Integration
Google Sheets Integration
JSON Webhooks
Integration via Shopify's Custom API
Connect Your Salesforce Account
Connect to Applications via Zapier
Meta Ads Tools
Google Ads Tools
Create Google Ads Custom Audience
Automate Data Import from Google Sheets to Google Ads
Finding your Google Ads Client ID, Secret Token and Customer ID
Analytics
How to Build a Custom Report of Sales by Customers.ai Revealed Contacts Synced to Klaviyo
Bot Analytics
Public API
FAQs
Bot Issues
I Cannot Login or Sign Up for a Bot with Facebook Login
I Cannot Connect My Page Page to MobileMonkey Bot
Web Chat Isn't Showing On My Website
Bot Send Credits
Increase in my Number of Contacts
How Does Unsubscribe Work?
My bot is Responding with the Default Message or a Different Message
My Bot Won't Respond at all
Bot Response Issues Overview
Send Overage Automatic Upgrades
I Can't Find My Old Bot or my Dialogues
How to redeem your Facebook Ads Coupon
MobileMonkey Bot Legacy Subscriptions
What's a Main Menu?
MobileMonkey Bot Pricing Plans
Can I Use SMS on My Subscription Plan?
Facebook Messenger Issues
Handover Protocol
How Do I Create a Lookalike Ads Audience from Bot Contacts?
How to Get Approved for Facebook Subscription Messaging
Can't Find my Messages / Customer Conversations Are Not in My Messenger Inbox
Why am I getting Product Alerts from my Facebook Page?
Facebook Permissions Issues
Edit Your Facebook Permissions
How to Test Synced Ads on Facebook Ads Manager
My Facebook page doesn't show up on the list of pages to connect
Why Do I Have To Sign Up With Facebook?
Remove other Connected Apps on your Business Integrations
Refreshing Your Facebook Connection
Facebook's 24-Hour Rule
FAQs about the CAN-SPAM Act
FAQs about the CCPA
Known Issues
Report a Bug
Too Many Bananas!
Refresh Page Access Token Error/ Update Permissions
Issues with Ad Blockers & Privacy Extensions
Website Widget Not Appearing on iOS 12.1
InstaChamp
Connecting your Instagram account to a Facebook page
Pre-requisites in Connecting an Instagram Page
Why do I need to sign up for InstaChamp with my Facebook login?
Why Do I Have to Sign Up for Instagram Messaging with My Facebook Login?
I cannot connect my Page to InstaChamp
InstaChamp Sign-up Process
My Facebook Page is connected to MobileMonkey. Can I still use InstaChamp?
How to Create Autoresponders on InstaChamp
How do I link my Instagram Account to a Facebook Page?
Troubleshoot: Autoresponders not sending
How do I switch to an Instagram Business Account?
Basic Guide to Autoresponders
How do I enable third-party access to messages?
How do I find my InstaChamp Ambassador referral link and get credit for sales I make?
How to Use the InstaChamp Ambassador Share Banner Library to Monetize Your Audience
WordPress Plugin
- All Categories
-
- Sending custom data from your website into your chat widget
Sending custom data from your website into your chat widget
If you are on a Pro Unicorn or Team subscription you can send custom data into your website chat widget. When our Javascript is loaded, we will be able to read any tag or attribute data set by your website and set it on the website visitor's contact record after they engage with the chat widget. This will require some technical implementation on the website.
Some Guidelines
- We only support settings tags & attributes that already exist in MobileMonkey. Please create any Tags/Attributes you want to use first in MobileMonkey Under Leads > Attributes and Tags before passing them on your website:
- If an attribute already exists on the contact record when this is invoked, the attribute value will be overwritten by the new value set by the website.
- Currently we only support adding values to custom attributes. System attributes (data we get from Facebook like First Name, Last Name, Gender, Locale, Timezone) can't be set from the website.
- Currently we only support adding tags to a contact. We do not support removing a tag from a contact
- This should work for both the Messenger and Webchat widgets
Implementation Instructions
- In MobileMonkey, open up your website chat widget under Chatbot > Chat Starters > Website Chat Widget.
- In the chat widget creation screen, navigate to "Edit Display Rules" and make sure you tick the checkbox for "Pass custom data into chat widget" under the "Custom Data" section:
- If you haven't already, make sure you install the code under the "Install Website Chat" section on your website, right after the <head> tag.
- On your website, define the mmData function with the tags or attributes you want to set for each website visitor. See examples below:
<script>
// Set a tag
mmData({tag: 'active-customer'});
// Set multiple tags
mmData({tags: ['active-customer', 'interested-in-chatbots']});
// Set an attribute
mmData({attributes: { 'CUSTOMER_NUMBER': 123}});
// Set multiple attributes
mmData({attributes: { 'FIRST_NAME': 'John', 'LAST_NAME': 'Doe'}});
// Combo - setting tags and attributes
mmData({tags: ['active-customer', 'interested-in-chatbots'], attributes: { 'FIRST_NAME': 'John', 'LAST_NAME': 'Doe'}});
</script>
Please contact support@mobilemonkey.com if you have any questions about this feature.