PromoCode Popup and Analytics Module for Magento 2
Magento Modules: Clear Guidelines
You purchase the module once, with no domain restrictions
Free installation and updates via Composer
Affiliate Program
Technical support for Magento
Clear guidelines for licensing Magento modules
Magento Module Code Security
Turn customer interest into effective offers
Kowal_PromoCode is a module for Magento 2 that combines a discount code popup with product interest analytics. The solution not only shows customers an offer at the right time, but also helps you understand which products truly attract attention, how long customers view them, and when it is worth offering an additional incentive to purchase.
The module was designed for stores that want to make marketing decisions based on user behavior, not only general sales statistics.
Key capabilities
Product interest monitoring
The module analyzes visits to product pages and lets you check which products are viewed most often by customers. This allows you to quickly see what attracts users attention, even if it does not immediately result in a purchase.
This is especially useful for:
- identifying products with strong sales potential,
- detecting bestsellers before they appear in sales reports,
- analyzing products that are viewed often but purchased rarely,
- evaluating the effectiveness of campaigns that drive traffic to specific products.
Measuring active time on a product page
The number of product page visits alone does not always say enough. That is why the module measures the active time spent on a product page. Time is counted only when the browser tab is active, which helps reduce data distortion caused by pages left open in the background.
This makes it easier to identify products that truly engage customers.
Example: if a product has many visits and a long viewing time, but a low conversion rate, it may indicate the need for a better offer, additional information, a promotion, or improved product presentation.
Discount code popup
The module can display a discount code popup to the customer after a defined amount of time spent on a product page. This makes it possible to present an offer when the customer is actually showing interest in the product.
You can configure:
- the cart price rule from which the discount code is taken,
- the time after which the popup appears,
- the heading and description content,
- the link text,
- the popup colors,
- the popup background image.
Conversion based on coupon click
The module treats a click on the active coupon button or link as a signal of interest conversion. This allows you to measure which products are not only viewed, but also encourage customers to use a promotion.
This is a more precise signal than simply displaying a popup or generating a code.
Analytics for all product pages
Tracking is not limited only to products where the popup is displayed. The module can analyze all product pages, so the interest report covers the entire catalog.
This allows you to compare products with one another and detect differences between traffic, interest, coupon clicks, and sales.
Interest profiles for logged-in customers
After consent and privacy requirements are met, the module can build interest profiles for logged-in customers.
A customer profile may include:
- recently viewed products,
- most frequently viewed products,
- categories generating the highest interest,
- total and average active viewing time,
- coupon clicks,
- history of returning to products,
- customer interest score.
This helps you better understand the needs of a specific customer and prepare a more relevant offer.
Candidates for special offers
The module can indicate customers who qualify for an individual offer. For example: a customer returns to the same product several times, views it for a long time, clicks the coupon, but still does not place an order.
This behavior may indicate a strong purchase intent and a good moment to offer an additional incentive.
Example scenarios:
- the customer views a product for a long time but does not buy,
- the customer returns several times to the same product,
- the customer is interested in many products from one category,
- the customer clicks a coupon but does not complete the order,
- the customer shows interest in premium products.
Reports in the admin panel
The module adds reports that help you quickly analyze customer and product behavior.
Product interest report
The report shows, among other things:
- product and SKU,
- number of visits,
- number of unique visitors,
- average time spent on the product,
- total interest time,
- coupon clicks,
- conversion rate.
Customer interest profiles
For logged-in customers, with appropriate consent, the module can display:
- customer and email address,
- date of last activity,
- total and average interest time,
- most frequently viewed products,
- coupon clicks,
- interest score,
- information on whether the customer qualifies for an offer.
Offer candidates
The offer candidates report helps identify customers who may need an additional purchase incentive. The administrator can see the qualification reason, interest score, product or category, and recommendation status.
Security and performance
The module was designed for stores with high traffic that need to be mindful of database load.
Instead of saving every user action directly to the database, the module:
- collects data locally in the browser,
- sends a condensed payload after the visit ends,
- uses Magento Message Queue,
- saves data asynchronously through a consumer,
- rejects short and suspicious sessions,
- limits the impact of bots on reports,
- aggregates data into daily reports.
This approach helps maintain high store performance even with heavier traffic.
Privacy and consent
The module takes privacy mechanisms into account and can work with the Kowal_CookieConsent module.
By default:
- anonymous visitor tracking without cookie consent is disabled,
- profiling of logged-in customers is disabled without appropriate consent,
- customer data is separated from anonymous product analytics,
- access to customer reports can be restricted with ACL permissions.
Integration with Cookie Consent allows the module operation to be linked to consent levels such as tracking or targeting.
Example use cases
Recovering undecided customers
If a customer views a product for a long time but does not add it to the cart, the store can offer a discount code or highlight additional purchase arguments.
Better promotion planning
Products with many visits and low conversion can be good candidates for a promotion, price change, description improvement, or better photos.
Customer segmentation
Logged-in customers can be grouped by interest in categories or products. This can make marketing campaigns more relevant.
Product page quality analysis
A long viewing time without a coupon click or purchase may indicate that the customer is looking for information that is missing from the product page.
Detecting potential bestsellers
A product may generate strong interest before it starts selling well. The module helps capture these signals earlier.
Benefits for the store
- better understanding of customer behavior,
- more effective use of discount codes,
- ability to respond to real product interest,
- identification of products with potential,
- reduction of poorly targeted promotions,
- support for offer personalization,
- greater control over data and consent,
- lower database load thanks to queueing and aggregation,
- reports useful for marketing, sales, and e-commerce managers.
Who is this module for?
The module is intended for Magento 2 stores that:
- want to use discount codes more effectively,
- need data about product interest,
- want to create more relevant offers,
- analyze customer behavior before purchase,
- run marketing campaigns for products or categories,
- want to develop sales personalization in Magento.
Requirements
- Magento 2.4.7 or newer,
- configured Magento Message Queue,
- RabbitMQ recommended for stores with higher traffic,
- optionally, the
Kowal_CookieConsentmodule for handling cookie consent and profiling.
Summary
Kowal_PromoCode turns a classic discount popup into an analytics and sales tool. The module helps you see which products truly interest customers, when it is worth offering a coupon, and which customers may be ready for an individual offer.
It is a solution for stores that want to sell smarter: not only display promotions, but use customer behavior data to make better marketing decisions.
Installation
* In a production environment, please use the --keep-generated option
Type: Composer
- The module is available in the composer repository:
- Private GitLab repository:
https://gitlab.com
- Private GitLab repository:
- Add the composer repository to the configuration:
composer config repositories.promocode.popup vcs https://gitlab.com/magento2ext/magento-2-promocode - Add an access token for the private GitLab repository:
composer config --auth gitlab-token.gitlab.com <TWÓJ_TOKEN> - Install the module using Composer:
composer require kowal/module-promocode - Apply database updates:
php bin/magento setup:upgrade - Clear the cache:
php bin/magento cache:flush















