# simpleanalytics/1.108/src/Actions/AddInactiveComment.php

Simple Analytics, version 1.108. 35 lines.

- Page: https://pluginprobe.com/plugins/simpleanalytics/1.108/code/src/Actions/AddInactiveComment.php
- Raw: https://pluginprobe.com/plugins/simpleanalytics/1.108/raw/src/Actions/AddInactiveComment.php
- Modified: 2026-06-18T13:36:38+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/simpleanalytics/1.108/code/src/Actions/AddInactiveComment.php#L10-L20`.

```php
<?php

namespace SimpleAnalytics\Actions;

class AddInactiveComment
{
    use Action;

    /**
     * @var string
     */
    protected $hook = 'wp_footer';

    /** @var string */
    protected $triggeredRule;

    /**
     * @param string $triggeredRule
     */
    public function __construct(string $triggeredRule = '')
    {
        $this->triggeredRule = trim($triggeredRule);
    }

    public function handle(): void
    {
        $reason = $this->triggeredRule !== '' ? $this->triggeredRule : 'Unknown Rule';

        echo sprintf(
            "<!-- Simple Analytics: Script not included because this visitor is excluded by tracking rule: %s -->\n",
            \esc_html($reason)
        );
    }
}

```
