{"id":398226,"date":"2026-11-16T11:09:21","date_gmt":"2026-11-16T11:09:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/win-tracking-lite\/"},"modified":"2026-11-16T11:32:34","modified_gmt":"2026-11-16T11:32:34","slug":"win-tracking-lite","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/win-tracking-lite\/","author":23598568,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.11.4","stable_tag":"1.11.4","tested":"7.1.4","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Win Tracking Lite","header_author":"Win Digital","header_description":"Google Analytics 4 for WordPress and WooCommerce, with a built-in cookie banner and Google Consent Mode v2.","last_updated":"2026-11-16 11:32:34","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/win-digital.fr\/win-tracking","header_author_uri":"https:\/\/win-digital.fr","rating":0,"author_block_rating":0,"active_installs":0,"downloads":60,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.11.4":{"tag":"1.11.4","author":"windigital31","date":"2026-11-16 11:32:34","revision":3804982}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3804910,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3804910,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3804910,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3804910,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.11.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3804982,"resolution":"1","location":"assets","locale":"","width":1280,"height":900},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3804982,"resolution":"2","location":"assets","locale":"","width":1280,"height":900},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3804982,"resolution":"3","location":"assets","locale":"","width":1280,"height":800},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3804982,"resolution":"4","location":"assets","locale":"","width":1280,"height":1000},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3804982,"resolution":"5","location":"assets","locale":"","width":1280,"height":900}},"screenshots":{"1":"Google tab: switch on GA4 and paste your Measurement ID.","2":"Consent tab: Consent Mode v2 with \"denied\" as the initial state.","3":"The built-in cookie banner on your site, with equal \"Accept all\" and \"Reject all\" buttons.","4":"Banner tab: position, text, policy link and colors.","5":"Tools tab: run the diagnostic and check the installation."}},"plugin_section":[],"plugin_tags":[223629,16626,193472,1005,286],"plugin_category":[45],"plugin_contributors":[293105],"plugin_business_model":[],"class_list":["post-398226","plugin","type-plugin","status-publish","hentry","plugin_tags-consent-mode","plugin_tags-cookie-consent","plugin_tags-ga4","plugin_tags-google-analytics","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-windigital31","plugin_committers-windigital31"],"banners":{"banner":"https:\/\/ps.w.org\/win-tracking-lite\/assets\/banner-772x250.png?rev=3804910","banner_2x":"https:\/\/ps.w.org\/win-tracking-lite\/assets\/banner-1544x500.png?rev=3804910","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/win-tracking-lite\/assets\/icon-128x128.png?rev=3804910","icon_2x":"https:\/\/ps.w.org\/win-tracking-lite\/assets\/icon-256x256.png?rev=3804910","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/win-tracking-lite\/assets\/screenshot-1.png?rev=3804982","caption":"Google tab: switch on GA4 and paste your Measurement ID."},{"src":"https:\/\/ps.w.org\/win-tracking-lite\/assets\/screenshot-2.png?rev=3804982","caption":"Consent tab: Consent Mode v2 with \"denied\" as the initial state."},{"src":"https:\/\/ps.w.org\/win-tracking-lite\/assets\/screenshot-3.png?rev=3804982","caption":"The built-in cookie banner on your site, with equal \"Accept all\" and \"Reject all\" buttons."},{"src":"https:\/\/ps.w.org\/win-tracking-lite\/assets\/screenshot-4.png?rev=3804982","caption":"Banner tab: position, text, policy link and colors."},{"src":"https:\/\/ps.w.org\/win-tracking-lite\/assets\/screenshot-5.png?rev=3804982","caption":"Tools tab: run the diagnostic and check the installation."}],"raw_content":"<!--section=description-->\n<p>Win Tracking Lite adds Google Analytics 4 (GA4) to your site, sends the main events of a WooCommerce shop, and lets you choose how visitor consent is handled. It does one job and tries to do it carefully: no account to create, no licence key, no feature that is locked or limited in time.<\/p>\n\n<p><strong>What you get<\/strong><\/p>\n\n<ul>\n<li><strong>GA4 with your Measurement ID.<\/strong> The Google tag (gtag.js) is added for you. If your theme or another tool already adds it, untick \"Load gtag.js\" and the plugin will only send the events.<\/li>\n<li><strong>Google Consent Mode v2, with three modes to choose from<\/strong> (Consent tab):\n\n<ul>\n<li><strong>Consent Mode v2 (default).<\/strong> The Google tag file is loaded with all storage denied, and no event is sent until the visitor accepts statistics. Without a consent banner or a consent plugin, nothing is measured in this mode.<\/li>\n<li><strong>Strict.<\/strong> The Google tag is not even loaded until the visitor accepts.<\/li>\n<li><strong>Disabled.<\/strong> The plugin does not manage consent: the tag loads and events are sent immediately. Choose it only if your site does not need visitor consent or if consent is already handled elsewhere. It is your responsibility to comply with the laws that apply to your visitors.<\/li>\n<\/ul><\/li>\n<li><strong>A built-in cookie banner (optional, off by default).<\/strong> Accept all, reject all, or choose by category. You can change the text, position and colours, link your cookie policy, and add a link anywhere on your site to let visitors reopen the banner. The banner is available in English, French, Romanian and Hungarian.<\/li>\n<li><strong>Works with consent plugins.<\/strong> WP Consent API, Complianz and Cookiebot are detected and the visitor's choice made there is respected. In that case, leave the built-in banner off.<\/li>\n<li><strong>Automatic events.<\/strong> Page views, searches and sign-ups on any site. With WooCommerce: product views, product list views, cart views, begin checkout, add to cart (including AJAX buttons on product lists) and purchase. A purchase is counted once per order, even if the confirmation page is reloaded. Optional scroll depth and time-on-page events.<\/li>\n<li><strong>Optional server-side sending.<\/strong> Events can also be sent from your server with the GA4 Measurement Protocol (you create an API secret in GA4), only when the visitor's consent allows it.<\/li>\n<li><strong>Exclusions.<\/strong> User roles (administrators are excluded by default) and IP addresses are never tracked.<\/li>\n<li><strong>Diagnostic and debug log.<\/strong> A button in the Tools tab checks your setup and, if server-side sending is configured, sends a real test event to Google's validation endpoint.<\/li>\n<li><strong>Secret stored encrypted.<\/strong> The GA4 API secret is encrypted in the database when OpenSSL is available on your server.<\/li>\n<\/ul>\n\n<p>Win Tracking Lite is not legal advice: whether and how you must ask for consent depends on your country and your visitors.<\/p>\n\n<p>Win Tracking Pro adds Meta, Google Ads, TikTok, Bing, Pinterest, GTM, product catalog feeds and more - a separate plugin available on win-digital.fr.<\/p>\n\n<h3>External services<\/h3>\n\n<p>Win Tracking Lite connects to Google Analytics, a service of Google LLC, to measure visits. It does not contact Win Digital or any other server: the links to win-digital.fr in this file and on the settings screen are plain links, nothing is loaded from there.<\/p>\n\n<p><strong>1. Google tag (gtag.js)<\/strong><\/p>\n\n<ul>\n<li>What it is for: measuring visits and events in your Google Analytics 4 property.<\/li>\n<li>Where: the script is loaded from <code>https:\/\/www.googletagmanager.com\/gtag\/js<\/code> and then the visitor's browser sends measurement requests to Google.<\/li>\n<li>When: on the public pages of your site, only if tracking is enabled, GA4 is enabled with a Measurement ID and \"Load gtag.js\" is ticked. With the default Consent Mode v2 setting the tag loads with all storage denied until the visitor agrees; in Strict mode it loads only after consent; in Disabled mode it loads immediately. Excluded roles and IP addresses are not tracked.<\/li>\n<li>Data sent: page address, page title, referrer, event names and parameters (searches, product names, identifiers, prices, cart and order amounts, order number for purchases), the consent state, and what any browser request reveals (IP address, browser and device information). Google cookies (<code>_ga<\/code>, <code>_ga_&lt;ID&gt;<\/code>) identify the browser once consent is given.<\/li>\n<\/ul>\n\n<p><strong>2. Google Analytics Measurement Protocol (server-side, optional)<\/strong><\/p>\n\n<ul>\n<li>What it is for: sending events from your server, so that conversions are not lost to ad blockers.<\/li>\n<li>Where: <code>https:\/\/www.google-analytics.com\/mp\/collect<\/code><\/li>\n<li>When: only if \"Server-to-server sending\" and \"Measurement Protocol\" are enabled, an API secret is saved, and the visitor's consent allows it. It is off by default.<\/li>\n<li>Data sent: the same events as above, the Google client ID and session ID read from the visitor's <code>_ga<\/code> cookies, a consent flag for ad personalization and, for logged-in visitors, their WordPress user ID as the GA4 <code>user_id<\/code>. Your Measurement ID and API secret are part of the request URL, as Google requires.<\/li>\n<\/ul>\n\n<p><strong>3. Google Analytics validation endpoint (administrators only)<\/strong><\/p>\n\n<ul>\n<li>What it is for: checking that the Measurement Protocol settings are valid.<\/li>\n<li>Where: <code>https:\/\/www.google-analytics.com\/debug\/mp\/collect<\/code><\/li>\n<li>When: only when an administrator clicks \"Run the diagnostic\" in the Tools tab and Measurement Protocol is configured.<\/li>\n<li>Data sent: one test page view with a random client ID, your home page address, and your Measurement ID and API secret.<\/li>\n<\/ul>\n\n<p>Google Analytics terms of service: https:\/\/marketingplatform.google.com\/about\/analytics\/terms\/us\/\nGoogle privacy policy: https:\/\/policies.google.com\/privacy<\/p>\n\n<!--section=installation-->\n<ol>\n<li>In your WordPress admin, go to Plugins &gt; Add New, search for \"Win Tracking Lite\", then click Install and Activate. (Or upload the plugin folder to <code>\/wp-content\/plugins\/<\/code> and activate it from the Plugins screen.)<\/li>\n<li>Find your GA4 Measurement ID. In Google Analytics, click the gear icon (Admin) at the bottom left. In the Property column, click Data streams, then click your website's stream. The Measurement ID is shown at the top right of the stream details and looks like <code>G-XXXXXXXXXX<\/code>. Click the copy icon next to it. (No stream yet? Click Add stream &gt; Web, enter your site address, and create it.)<\/li>\n<li>In WordPress, open Win Tracking Lite &gt; Google, tick \"GA4\" and paste your Measurement ID.<\/li>\n<li>Open the Consent tab and choose a mode. If you do not already have a consent plugin, open the Banner tab and enable the built-in cookie banner.<\/li>\n<li>Open the Tools tab and run the diagnostic. Then visit your site in a private window and check Google Analytics &gt; Reports &gt; Realtime.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20work%20without%20woocommerce%3F\"><h3>Does it work without WooCommerce?<\/h3><\/dt>\n<dd><p>Yes. Page views, searches and sign-ups are measured on any site. The shop events (product views, cart, checkout, purchase) only appear when WooCommerce is active.<\/p><\/dd>\n<dt id=\"which%20id%20do%20i%20enter%3F\"><h3>Which ID do I enter?<\/h3><\/dt>\n<dd><p>The Measurement ID of your GA4 web data stream (<code>G-XXXXXXXXXX<\/code>). If Google says the tag is not detected, open your data stream, choose \"View tag instructions\" and use the ID that the Google tag displays there: a stream can be attached to a Google tag that has a different ID.<\/p><\/dd>\n<dt id=\"ga4%20is%20already%20added%20by%20my%20theme%20or%20by%20google%20tag%20manager.%20will%20events%20be%20counted%20twice%3F\"><h3>GA4 is already added by my theme or by Google Tag Manager. Will events be counted twice?<\/h3><\/dt>\n<dd><p>Only if the page contains two copies of the same tag. Untick \"Load gtag.js\" in the Google tab if another tool already adds the Google tag, or remove the other one.<\/p><\/dd>\n<dt id=\"which%20consent%20mode%20should%20i%20choose%3F\"><h3>Which consent mode should I choose?<\/h3><\/dt>\n<dd><p>Keep the default (Consent Mode v2) if you ask visitors for consent: nothing is measured before they accept statistics. Choose Strict if you also want the Google tag file to stay unloaded until then. Choose Disabled only if no consent is required for your site, or if another tool already handles it: in that mode the plugin measures every visit immediately.<\/p><\/dd>\n<dt id=\"do%20i%20need%20the%20cookie%20banner%3F\"><h3>Do I need the cookie banner?<\/h3><\/dt>\n<dd><p>Only if you do not already have a consent plugin and your visitors require consent. If you use WP Consent API, Complianz or Cookiebot, leave the built-in banner off: their choice is picked up automatically.<\/p><\/dd>\n<dt id=\"what%20does%20the%20plugin%20store%20on%20my%20site%3F\"><h3>What does the plugin store on my site?<\/h3><\/dt>\n<dd><p>Its settings (one option), an optional debug log (only while debug mode is on), a marker on each WooCommerce order that has been counted (so that a purchase is never counted twice), and short-lived locks and counters. Everything is removed when you delete the plugin. In the visitor's browser it sets two small cookies, <code>wt_consent<\/code> and <code>wt_banner_choice<\/code>, to remember the consent choice; Google's own cookies (<code>_ga<\/code>, <code>_ga_&lt;ID&gt;<\/code>) are set by the Google tag once the visitor agrees.<\/p><\/dd>\n<dt id=\"can%20i%20switch%20to%20win%20tracking%20pro%20later%3F\"><h3>Can I switch to Win Tracking Pro later?<\/h3><\/dt>\n<dd><p>Yes. When you activate Win Tracking Pro (version 1.11.1 or later), it picks up your Win Tracking Lite settings automatically. The two plugins are not meant to run together: if both are active, Win Tracking Lite stays idle and shows a notice, so nothing is measured twice. Once the Pro edition works, you can delete Win Tracking Lite.<\/p><\/dd>\n<dt id=\"does%20it%20help%20with%20gdpr%20and%20other%20privacy%20rules%3F\"><h3>Does it help with GDPR and other privacy rules?<\/h3><\/dt>\n<dd><p>It gives you the tools: Google Consent Mode v2 with \"denied\" as the initial state, a built-in cookie banner with equal \"Accept all\" and \"Reject all\" buttons, and exclusions for roles and IP addresses. Whether your site complies depends on your country, your visitors and how you configure it, so this is not legal advice.<\/p><\/dd>\n<dt id=\"is%20it%20free%3F\"><h3>Is it free?<\/h3><\/dt>\n<dd><p>Yes, completely. There is no licence, no trial and no feature hidden behind a payment in this plugin.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.11.4<\/h4>\n\n<ul>\n<li>Cookie banner: the \"Accept all\" and \"Reject all\" buttons now use the banner accent color with exactly the same visual weight (refusing is as easy and visible as accepting, as data protection authorities require); \"Customize\" stays secondary. The halo around the buttons is removed.<\/li>\n<\/ul>\n\n<h4>1.11.3<\/h4>\n\n<ul>\n<li>Follows the WordPress.org plugin review: inline styles and scripts (banner colors, admin menu icon, Consent Mode script) are now added with the WordPress functions wp_add_inline_style() and wp_print_inline_script_tag() instead of being printed by hand. No visible change.<\/li>\n<\/ul>\n\n<h4>1.11.2<\/h4>\n\n<ul>\n<li>No functional change. The version number follows Win Tracking Pro (1.11.2 fixes a Pro-only update problem).<\/li>\n<\/ul>\n\n<h4>1.11.1<\/h4>\n\n<ul>\n<li>Follows the WordPress.org plugin review: all function, class, constant, option, hook and script names now use a distinctive \"wintrli\" prefix.<\/li>\n<li>Translation files removed from the package (translations come from translate.wordpress.org).<\/li>\n<li>Description: the three consent modes are explained more clearly.<\/li>\n<li>Win Tracking Pro takes over the settings of this plugin when it is activated; when both are active, this plugin stays idle.<\/li>\n<\/ul>\n\n<h4>1.11.0<\/h4>\n\n<ul>\n<li>Cookie banner: the \"Statistics\" and \"Advertising\" switches in the \"Customize\" panel did not react to clicks (the colored track caught the click instead of the checkbox). Fixed for every theme: real label around the switch, styles protected against theme stylesheets, keyboard support. The visitor's choice is saved before any tag loads, so the banner always closes.<\/li>\n<li>New settings screen: logo, header, tabs with icons, cards and switches.<\/li>\n<\/ul>\n\n<h4>1.10.0<\/h4>\n\n<ul>\n<li>First release of the free edition on WordPress.org. Its version number follows Win Tracking Pro.<\/li>\n<\/ul>","raw_excerpt":"Google Analytics 4 (GA4) for WordPress and WooCommerce, with Consent Mode v2 and a built-in cookie consent banner.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/398226","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=398226"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/windigital31"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=398226"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=398226"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=398226"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=398226"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=398226"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=398226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}