# Wordpress

### Step 1: Sign Into Your uClone Account and Copy Your Embed Code

\
1\. Log into your uClone account and navigate to the [**Dashboard**](https://www.chatbase.co/dashboard/) page.\
2\. On the page, locate and click on the **Integrations** tab at the top of the page.\
3\. On the Embed tab, click on **Copy** to copy the embed code.

<figure><img src="https://1933705455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLLV1FGcR9rovGx9Z9Xt8%2Fuploads%2FTCEB8vocKDlxVhrByTnn%2Fimage.png?alt=media&#x26;token=7a6d7612-2146-42e0-8cf0-3a243edcb0d4" alt=""><figcaption></figcaption></figure>

### Step 2:  Embed Your Chatbot into WordPress Using WPCode

WPCode (formerly known as Insert Headers and Footers) is a popular WordPress plugin that makes it easy to add JavaScript to your site. It lets you add scripts to your header, footer, or specific pages with conditional rules.



**Here’s how to get started:**

1\. Install and activate the WPCode plugin on your WordPress site.

2\. In your WordPress admin, go to Code Snippets → + Add Snippet.

3\. Click on Add Your Custom Code (New Snippet) and choose Use Snippet.\


<figure><img src="https://1933705455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLLV1FGcR9rovGx9Z9Xt8%2Fuploads%2FE05CA81C96wqYax89fOU%2Fimage.png?alt=media&#x26;token=d4490aeb-0778-40b0-b424-da3c4b6b4525" alt=""><figcaption></figcaption></figure>

**Setting Up Your Snippet**

1\. Add a title to your snippet (for your reference only).

2\. Set the Code Type to JavaScript Snippet.

3\. Enter your uClone Embed code in the Code Preview box.

<figure><img src="https://1933705455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLLV1FGcR9rovGx9Z9Xt8%2Fuploads%2FRdxX2wJT84ZRqbAUU3eV%2Fimage.png?alt=media&#x26;token=3b5e7b55-a363-4ed6-a062-9460b13f222b" alt=""><figcaption></figcaption></figure>

**Choosing Where to Add the Code**

• You can choose to add the snippet sitewide (header, footer, or body).

• Header is best for important scripts.

• Footer is better for performance.

• You can also target specific pages or manually add the code using a shortcode.

<figure><img src="https://1933705455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLLV1FGcR9rovGx9Z9Xt8%2Fuploads%2FKiI7o2LsaekW5uRvFG3y%2Fimage.png?alt=media&#x26;token=aaddfc84-2832-42ba-9348-403b318a9585" alt=""><figcaption></figcaption></figure>

### **Step 3: Final Steps**

1\. Click Save Snippet.

2\. Toggle the snippet to Active to make it live on your site.

<figure><img src="https://1933705455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLLV1FGcR9rovGx9Z9Xt8%2Fuploads%2Frv6J0ZcXIiqgcM4KiBcs%2Fimage.png?alt=media&#x26;token=48b7952a-265b-4edc-bd6c-ff4bde26daa7" alt=""><figcaption></figcaption></figure>

**Congratulations, your uClone chatbot is now live on your Wix website.**
