{"id":378929,"date":"2026-10-08T16:28:49","date_gmt":"2026-10-08T16:28:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/statistikwerk\/"},"modified":"2026-10-08T18:22:11","modified_gmt":"2026-10-08T18:22:11","slug":"statistikwerk","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/statistikwerk\/","author":23577542,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.6.1","stable_tag":"1.6.1","tested":"7.1.3","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Statistikwerk","header_author":"ieWerk","header_description":"Privacy-friendly web analytics from Switzerland \u2013 no cookies, no cookie banner. Enter your site ID and you are done.","assets_banners_color":"5785b3","last_updated":"2026-10-08 18:22:11","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/statistikwerk.ch","header_author_uri":"https:\/\/iewerk.ch","rating":0,"author_block_rating":0,"active_installs":0,"downloads":95,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.6.0":{"tag":"1.6.0","author":"iewerk","date":"2026-10-08 17:58:08","revision":3735290},"1.6.1":{"tag":"1.6.1","author":"iewerk","date":"2026-10-08 18:22:11","revision":3735326}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3735290,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3735290,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3735290,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3735290,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3735290,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.6.0","1.6.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3735290,"resolution":"1","location":"assets","locale":"","width":1460,"height":1090},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3735290,"resolution":"2","location":"assets","locale":"","width":1600,"height":1112},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3735290,"resolution":"3","location":"assets","locale":"","width":1600,"height":1468}},"screenshots":{"1":"Overview of the last 30 days on the WordPress dashboard: visitors, pageviews, bounce rate, visit duration and a chart of visitors and pageviews per day.","2":"Settings: connect with Statistikwerk in one step or enter the site ID manually. Choose whether logged-in editors, AI crawlers and page information are counted.","3":"The full statistics at statistikwerk.ch: key figures compared with the previous period, trend, most read pages and categories (sample data)."}},"plugin_section":[262246],"plugin_tags":[2353,232,20315,396,521],"plugin_category":[36,54],"plugin_contributors":[285114],"plugin_business_model":[],"class_list":["post-378929","plugin","type-plugin","status-publish","hentry","plugin_section-dashboard-widgets","plugin_tags-ai","plugin_tags-analytics","plugin_tags-cookieless","plugin_tags-privacy","plugin_tags-statistics","plugin_category-analytics","plugin_category-security-and-spam-protection","plugin_contributors-iewerk","plugin_committers-iewerk"],"banners":{"banner":"https:\/\/ps.w.org\/statistikwerk\/assets\/banner-772x250.png?rev=3735290","banner_2x":"https:\/\/ps.w.org\/statistikwerk\/assets\/banner-1544x500.png?rev=3735290","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/statistikwerk\/assets\/icon.svg?rev=3735290","icon":"https:\/\/ps.w.org\/statistikwerk\/assets\/icon.svg?rev=3735290","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/statistikwerk\/assets\/screenshot-1.png?rev=3735290","caption":"Overview of the last 30 days on the WordPress dashboard: visitors, pageviews, bounce rate, visit duration and a chart of visitors and pageviews per day."},{"src":"https:\/\/ps.w.org\/statistikwerk\/assets\/screenshot-2.png?rev=3735290","caption":"Settings: connect with Statistikwerk in one step or enter the site ID manually. Choose whether logged-in editors, AI crawlers and page information are counted."},{"src":"https:\/\/ps.w.org\/statistikwerk\/assets\/screenshot-3.png?rev=3735290","caption":"The full statistics at statistikwerk.ch: key figures compared with the previous period, trend, most read pages and categories (sample data)."}],"raw_content":"<!--section=description-->\n<p>Statistikwerk shows you how many people visit your website, which pages they read and where they come from \u2013 without cookies and without storing IP addresses. That is why you do not need a cookie banner for it.<\/p>\n\n<p>This plugin connects your WordPress site to <a href=\"https:\/\/statistikwerk.ch\">Statistikwerk<\/a>. It adds the small tracking script to every page, so you do not have to touch your theme, and shows an overview of the last 30 days on your WordPress dashboard.<\/p>\n\n<ul>\n<li>One-click setup: connect with Statistikwerk, log in or create a free account, done<\/li>\n<li>Overview on the WordPress dashboard: visitors, pageviews, bounce rate, visit duration and a chart of visitors and pageviews for the last 30 days<\/li>\n<li>Content statistics: rankings by category, author and tag, and pages shown with their titles<\/li>\n<li>AI visibility: see how many visitors come from AI assistants (ChatGPT, Perplexity, Claude, Gemini, Copilot) and how often AI crawlers such as GPTBot, ClaudeBot or PerplexityBot read your pages<\/li>\n<li>No cookies, no stored IP addresses, data hosted in Switzerland<\/li>\n<li>Designed for the Swiss Data Protection Act (nDSG\/revFADP) and the GDPR<\/li>\n<li>Works with every theme and page builder (Gutenberg, Elementor, Divi, Bricks, Thrive \u2026)<\/li>\n<li>Logged-in editors and administrators are not counted (optional)<\/li>\n<li>Protected against optimisation plugins that would break the script (LiteSpeed Cache, WP Rocket, Autoptimize, Cloudflare)<\/li>\n<li>Lightweight: one small script, loaded with <code>defer<\/code><\/li>\n<\/ul>\n\n<p>Statistikwerk is a service. You need a free account at <a href=\"https:\/\/statistikwerk.ch\/register\">statistikwerk.ch<\/a> to see your statistics.<\/p>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects to Statistikwerk, a web analytics service operated by ieWerk, Switzerland. It is needed to count the visits to your website and to show the overview on the dashboard.<\/p>\n\n<p><strong>Counting visits.<\/strong> As soon as a site ID is saved, the plugin adds the script <code>https:\/\/statistikwerk.ch\/s.js<\/code> to every public page of your website. When a visitor opens a page, the visitor's browser loads this script and sends the following data to <code>https:\/\/statistikwerk.ch\/e.php<\/code>:<\/p>\n\n<ul>\n<li>the site ID<\/li>\n<li>the address of the page (without the part after <code>#<\/code>)<\/li>\n<li>the referring page (referrer)<\/li>\n<li>the width of the browser window<\/li>\n<li>when the visitor leaves or hides the page: how many seconds the page was visible<\/li>\n<\/ul>\n\n<p>The browser also transmits its IP address, user agent and language settings, as with every web request. Statistikwerk does not store the IP address; it is only used to derive the country and an anonymous daily visitor hash that changes every day. Of the language settings, only the main language code (for example \"fr\") is stored. No cookies are set. The browser's local storage is only used if you, the site owner, exclude your own browser from counting.<\/p>\n\n<p><strong>Connecting (optional).<\/strong> Only when an administrator clicks \u00abConnect with Statistikwerk\u00bb, the browser is sent to <code>https:\/\/statistikwerk.ch\/verbinden\/wordpress<\/code> with the address of your site, the site title, the WordPress time zone and the address to return to. After confirming, your WordPress server sends a one-time code to <code>https:\/\/statistikwerk.ch\/api\/v1\/connect\/token<\/code> and receives a read-only access key for this one website.<\/p>\n\n<p><strong>Dashboard overview (only when connected).<\/strong> Your WordPress server requests the figures of the last 30 days from <code>https:\/\/statistikwerk.ch\/api\/v1\/summary<\/code> with the access key, at most every 15 minutes while the dashboard is viewed. Only aggregated numbers are received; nothing about your visitors or WordPress users is sent. Disconnecting or deleting the plugin sends a request to <code>https:\/\/statistikwerk.ch\/api\/v1\/token<\/code> to delete the access key.<\/p>\n\n<p><strong>Page information (only when connected, can be switched off).<\/strong> Once a day, your WordPress server sends the path, title, author name, address of the author page, categories, tags and publication date of your published posts and pages to <code>https:\/\/statistikwerk.ch\/api\/v1\/pages<\/code> with the access key. This is the same information that is public on your website. It is used to show statistics by category, author and tag.<\/p>\n\n<p><strong>AI crawler counts (only when connected, can be switched off).<\/strong> When a known AI crawler (for example GPTBot, ClaudeBot or PerplexityBot) requests a page, the plugin counts it in your WordPress database. Once an hour, your WordPress server sends the daily totals to <code>https:\/\/statistikwerk.ch\/api\/v1\/crawlers<\/code> with the access key: the date, the name of the crawler, the path of the page and the number of requests. No IP addresses and no data about visitors or WordPress users are sent.<\/p>\n\n<p>Nothing is sent before a site ID is saved or a connection is made.<\/p>\n\n<ul>\n<li>Terms of use: https:\/\/statistikwerk.ch\/agb<\/li>\n<li>Privacy policy: https:\/\/statistikwerk.ch\/datenschutz<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin.<\/li>\n<li>Go to Settings \u2192 Statistikwerk and click \u00abConnect with Statistikwerk\u00bb.<\/li>\n<li>Log in or create a free account, choose your website (or add it) and confirm.<\/li>\n<li>Done. The page cache of common caching plugins is cleared automatically. If your host or a CDN such as Cloudflare also caches pages, clear that cache as well.<\/li>\n<\/ol>\n\n<p>You can also skip the connection and paste the site ID (or the whole snippet) from the setup page at statistikwerk.ch. Visits are counted in the same way; only the dashboard overview needs the connection.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"do%20i%20need%20a%20cookie%20banner%3F\"><h3>Do I need a cookie banner?<\/h3><\/dt>\n<dd><p>Not for Statistikwerk: it sets no cookies and stores no IP addresses or other personal data. Mention Statistikwerk in your privacy policy anyway.<\/p><\/dd>\n<dt id=\"where%20are%20my%20visits%20counted%3F\"><h3>Where are my visits counted?<\/h3><\/dt>\n<dd><p>On the Statistikwerk servers in Switzerland. You see the full statistics after logging in at statistikwerk.ch, and an overview on your WordPress dashboard once the site is connected.<\/p><\/dd>\n<dt id=\"who%20sees%20the%20dashboard%20overview%3F\"><h3>Who sees the dashboard overview?<\/h3><\/dt>\n<dd><p>Administrators. With the filter <code>statistikwerk_widget_capability<\/code> you can choose another capability, for example <code>edit_posts<\/code> for editors.<\/p><\/dd>\n<dt id=\"are%20my%20own%20visits%20counted%3F\"><h3>Are my own visits counted?<\/h3><\/dt>\n<dd><p>By default, logged-in editors and administrators are not counted. You can change this in the settings.<\/p><\/dd>\n<dt id=\"why%20are%20no%20visits%20counted%20yet%3F\"><h3>Why are no visits counted yet?<\/h3><\/dt>\n<dd><p>Open your website in a private browser window without logging in, because logged-in editors and administrators are not counted by default. If still nothing arrives, your pages are probably cached: visitors then get pages from before the installation, without the tracking script. The plugin clears the cache of common caching plugins (LiteSpeed Cache, WP Rocket, W3 Total Cache and others) automatically. Caches of your host (for example WordPress.com) or of a CDN such as Cloudflare have to be cleared in their dashboard, or they expire on their own after a few hours.<\/p><\/dd>\n<dt id=\"can%20i%20exclude%20certain%20pages%3F\"><h3>Can I exclude certain pages?<\/h3><\/dt>\n<dd><p>Yes, with the filter <code>statistikwerk_should_track<\/code>. Return <code>false<\/code> for pages that should not be counted.<\/p><\/dd>\n<dt id=\"how%20are%20ai%20crawlers%20counted%3F\"><h3>How are AI crawlers counted?<\/h3><\/dt>\n<dd><p>AI crawlers do not run JavaScript, so the tracking script cannot see them. When your site is connected, the plugin recognises known AI crawlers by their user agent on your server, counts their page requests per day and sends these daily totals to Statistikwerk once an hour. You can switch this off in the settings. Pages delivered from a page cache do not reach WordPress and are therefore not counted.<\/p><\/dd>\n<dt id=\"how%20do%20i%20disconnect%3F\"><h3>How do I disconnect?<\/h3><\/dt>\n<dd><p>In WordPress under Settings \u2192 Statistikwerk \u2192 \u00abDisconnect\u00bb, or at statistikwerk.ch on the setup page of your website. Deleting the plugin also removes the connection.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.6.1<\/h4>\n\n<ul>\n<li>When the site ID changes, the page cache of common caching plugins is cleared automatically, so all pages are counted right away.<\/li>\n<li>The settings page shows the version number.<\/li>\n<li>In the plugin list, the links to the author and the plugin website open in a new tab.<\/li>\n<\/ul>\n\n<h4>1.6.0<\/h4>\n\n<ul>\n<li>Page information: also sends the address of the author page, so Statistikwerk can link to it in the author statistics.<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<ul>\n<li>Page information: titles, authors, categories and tags of published posts and pages are sent once a day, so Statistikwerk can show statistics by category, author and tag. Can be switched off in the settings.<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>AI visibility: counts page requests by AI crawlers (GPTBot, ClaudeBot, PerplexityBot and others) and shows them in Statistikwerk. Can be switched off in the settings.<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Dashboard overview: two-coloured bars show visitors and pageviews per day, with a legend.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Dashboard overview: note when part of the data is hidden (open invoice or monthly pageview limit exceeded).<\/li>\n<li>Translations are now provided by translate.wordpress.org; the bundled translation files were removed.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Connect with Statistikwerk in one step: log in or create an account, choose the website, done. The site ID is filled in automatically.<\/li>\n<li>Overview of the last 30 days on the WordPress dashboard.<\/li>\n<li>Disconnect in the settings; deleting the plugin also removes the connection.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Ready for translation, English base texts with German translation included.<\/li>\n<li>Setup guide with links to create an account and add a website.<\/li>\n<li>Script is added with the WordPress function <code>wp_print_script_tag<\/code>.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First version.<\/li>\n<\/ul>","raw_excerpt":"Privacy-friendly web analytics from Switzerland. No cookies, no cookie banner, no stored IP addresses.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/378929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=378929"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/iewerk"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=378929"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=378929"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=378929"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=378929"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=378929"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=378929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}