How to Add Facebook Messenger to an Unbounce Page


Hy have you found a solution to note the chat traffic source…?

@Zoe_Tattersall do you have a solution for detecting message origin?


@Krisztian_Komjati sorry I haven’t looked into this any further.

1 Like

Are you asking about tracking the messages from the webchat vs. other messages? In the code here you can put a unique code/word as the ref_param for tracking purposes.


No problem. Thanks for your response :wink:

1 Like

As you can see messenger provides a solution:

“message”: {
“text”:“hello, from customer chat!”,
“tags”: [
“source”: “customer_chat_plugin”

I think this adds a tag automatically to the conversation, instead of adding it manually within the inbox of a facebook page.

My problem is, that I dont really know how to implement this code into the code you posted above… Can you help me out in this?


I can’t seem to get this code to work for me. Messenger doesn’t load, and I am getting this error when I inspect the page. >>

Anyone else experience this?!


Replace this URL
to a new one

(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); = id;
js.src = “”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));


Hi there, I’ve found this topic quite interesting!

I`m about to give it a try.
The only thing is… are we able to track chats as conversions?