---
title: Webview - Flutter (classic)
description: Plugin to use Contentsquare in webview_flutter webviews
lastUpdated: 09 October 2025
source_url:
  html: https://docs.contentsquare.com/en/flutter/webview/
  md: https://docs.contentsquare.com/en/flutter/webview/index.md
---

> Documentation index: https://docs.contentsquare.com/llms.txt
> Use this file to discover all available pages before exploring further.

The latest CSQ SDK is here! Learn how to [upgrade your app](https://docs.contentsquare.com/en/csq-sdk-flutter/experience-analytics/upgrade-from-cs-sdk/).

A plugin to use Contentsquare in [webview\_flutter ↗](https://pub.dev/packages/webview_flutter) webviews.

This plugin supports Android and iOS.

This plugin exposes a custom implementation of the [Webview tracking feature](https://docs.contentsquare.com/en/flutter/track-webviews/#examples) which tracks [webview\_flutter ↗](https://pub.dev/packages/webview_flutter) package webviews without having to implement the tracker again.

This package is not required to track these webviews but offers a convenient wrapper around the base `ContentsquareWebViewTrackerBuilder` class.

This package relies on the Contentsquare Flutter plugin, and does not need any additional configuration.

## Installation

Add the `contentsquare_webview_flutter` package in your `pubspec.yaml`:

**pubspec.yaml**

```yaml
dependencies:
  flutter:
    sdk: flutter


  contentsquare_webview_flutter: ^2.1.0
```

then run

```shell
flutter pub get
```

### Usage

```dart
final _webViewController = WebViewController();
[...]
ContentsquareWebViewFlutterTrackerBuilder(
  webViewController: _webViewController,
  onTrackingReady: () => _webViewController.loadRequest(Uri.parse(url)),
  child: WebViewWidget(controller: _webViewController),
)
```

## Compatibility

Each version of the Contentsquare Webview Flutter plugin is related to a version of the third party plugin [webview\_flutter ↗](https://pub.dev/packages/webview_flutter).

| Contentsquare WebView Flutter Version | [webview\_flutter ↗](https://pub.dev/packages/webview_flutter) Version | Contentsquare Flutter Plugin Version |
| - | - | - |
| 2.1.0 | ^4.0.0 | ^2.3.0 |
| 2.0.0 | ^4.0.0 | ^2.0.0 |
| 1.0.0 | ^3.0.0 | ^1.3.2 |

## Changelog

### 2.2.0 - 2023.06.21

* **Contentsquare Flutter Plugin:**
  * 2.3.0 → 3.1.0
* Support of Flutter 3.10

### 2.1.0 - 2023.05.03

* **Contentsquare Flutter Plugin:**
  * 2.2.0 → 2.3.0

### 2.0.0 - 2023.03.28

Breaking change

The plugin now supports the new [Flutter webview plugin ↗](https://pub.dev/packages/webview_flutter) (^4.0.0). The plugin is no longer compatible with the previous version of the Flutter webview plugin (^3.0.0)

* Support of webview\_flutter v4

### 1.0.0 - 2023.03.22

* Support of webview\_flutter v3
