# fluentform/6.0.1/app/Http/Controllers/AnalyticsController.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 6.0.1. 26 lines.

- Page: https://pluginprobe.com/plugins/fluentform/6.0.1/code/app/Http/Controllers/AnalyticsController.php
- Raw: https://pluginprobe.com/plugins/fluentform/6.0.1/raw/app/Http/Controllers/AnalyticsController.php
- Modified: 2025-03-20T23:17:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/6.0.1/code/app/Http/Controllers/AnalyticsController.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Http\Controllers;

use Exception;
use FluentForm\App\Services\Analytics\AnalyticsService;
use FluentForm\App\Services\Browser\Browser;
use FluentForm\App\Services\Form\FormService;

class AnalyticsController extends Controller
{
    public function reset(AnalyticsService $analyticsService,$formId)
    {
        try {
            return $this->sendSuccess(
                $analyticsService->reset(intval($formId))
            );
        } catch (\Exception $e) {
            return $this->sendError([
                'message' => __('Something went wrong, please try again!', 'fluentform'),
                'error'   => $e->getMessage(),
            ]);
        }
    }
}

```
