Website Tracking in Salesmate allows you to monitor the behaviour of visitors on your website. By tracking page views, clicks, and other interactions, you can gain insights into how prospects and customers engage with your content. This data helps you understand visitor intent, identify high-interest leads, and personalize your follow-up efforts, ultimately improving your sales and marketing strategies.
Prerequisite: Subscribe to Unified Inbox and thereafter Install the Chat Script to your website. Learn More
Steps for Activating Website Tracking
- Install the Salesmate Chat via the Salesmate Messenger Plugin for WordPress or via the Chat Installation Code within Salesmate.
- Select options to show or hide the messenger widget through the plugin or by adjusting the code.
-
If you’ve hidden the messenger but still want to track website visitors linked to specific contacts, you’ll need to add the JS API method, tracking code, or custom events for the following:
Email Campaigns you’ve sent
<script>
<?php If(isset($_GET['email'])){ ?>
window.addEventListener('SALESMATE_READY', function() {
SALESMATE.login({
user_id: "<?php echo $_GET['email'] ?>",
email: "<?php echo $_GET['email'] ?>",
first_name: "<?php echo $_GET['fname'] ?>",
last_name: "<?php echo $_GET['lname'] ?>",
});
});
<?php } ?>
</script>
Web Form Submissions
<script>
window.addEventListener("SM_FORM_SUBMITTED", function (e) {
SALESMATE.login({
user_id: e.detail.formData["Contact.email"],
email: e.detail.formData["Contact.email"],
first_name: e.detail.formData["Contact.firstName"],
last_name: e.detail.formData["Contact.lastName"],
});
});
</script>
Meeting Scheduler Form Submissions
<script>
window.addEventListener("SM_MEETING_SUBMITTED", function (e) {
SALESMATE.login({
user_id: e.detail.formData["Contact.email"],
email: e.detail.formData["Contact.email"],
first_name: e.detail.formData["Contact.firstName"],
last_name: e.detail.formData["Contact.lastName"],
});
});
</script>
Gravity Form Submissions
function ti_custom_javascript() {
if(isset($_GET['email'])) {
?>
<script type="text/javascript">
window.addEventListener('SALESMATE_READY', function() {
SALESMATE.login({
user_id: "<?php echo $_GET['email'] ?>",
email: "<?php echo $_GET['email'] ?>",
first_name: "<?php echo $_GET['fname'] ?>",
last_name: "<?php echo $_GET['lname'] ?>",
});
});
</script>
<?php
}
}
add_action('wp_head', 'ti_custom_javascript');
Comments
0 comments
Article is closed for comments.