Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hi @geogoucho, thanks for taking the time to leave a review.

    tracker.js is built for data protection. Here is what it does:

    – It loads from your own website, not from our servers or any other company.
    – It sends page views only to your own WordPress site. No visitor data leaves your server.
    – It does not set any cookies.
    – IP addresses are anonymized and hashed by default, so the full IP is never stored.

    You can check this under **Statistics → Settings → Privacy & Data Protection**. The Privacy Audit there flags any setting that could affect GDPR. If you use a consent plugin (WP Consent API, Real Cookie Banner or Borlabs Cookie), you can connect it on the same page. Then tracking only starts after the visitor agrees.

    More details: https://wp-statistics.com/resources/avoiding-pii-data-collection/

    What made you worried about tracker.js? For example, a privacy scanner, your cookie banner or a browser warning. Tell us and we will look into it. If this answers your concern, we would be grateful if you updated your rating.

    Thanks again, we are here if you need anything else.

    Thread Starter geogoucho

    (@geogoucho)

    Laden fehlgeschlagen für das <script> mit der Quelle "https://www.xxxxxxx/wp-content/plugins/wp-statistics/assets/js/tracker.js?ver=14.16.14".

    someone hate your tracker.js

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hi @geogoucho, thanks for sending the exact message, that helps a lot.

    “Loading failed for the <script>” means your browser blocked tracker.js before it ran. Ad blockers (uBlock Origin, AdGuard) and Firefox tracking protection block any file named “tracker.js”, whatever it does. Nothing was sent anywhere. The script simply did not load.

    To fix it:

    1. Go to **Statistics → Settings → General**.
    2. Turn on **Bypass Ad Blockers** and save.
    3. Clear your page cache, if you use a cache plugin.

    The script then loads under a random name from your own site, so blockers stop catching it. The **Tracker Debugger** under Statistics will confirm it loads. More help: https://wp-statistics.com/resources/troubleshoot-the-tracker/

    If the error stays after that, tell us your browser and any blocker add-on you use, and we will look into it.

    Thread Starter geogoucho

    (@geogoucho)

    there are two ‘tracker.min.js’ and ‘tracker.js’ files inside assets/js and both seemeed to be minified.

    It would be great to get a readable version, so that i can understand what they are doing.

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hi @geogoucho, thanks for looking into this closely.

    You are right, both files are minified. Only tracker.js is loaded on your site. tracker.min.js was an old leftover that nothing loads anymore. We have removed it, and the change goes out in the next version soon: https://github.com/wp-statistics/wp-statistics/commit/7aef2ce2016709dc9e73d36e468414c66054414f

    tracker.js is built from three readable files, already in your plugin folder under wp-content/plugins/wp-statistics/assets/dev/javascript/:

    – user-tracker.js: sends the page view
    – event-tracker.js: link clicks and downloads, only when the Data Plus or Marketing add-on is active
    – tracker.js: starts tracking and checks consent plugins

    Same files on GitHub: https://github.com/wp-statistics/wp-statistics/tree/master/assets/dev/javascript

    In short: it sends one request with the page view to your own site (REST API or admin-ajax.php) and nothing to any other server. It sets no cookies.

    Happy to help if anything in the code is unclear.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this review.