> ## Documentation Index
> Fetch the complete documentation index at: https://support.getskara.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How to do website tracking in Skara?

Tracking the customers on your website lets you trace the visitor's footfall on respective pages without bothering them. It allows you to market your products or services more effectively as you can know your customers and understand their buying habits. [Learn More](https://support.salesmate.io/hc/en-us/articles/37057741761945-Website-Tracking-in-Salesmate)

* **Topics covered:**
* Installing the tracking code:
* [BigCommerce](#installing-messenger-code-from-bigcommerce-admin-panel)
* [WordPress](#installing-messenger-code-from-wordpress-admin-panel)
* Event-Based Tracking:
* [Making Event-Based Action](#making-event-based-action)
* [Making Landing Page-Based Action](#making-landing-page-based-action)
* [FAQs](#faqs-can-i-track-my-website-visitors-without-paying-any-additional-cost-for-messenger)

Now let's understand each of the processes in detail.

**Installing The Tracking Code**

Installing Messenger code from BigCommerce Admin Panel

* **Log in** to your **BigCommerce Store**

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/001-bigcommerce-login-19265449259545.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=8c7267c8b2ccc818151ffb969cfa4c34" alt="BigCommerce Login" width="1508" height="1102" data-path="chats/additional-information/images/001-bigcommerce-login-19265449259545.png" />

* Select the account

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/002-bigcommerce-account-selection-19265482479001.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=ad968c1116f7868367ae347553cae445" alt="BigCommerce Account Selection" width="1390" height="872" data-path="chats/additional-information/images/002-bigcommerce-account-selection-19265482479001.png" />

* Select the right store from the drop-down in case if you have multiple stores.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/003-bigcommerce-store-selection-19265449267737.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=3661005268c6d3fe9378db9d68e4bf96" alt="BigCommerce Store Selection" width="1426" height="1014" data-path="chats/additional-information/images/003-bigcommerce-store-selection-19265449267737.png" />

* Navigate to the **Channel Manager** from the left panel

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/004-bigcommerce-channel-manager-19265482491801.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=7bc8a7e4ca7cfb9dfaaaf0d9fb09c257" alt="BigCommerce Channel Manager" width="2396" height="1370" data-path="chats/additional-information/images/004-bigcommerce-channel-manager-19265482491801.png" />

* Under that, click on **Scripts**.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/005-bigcommerce-scripts-19265449275417.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=74649ef314cf9f9fd0faf217bbe0c6d4" alt="BigCommerce Scripts" width="2386" height="1374" data-path="chats/additional-information/images/005-bigcommerce-scripts-19265449275417.png" />

* Now click on **Create a Script** button.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/006-bigcommerce-create-a-script-19265449280153.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=f0f5a448fbdfb3aa7c99a954dd86b655" alt="BigCommerce Create a Script" width="1994" height="916" data-path="chats/additional-information/images/006-bigcommerce-create-a-script-19265449280153.png" />

* Add the **Name** and **Description** of the Script

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/007-bigcommerce-script-name-and-description-19265449282457.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=3cc4a60f60270559a59f6eaf42c34e10" alt="BigCommerce Script Name and Description" width="2056" height="856" data-path="chats/additional-information/images/007-bigcommerce-script-name-and-description-19265449282457.png" />

* Keep the location of the page as **Footer**.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/008-bigcommerce-footer-selection-19265482505881.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=4e313a869062a43928f1665d4a3cd58c" alt="BigCommerce Footer Selection" width="2064" height="1234" data-path="chats/additional-information/images/008-bigcommerce-footer-selection-19265482505881.png" />

* Select the pages where the script will be added as **All Pages**.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/009-bigcommerce-all-pages-selection-19265482511001.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=30f91a8a4aa59c6fd0ebfbed56bdac27" alt="BigCommerce All Pages Selection" width="2054" height="1202" data-path="chats/additional-information/images/009-bigcommerce-all-pages-selection-19265482511001.png" />

* Keep the script category as **Essential**.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/010-bigcommerce-essential-selection-19265482511513.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=9fda8c8e7ecaaf11b5dbe6f9fe8195b8" alt="BigCommerce Essential Selection" width="1892" height="996" data-path="chats/additional-information/images/010-bigcommerce-essential-selection-19265482511513.png" />

* Select script type as **Script**.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/011-bigcommerce-script-type-selection-19265449290137.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=8dbd01af6f935371f731a001bf5393d2" alt="BigCommerce Script Type Selection" width="1832" height="966" data-path="chats/additional-information/images/011-bigcommerce-script-type-selection-19265449290137.png" />

Please follow the below steps to locate Messenger Code and **Copy** it:

* Navigate to the **Chats** from left menu bar
* Click on **Chat Settings**

  <img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/012-salesmate-chat-settings-navigation-31912520572313.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=742fda4b2ba466aaacf6f2b3f5e81a00" alt="Salesmate chat settings navigation" width="2507" height="1476" data-path="chats/additional-information/images/012-salesmate-chat-settings-navigation-31912520572313.png" />
* Go to the **Installation** section from the left panel and **Copy** the code.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/013-salesmate-messenger-installation-31912510121625.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=a2cf477b099c3248ee1159c26ef309b2" alt="Salesmate messenger installation" width="2788" height="1622" data-path="chats/additional-information/images/013-salesmate-messenger-installation-31912510121625.png" />

<Note>
  \*\*Note:\*\*This access is subject to the user’s profile permission relating to Manage Messenger Settings assigned by the Admin user.
</Note>

* **Paste** your Messenger Code along with the below code i.e.**Add one line of the script below tenant\_id:** "**salesmateio.salesmate.io**"and **Save it**. This code hides the launcher icon yet keeps the tracking on. Please take a look at the image below:

```
hide_default_launcher: true
```

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/014-bigcommerce-paste-code-11002471658521.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=999ccdd216c1a273fa956fdce7e91808" alt="BigCommerce Paste Code" width="3358" height="1574" data-path="chats/additional-information/images/014-bigcommerce-paste-code-11002471658521.png" />

* You can also refer to the installation process for BigCommerce below:

<iframe width="560" height="315" src="https://www.youtube.com/embed/1_7w1TfdNwU" title="YouTube video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

### Installing Messenger Code From WordPress Admin Panel

* **Login** to the WP admin.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/015-wordpress-login-19266428815641.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=f6591ed0e50ef4b80a04a6b6059bf3c5" alt="WordPress Login" width="1192" height="1172" data-path="chats/additional-information/images/015-wordpress-login-19266428815641.png" />

* Navigate to the **Plugins** section and Click on **Add New**.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/016-wordpress-plugins-19266428819993.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=d64c418d54ea0d85eab1ea89affa7ebc" alt="WordPress Plugins" width="2610" height="1320" data-path="chats/additional-information/images/016-wordpress-plugins-19266428819993.png" />

* Search for **Skara Messenger** from the search bar and **Install**.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/017-wordpress-salesmate-messenger-plugin-11002994751001.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=2a86fccd6009e866adc836663b74ea6b" alt="WordPress Salesmate Messenger Plugin" width="3350" height="1636" data-path="chats/additional-information/images/017-wordpress-salesmate-messenger-plugin-11002994751001.png" />

* Now click on **Activate**.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/018-wordpress-activate-plugin-11003015919257.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=792dad1d42615424fb19891dd6409dd0" alt="WordPress Activate Plugin" width="3360" height="1116" data-path="chats/additional-information/images/018-wordpress-activate-plugin-11003015919257.png" />

* Now click on **Skara Messenger** and enter the  \*\*Workspace ID, AppKey, and Tenant ID \*\*from the Messenger code. - You will get these details from your Salesmate Account. It will be available under the Chat icon, followed by the Messenger Settings and Installation.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/019-salesmate-messenger-installation-11004472758169.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=ed3bb2293e060a1077e9571692cc5486" alt="Salesmate messenger installation" width="1580" height="1028" data-path="chats/additional-information/images/019-salesmate-messenger-installation-11004472758169.png" />

* In case you are using the Messenger Service and want to provide chat service only on specific pages, you can disable the launcher icon by adding the page ids with comma-separated values in the “Exclude Text” section.

<img src="https://mintcdn.com/salesmate/iBPVeRXZ6co9j0U5/chats/additional-information/images/020-wordpress-messenger-settings-11032403477785.png?fit=max&auto=format&n=iBPVeRXZ6co9j0U5&q=85&s=5164e9abbbcc11042e3317a16aaa345d" alt="WordPress Messenger Settings" width="3350" height="1282" data-path="chats/additional-information/images/020-wordpress-messenger-settings-11032403477785.png" />

* You can locate the Page Ids in the following ways: - Navigate to  **Posts** you do not want to display the launcher icon on the blogs published by you. Simply hover on the respective pages, and you will notice the page id getting generated right below. Post is equal to, and the number that you see here is the page id.

<img src="https://mintcdn.com/salesmate/D0SDsJLAyb4u7TIo/chats/additional-information/images/021-custom_form_post_idpng-11034192626201.png?fit=max&auto=format&n=D0SDsJLAyb4u7TIo&q=85&s=561a6865aa4d4a662b1529f1f04691ad" alt="custom_form_post_id.png" width="3360" height="2044" data-path="chats/additional-information/images/021-custom_form_post_idpng-11034192626201.png" />

* For hiding it on respective website pages, navigate to the Pages section and hover on them to locate the page ids.

<img src="https://mintcdn.com/salesmate/D0SDsJLAyb4u7TIo/chats/additional-information/images/022-custom_form_page_idpng-11035008945433.png?fit=max&auto=format&n=D0SDsJLAyb4u7TIo&q=85&s=b99971e10eee80e889c64bbfd6602866" alt="custom_form_page_id.png" width="3354" height="2029" data-path="chats/additional-information/images/022-custom_form_page_idpng-11035008945433.png" />

* In case you are either editing the pages or posts, you can fetch the page id from the URL section above.

<img src="https://mintcdn.com/salesmate/D0SDsJLAyb4u7TIo/chats/additional-information/images/023-custom_form_page_id_from_urlpng-11035426934425.png?fit=max&auto=format&n=D0SDsJLAyb4u7TIo&q=85&s=931bf032a2678e33246faa2b4aa440af" alt="custom_form_page_id_from_url.png" width="3352" height="1524" data-path="chats/additional-information/images/023-custom_form_page_id_from_urlpng-11035426934425.png" />

* Check the Hide Launcher Icon if you are not using the Messenger service. It will allow you to track your website visitors without chatting with them.

<img src="https://mintcdn.com/salesmate/D0SDsJLAyb4u7TIo/chats/additional-information/images/024-wordpress-messenger-settings-11035741687065.png?fit=max&auto=format&n=D0SDsJLAyb4u7TIo&q=85&s=92787810e51c6f53c2d8ca3dadf166d6" alt="WordPress Messenger Settings" width="3356" height="1334" data-path="chats/additional-information/images/024-wordpress-messenger-settings-11035741687065.png" />

* Save Changes.

<img src="https://mintcdn.com/salesmate/D0SDsJLAyb4u7TIo/chats/additional-information/images/025-wordpress-messenger-settings-save-11035879083929.png?fit=max&auto=format&n=D0SDsJLAyb4u7TIo&q=85&s=e8aabd1d80fb398904a2d1f8768a9ac0" alt="WordPress Messenger Settings Save" width="3354" height="1370" data-path="chats/additional-information/images/025-wordpress-messenger-settings-save-11035879083929.png" />

You can also refer to the installation process for WordPress below:

<iframe width="560" height="315" src="https://www.youtube.com/embed/ZMCNAzJGmr8" title="YouTube video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

### Event-Based Tracking

* Following the Event-Based Tracking method simply collects the data in either of the cases like; while the user is Signing Up, Logging In, Logging Out, Performing any step using the Call-to-Action button, or be it any Custom Event Listener using the JS API Method. You can refer to other events [here](https://support.salesmate.io/hc/en-us/articles/360062373471).

### Making Event-Based Action 

* You can call this method in the situation where the contact or the visitor is not logged in when the page is loaded. You can also use this method to update the contact information that is logged in. Verify your contact by calling this method and passing the email in userid.

For example, on your customer's login page action, call this method when the login button is clicked.

```javascript theme={null}
SALESMATE.login({
  user_id: "/* user id | string | We recommend passing the user's email id to generate a unique key */",
  email: "/* email | string | Pass a valid email address */",
  first_name: "/* first name of contact | string */",
  last_name: "/* last name of contact | string */"
});
```

### **Example:**

```javascript theme={null}
SALESMATE.login({
  user_id: "john.doe@example.com",
  email: "john.doe@example.com",
  first_name: "John",
  last_name: "Doe"
});
```

This is how you can capture the contact details of the visitor without bothering them. You can then plan any [Automation Journeys](https://support.salesmate.io/hc/en-us/articles/360057066552) or enroll them in [Sequences.](https://support.salesmate.io/hc/en-us/articles/360033759131)

### Making Landing Page-Based Action

You can use "**Page Visited Trigger**" to set up the journey and perform a certain set of actions in the automation journey. This method will initiate the trigger as soon as the visitor lands on any specific page.

<img src="https://mintcdn.com/salesmate/D0SDsJLAyb4u7TIo/chats/additional-information/images/026-salesmate-chat-settings-navigation-11003262473881.png?fit=max&auto=format&n=D0SDsJLAyb4u7TIo&q=85&s=9e7ac418ad61716eb6583774b295c75a" alt="Salesmate chat settings navigation" width="1908" height="624" data-path="chats/additional-information/images/026-salesmate-chat-settings-navigation-11003262473881.png" />

### FAQs

### Can I track my website visitors without paying any additional cost for Messenger?

* Ans: No. You need at least one license messenger license. Our messenger script works as a website tracking script itself where it requires a trigger / interaction to start tracking your visitor / customer activity.

**How can I collect data from customers?**

* Ans: These are the ways you can collect the data:
* Add Call-To-Action Button on your website and use any of the Event-Based Action using Event-based Action via the JS API Method. This could be any Login action, Logout, Signup, Contact Us, etc.
* You can redirect the users to another page where you can collect the basic details like Names and Email addresses. It could be any specific landing page with a form. Use the Track Custom Event Code to capture the information in Skara.

  **Where can I see the tracking in Skara?**
* Ans: In the Contact Detail Page, you will find the details in the Page View section on the right.

<img src="https://mintcdn.com/salesmate/D0SDsJLAyb4u7TIo/chats/additional-information/images/027-contact-page-view-31912813993497.png?fit=max&auto=format&n=D0SDsJLAyb4u7TIo&q=85&s=f5224ca56cd469b6f23df2e38870ec22" alt="Contact Page View" width="2616" height="1684" data-path="chats/additional-information/images/027-contact-page-view-31912813993497.png" />

**How can I automate the process once the data is collected?**

* Ans: Automation Journey and Sequences can be used to make it a non-manual process to stay connected with your customers.
* * **Instance 1:** With Automation Journey, you can use the "**Event**" Trigger to initiate the journey and send automated Emails using Sequences. On Event trigger, you can enroll that Contact to a Sequence.

<img src="https://mintcdn.com/salesmate/D0SDsJLAyb4u7TIo/chats/additional-information/images/028-event-trigger-in-automation-journey-11003423805849.png?fit=max&auto=format&n=D0SDsJLAyb4u7TIo&q=85&s=31ef6ccaabfbd2c2373e5e45021076e1" alt="Event Trigger in Automation Journey" width="2534" height="520" data-path="chats/additional-information/images/028-event-trigger-in-automation-journey-11003423805849.png" />

* **Instance 2:** If you do not want to enroll the Contacts to Sequence, you can perform Bulk/Mass Operation too. Using the Event trigger in Automation Journey, you can assign Tag to those Contacts and further filter the data to perform Bulk/Mass operation.
* Step 1: Create Automation Journey to assign Tag to Contact

<img src="https://mintcdn.com/salesmate/D0SDsJLAyb4u7TIo/chats/additional-information/images/029-assign-tag-in-automation-journey-11003642310169.png?fit=max&auto=format&n=D0SDsJLAyb4u7TIo&q=85&s=68f0cb4f41dbf777defcf4a15184d710" alt="Assign Tag in Automation Journey" width="1746" height="480" data-path="chats/additional-information/images/029-assign-tag-in-automation-journey-11003642310169.png" />

* Step 2: Filter the Contacts based on the Tag. Bulk select the Contacts and perform "Send Email" or "Sent Text"

<img src="https://mintcdn.com/salesmate/D0SDsJLAyb4u7TIo/chats/additional-information/images/030-bulk-email-or-text-31912897496089.png?fit=max&auto=format&n=D0SDsJLAyb4u7TIo&q=85&s=0342509fd7b80e348407cc6cf314a2a6" alt="Bulk Email or Text" width="2517" height="1034" data-path="chats/additional-information/images/030-bulk-email-or-text-31912897496089.png" />

This is how the Contacts created via website tracking can be contacted further for marketing purposes.
