---
title: "Analytics, Chat and Cookie Widgets (Classic apps)"
description: "In new apps, you ask the AI to add the script."
canonical: "https://docs.softr.io/classic/scripts-and-widgets"
updated: "2026-12-04"
---

# Analytics, Chat and Cookie Widgets (Classic apps)

> **Note**
>
> This page covers **Classic apps**, built from blocks. See [Classic apps](/classic/overview).

## Google Analytics

In this guide, we'll go through the process of integrating **Google Analytics** with your Softr app. You can integrate both **Universal Analytics** and **Google Analytics 4**, and below you can find separate guides for each of the versions.

### Universal Analytics

After [setting up a Google Analytics property](https://support.google.com/analytics/answer/10269537?ref_topic=1009620) for your site, you need to navigate to **Admin**, choose the required property, and click **Tracking Info**, as shown below.

![Locating tracking info](/integrations/google-analytics/image1.webp)

_Locating tracking info_

From the opened dropdown, click on **Tracking Code** and copy the **Tracking ID** (starting with "UA-") as shown below.

![Notion image](/integrations/google-analytics/image2.webp)

That's it, now you just need to paste the ID in **Settings =>** **Integrations => Google Analytics**
in the left-hand toolbar of your [Softr Studio](https://studio.softr.io) and hit **Save.**

![Adding tracking code in Softr](/integrations/google-analytics/image3.webp)

_Adding tracking code in Softr_

### Google Analytics 4

After setting up a [Google Analytics 4 property](https://support.google.com/analytics/answer/9304153#zippy=%2Cweb%2Cadd-the-tag-to-a-website-builder-or-cms-hosted-website-eg-wordpress-shopify-etc), you need to go to **Admin**, select the required **property** and navigate to **Data Streams**.

![Accessing data streams](/integrations/google-analytics/image4.webp)

_Accessing data streams_

Next, select the data stream.

![Selecting the data stream](/integrations/google-analytics/image5.webp)

_Selecting the data stream_

In the screen that comes next, locate the **Measurement ID** and copy it.

![Getting the Measurement ID](/integrations/google-analytics/image6.webp)

_Getting the Measurement ID_

Finally, you just need to go back to your Softr app and add the ID into [Settings](/classic/app-settings)**⇒Integrations ⇒ Google Analytics** as shown in the following screenshot.

![Applying the Measurement ID](/integrations/google-analytics/image7.webp)

_Applying the Measurement ID_

## Google Tag Manager

The process of integrating Google Tag Manager is pretty straightforward. After creating a container, you just need to locate your **Container ID**. [Here](https://support.google.com/tagmanager/answer/6103696) you can find all the details.

After locating the **Container ID**, you need to copy it and navigate back to your Softr app. Then, you should paste it into **Settings => Integrations => Google Tag Manager,** and you’re done!

![Adding GTM container ID](/integrations/google-tag-manager/image1.webp)

_Adding GTM container ID_

### Alternate Method

> **Tip**
>
> **NOTE:** Do not combine this method with the standard method above. Doing so will cause your tags to trigger twice and you will receive double the data you should.

You can also configure Tag Manager by clicking on the **Settings** icon on the left side of Softr Studio and clicking on **Custom Code.**

![Clicking on settings, then custom code](/integrations/google-tag-manager/image2.webp)

_Clicking on settings, then custom code_

Then in a new tab go to [tagmanager.google.com](https://tagmanager.google.com), click on the Account you’ve set up.

![Choose your account from the list](/integrations/google-tag-manager/image3.webp)

_Choose your account from the list_

Then, click on the container ID in the upper right corner.

![Notion image](/integrations/google-tag-manager/image4.webp)

You will see header and footer codes which can be copied and pasted into the Header and Footer sections of the Custom Code panel of Softr. Don’t forget to click **Save** when finished.

![Custom header and footer code to be copied.](/integrations/google-tag-manager/image5.webp)

_Custom header and footer code to be copied._

![Be sure to paste the codes in the correct places, then click Save.](/integrations/google-tag-manager/image6.webp)

_Be sure to paste the codes in the correct places, then click Save._

## Facebook Pixel

The [Facebook Pixel](https://www.facebook.com/business/tools/meta-pixel) is a code snippet placed on your website or web app that lets you track and optimize the audience that visits your site as a result of your Facebook ad campaigns (paid) or organically (unpaid). For instance, if someone lands on your website and then makes a purchase or performs some other action, you can track that activity through Facebook Pixel and tie it to a Facebook Ad. Thus, Pixel tracks all the actions that users make on your website but then ties that traffic directly to an ad if you are running Facebook ads. Then, you can, for instance, retarget your Facebook ads to show them only to your website visitors.

In order to activate the Pixel on your Softr app, you need to locate your **Pixel ID** and add it in **Settings⇒Integrations⇒Facebook Pixel**. Let’s see where you can find the ID.

### Connecting Facebook Pixel

Navigate to Facebook [Ads Manager](https://www.facebook.com/business/tools/ads-manager) and, in the left-hand navigation menu, locate the **Events Manager** tool.

![Navigating to Events Manager](/integrations/facebook-pixel/image1.webp)

_Navigating to Events Manager_

Next, if you don’t yet have any data connected, a pop-up will appear, prompting you to connect your data. Hit **Connect Data** to continue.

![Connect Data](/integrations/facebook-pixel/image2.webp)

_Connect Data_

Choose the **Web** option and hit **Connect**.

![Connect a website](/integrations/facebook-pixel/image3.webp)

_Connect a website_

Further on, you need to name your Pixel.

![Naming the Pixel](/integrations/facebook-pixel/image4.webp)

_Naming the Pixel_

And also enter your website URL.

![Entering website URL](/integrations/facebook-pixel/image5.webp)

_Entering website URL_

In the following screen, you need to choose the connection type. **Conversions API** **+ Meta Pixel** is a more advanced option, and you can learn more about it [here](https://www.facebook.com/business/help/2041148702652965?id=818859032317965). Here, we are going to choose the **Meta Pixel only** option and finalize the setup.

![Connection type](/integrations/facebook-pixel/image6.webp)

_Connection type_

As soon as you finish setting up your Pixel, you’ll be taken to the **Events Manager Overview**, where you should see all the Pixel-related activity. Here, you need to locate your Pixel ID (shown in the screenshot below) and paste in your Softr app’s **Settings ⇒ Integrations ⇒ Facebook Pixel**.

![Events Manager Overview](/integrations/facebook-pixel/image7.webp)

_Events Manager Overview_

That’s it. Now, you should start receiving activity from your site.

> **Tip**
>
> It can take up to 24 hours before Facebook starts recording activity from the Pixel.

Now, let’s see how you can make sure Pixel is installed correctly on your site.

### Testing Facebook Pixel

If you use Chrome, there’s a handy extension called [Meta Pixel Helper](https://chrome.google.com/webstore/detail/meta-pixel-helper/fdgfkebogiimcoedlicjlajpkdmockpc) that lets you test Pixel setup on any of your site’s pages. Just activate the extension and open it on any of the pages where you have Pixel installed. Below, you can see how we test it on an app we just installed Pixel on. As you can see, the extension is able to detect the Pixel successfully.

![Testing Pixel setup](/integrations/facebook-pixel/image8.webp)

_Testing Pixel setup_

### Tracking more events

What we just did is just the basic setup of Facebook Pixel. However, you can do much more with it, adding [standard and custom events](https://www.facebook.com/business/help/964258670337005?id=1205376682832142) to track such actions as add to cart, purchase, and more.

> **Tip**
>
> You can use the [Header Custom Code](/classic/pages-navigation-footer) of your Softr page to add the event code.

## Microsoft Clarity

[Microsoft Clarity](https://clarity.microsoft.com/projects?utm_medium=partner\&utm_source=Softr\&utm_campaign=Growth) is free analytics tool to help you better understand how your users interact with your website. Using the platform, you can generate heatmaps to see where users click on your pages, what they ignore, and so on. Further on, it offers session recording that you can use to get even deeper insights into user experience and test out new ideas. Clarity also integrates with such tools as [Google Analytics](https://docs.microsoft.com/en-us/clarity/ga-integration) to help you better analyze and structure the user data.

Using our Clarity integration, you can easily apply the tool to your Softr application and start collecting insights. Let's quickly go over the steps.

### Getting the project ID

To get started, you need to [create a project](https://docs.microsoft.com/en-us/clarity/getting-started#add-a-new-project) in your Clarity dashboard and connect it to your Softr app under **Website URL**. As soon as the project is ready, go to project settings and copy the ID. Below, you can see where the ID is located and how we've added our Softr application to the Clarity project.

![Getting the Clarity project ID](/integrations/microsoft-clarity/image1.webp)

_Getting the Clarity project ID_

### Adding the project ID on Softr

Now that you have the Project ID, navigate to your Softr app's **Settings => Integrations => Microsoft Clarity** and add it there.

![Adding Clarity ID on Softr](/integrations/microsoft-clarity/image2.webp)

_Adding Clarity ID on Softr_

As soon as you **Save your settings** and **publish your Softr app**, you're ready to go!

### Testing the integration

If you don't yet have actual users on your Softr app, you can just perform some activity yourself, and within a few hours it will start appearing in your Clarity dashboard. As soon as you start gathering data, you can start monitoring activity heatmaps, watching user session recordings, and so on.

![User session recording on Clarity](/integrations/microsoft-clarity/image3.webp)

_User session recording on Clarity_

## Intercom

Intercom is a messaging platform that allows you to communicate with prospective and existing customers. Here, we'll go through the process of adding the Intercom chat widget to your Softr app.

### Locating Intercom Workspace ID

First, you need to locate your Intercom **workspace ID** (app ID). It can be found in the URL of any page you have open in Intercom. It's the code that comes after **apps/**.

![Locating the workspace ID](/integrations/intercom/image1.webp)

_Locating the workspace ID_

The workspace ID can also be found in Settings. In your Intercom account, hover over the account icon in the lower left corner and go to **Settings**.

![Navigating to Settings](/integrations/intercom/image2.webp)

_Navigating to Settings_

Then go to **Installation => Web** and choose the **With code** option under **Install chat for visitors.**

![Widget installation](/integrations/intercom/image3.webp)

_Widget installation_

Scroll down and copy the **app\_id**.

![Copying app ID](/integrations/intercom/image4.webp)

_Copying app ID_

### Adding Workspace ID in Softr Studio

So, after copying the workspace ID, navigate to **Settings => Integrations => Intercom** in your Softr Studio and paste the ID.

![Adding Intercom ID in Softr](/integrations/intercom/image5.webp)

_Adding Intercom ID in Softr_

That's it. As soon as you save your settings and republish your Softr app, the Intercom chat widget will start appearing.

![Intercom widget added to site](/integrations/intercom/image6.webp)

_Intercom widget added to site_

## Crisp

### Adding your website

To integrate Crisp on your Softr app, you need to add your site domain and name when registering on Crisp or in **Settings => Website Settings => Add a new website**.

![Add a new website](/integrations/crisp/image1.webp)

_Add a new website_

Add your website details as shown below.

![Adding website details](/integrations/crisp/image2.webp)

_Adding website details_

### Getting the website ID

As soon as your site is set up, go ahead and connect Crisp. First, you need to click **Integrations**
next to your site name in **Settings => Website settings**.

![Integrations](/integrations/crisp/image3.webp)

_Integrations_

In the pop-up that appears next, choose the **HTML** option.

![Selecting the HTML option](/integrations/crisp/image4.webp)

_Selecting the HTML option_

In the HTML code, locate the **Website ID** and copy it.

![Locating Website ID](/integrations/crisp/image5.webp)

_Locating Website ID_

### Adding the Website ID in Softr Studio

Finally, go back to Softr Studio and paste the code in **Settings => Integrations => Crisp**.

![Adding Website ID in Softr](/integrations/crisp/image6.webp)

_Adding Website ID in Softr_

Save the settings, publish your app again, and you’re done. Now, the Crisp chat icon should appear on your site, allowing your customers to contact you at any time.

![Crisp Chat activated on the site](/integrations/crisp/image7.webp)

_Crisp Chat activated on the site_

## HubSpot Chat

### Creating a Chatflow

To add a chat widget to your Softr app, you first need to create a chatflow in your HubSpot account to be able to receive messages. To do that, go to **Conversations => Chatflows => Create chatflow.**

![Creating a Chatflow](/integrations/hubspot-chat/image1.webp)

_Creating a Chatflow_

In the next step, choose **Website**.

![Choosing the “Website” option](/integrations/hubspot-chat/image2.webp)

_Choosing the “Website” option_

Then select **Live chat**.

![Selecting the “Live chat”option](/integrations/hubspot-chat/image3.webp)

_Selecting the “Live chat”option_

Next, select the **Inbox** and a **Language** for the chatflow, and hit **Create**. You can find more info on configuring these and other parameters of the chatflow [here](https://knowledge.hubspot.com/chatflows/create-a-live-chat).

![Selecting Inbox and Language](/integrations/hubspot-chat/image4.webp)

_Selecting Inbox and Language_

Lastly, you enter the edit page where you can [customize](https://knowledge.hubspot.com/chatflows/create-a-live-chat) your chatflow, and, as soon as you are done, enable it in the upper right corner of the page.

![Enabling chatflow](/integrations/hubspot-chat/image5.webp)

_Enabling chatflow_

So, your chatflow is ready, and you can go ahead and add the tracking code in your Softr app to start displaying the chat widget to your visitors.

### Getting the Tracking Code

Go to **Settings** in your HubSpot account.

![Accessing settings](/integrations/hubspot-chat/image6.webp)

_Accessing settings_

Scroll down to **Tracking Code** and copy the **Embed code**.

> **Tip**
>
> The location of the tracking code can be different depending on your HubSpot subscription plan. Check out this [article](https://knowledge.hubspot.com/reports/install-the-hubspot-tracking-code) for more details.

![Getting the tracking code](/integrations/hubspot-chat/image7.webp)

_Getting the tracking code_

### Adding the tracking code in Softr studio

In Softr Studio, go to **Settings => Integrations => HubSpot Chat**, and enter the **Tracking Code**.

![Adding the tracking code in Softr](/integrations/hubspot-chat/image8.webp)

_Adding the tracking code in Softr_

Save the **Settings**, republish your app, and you're done. Now, the chat widget should start appearing on your site.

![HubSpot chat widget added](/integrations/hubspot-chat/image9.webp)

_HubSpot chat widget added_

## Drift Chat

Here we’ll go through the process of adding the Drift widget to your site. In your Drift account, you need to go to **Settings => Drift widget**, scroll down to **Install**, and locate the **JavaScript** option.

![Drift widget setup](/integrations/drift-chat/image1.webp)

_Drift widget setup_

Hit **Copy** to copy the JavaScript code.

![Copying the JS code](/integrations/drift-chat/image2.webp)

_Copying the JS code_

In your Softr Studio, go to **Settings => Integrations => Drift Chat** and paste the code inside the field.

![Adding Drift widget code in Softr](/integrations/drift-chat/image3.webp)

_Adding Drift widget code in Softr_

That’s it. As soon as you save the updated settings and republish your app, you’ll see the Drift widget appear on the site, as shown below.

![Drift widget published on site](/integrations/drift-chat/image4.webp)

_Drift widget published on site_

## AtomChat

AtomChat is a great solution for adding a group chat or video conferencing functionality for your users if you're building an online community, a social network, an internal collaboration tool, and so on.

[Here](https://help.atomchat.com/portal/en/kb/articles/add-atomchat-to-your-softr) you can find a detailed step-by-step guide on integrating AtomChat with Softr. You can also [add a chat option directly to user profiles](https://help.atomchat.com/portal/en/kb/articles/chat-with-a-user-from-their-profile-softr).

## Iubenda Cookie Solution

Iubenda Cookie Solution allows you to add a customizable cookie consent banner on your site. You will need an Iubenda subscription for this integration. Let's see how it can be done.

> **Tip**
>
> By default, Iubenda will block the most common scripts on your site until the user hits **Accept**. More details on privacy controls and cookie solution configuration are available [here](https://www.iubenda.com/en/help/1205-how-to-configure-your-cookie-solution-advanced-guide).

### Generating a Banner

In your Iubenda account home page, click the **Start Generating** button.

![Start generating](/integrations/iubenda-cookie-solution/image1.webp)

_Start generating_

Choose the **Website** option, specify a **Site Name**, and hit **Start Generating**.

![Choosing the “Website” option](/integrations/iubenda-cookie-solution/image2.webp)

_Choosing the “Website” option_

Next, locate the **Cookie Solution** option and click **Generate Now**.

![Generating the code](/integrations/iubenda-cookie-solution/image3.webp)

_Generating the code_

In the following page, you can customize your banner's design and configure other settings. Hit **Next** as soon as you're done.

![Customizing the banner design](/integrations/iubenda-cookie-solution/image4.webp)

_Customizing the banner design_

Next, if you don't have a paid license, you'll see a pop-up with the upgrade options. You don't need a paid license for the cookie solution, so, if you don't want to upgrade at this point, simply close the pop-up.

![Closing the upgrade pop-up](/integrations/iubenda-cookie-solution/image5.webp)

_Closing the upgrade pop-up_

### Getting the Banner Code

Now, you should see an **Embed** button under **Cookie Solution**. Click the button to get the banner code.

![Getting the embed code](/integrations/iubenda-cookie-solution/image6.webp)

_Getting the embed code_

Here, you can enable/disable **Prior blocking and asynchronous re-activation** and customize the banner further if needed. When everything is ready, simply click **Copy** to copy the banner code.

![Accessing the embed code and customizing the banner further](/integrations/iubenda-cookie-solution/image7.webp)

_Accessing the embed code and customizing the banner further_

### Adding the Banner Code in Softr Studio

Now, switch to your Softr Studio, navigate to **Settings => Integrations => Iubenda Cookie Solution,** and paste the code.

![Applying banner code in Softr](/integrations/iubenda-cookie-solution/image8.webp)

_Applying banner code in Softr_

You're almost done. Just save the settings and republish your app, and you'll notice the cookie consent banner appearing.

![Iubenda pop-up published on the Softr app](/integrations/iubenda-cookie-solution/image9.webp)

_Iubenda pop-up published on the Softr app_

## Weglot

With **Weglot**, you can create a multilingual website on Softr. [Here](https://support.weglot.com/article/320-softr-integration-setup), you can find a step-by-step guide that goes through the whole process.

> **Tip**
>
> In order to translate dynamic content ([List](/classic/list-and-grid-blocks), [Table](/classic/table-block), and other blocks linked to external [data sources](/integrations/data-sources)), please refer to the [dynamic content translation guide](https://support.weglot.com/article/253-how-to-translate-dynamic-content) by Weglot.
