How to install Messenger

Written by
Paulo
Updated a month ago
You can add the Pipeback Messenger in two ways:
🕵️ Anonymous Visitors (Not Logged In)
If your users are not logged in, you can still show the Messenger anonymously:
<script type="text/javascript">window.$pipeback=[];window.PIPEBACK_ID="PIPEBACK_WORKSPACE_ID";(function(){d=document;s=d.createElement("script");s.src="https://widget.pipeback.com/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
👤 Logged-In (Tracked) Users
For authenticated users, you can pass identifying data to enable a personalized experience and user tracking:
<script type="text/javascript">window.$pipeback=[];window.PIPEBACK_ID="PIPEBACK_WORKSPACE_ID";(function(){d=document;s=d.createElement("script");s.src="https://widget.pipeback.com/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
<script>
window.$pipeback = {
user: {
id: "userId", // string required
name: "userName", // string required
email: "userEmail", // required
signature: "userHash", // string optional
company: {
id: "companyId",
name: "companyName",
created_at: "companyCreatedAtTimeStamp", // timestamp
plan: "companyPlanName",
monthly_spend: "companyMonthlySpend", // integer
website: "companyWebsite", // string
attributes: {
"field1": "value1",
"field2": "value2",
"field3": "value3"
}
}
}
};
</script>
This content was useful?