ct_pointer_data becomes huge

Created on 28 June 2025, 5 days ago

Problem/Motivation

If using a website with this module installed a lot, ct_pointer_data becomes huge, to a point of webserver returning 50x errors (500, 502, ...) due to a huge request header with this cookie inside.

Steps to reproduce

Install module, use website a lot, ct_pointer_data grows a few kb in size.

Proposed resolution

Limit size of ct_pointer_data, or add a parameter to be able to set max ct_pointer_data size, or add an option to disable mouse tracking.

🐛 Bug report
Status

Active

Version

9.6

Component

Code

Created by

🇸🇮Slovenia KlemenDEV

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @KlemenDEV
  • Hello klemendev.

    We suggest 2 ways to solve this:

    1. Enable alternative cookies in the plugin settings. The data will be stored in the site database. This will increase the load on the database.

    2. If the use of alternative cookies is unacceptable. We decided to exclude this cookie if the "Use CleanTalk JavaScript library" option is enabled. Please install the attached patch for this.

    Did it help?

  • 🇸🇮Slovenia KlemenDEV

    We have "Use CleanTalk JavaScript library", so I will apply this patch and report back. Thank you for a quick reply and the patch :)

  • 🇸🇮Slovenia KlemenDEV

    Tried the patch with "Use CleanTalk JavaScript library" checked, but

    ct_pointer_data

    the cookie was still generated. Tried in incognito and made sure to clear all caches. Enable alternative cookies in the plugin settings may not be an option for us as we have relatively high-traffic website, although, I can't really estimate an impact of this alternative cookies option

  • Please clarify, did you clear the cache not only the browser, but also the site?

  • 🇸🇮Slovenia KlemenDEV

    Yes, "drush cr" and also in-UI "Performance -> Clear caches" and browser by going incognito.

    In Google Chrome dev tools in cookies list, ct_pointer_data was still created.

    "Use CleanTalk JavaScript library" is enabled, "Enable alternative cookies" is disabled, bot firewall setting is disabled too

  • 🇷🇺Russia znaeff

    Hello,

    I will ask our developers about this. We will contact you within 2-3 business days.

    Thank you.

Production build 0.71.5 2024