Dynamic QR Links
A printed QR code lasts for years, while the link inside it can change. This module breaks that link:
a short address of your site is embedded in the code, and where it leads can be changed in the admin panel at any time.
There is no need to reprint the batch.
Features
Short links in the format site.ru/go/code with a 302 redirect to any address
Change the destination at any time—the printed code continues to work
Track visits by day, with CSV export
Track registrations: see how many people created an account after clicking the code
Automatic insertion of UTM tags into the destination address
QR code image generator directly in the admin panel: PNG and SVG formats, with a logo in the center
Bot filtering: preview bots from messengers do not inflate statistics
Why this is needed
The visit counter works for external platforms—social networks, marketplaces, messengers—
where your analytics are unavailable and UTM tags are ineffective. You can see how many people came
from a specific flyer, display, or packaging.
Implementation specifics
Custom tables, without the highloadblock module—works in any edition
Custom QR generator, without external libraries or third-party services
Error correction level is maximum, so the logo in the center does not interfere with scanning
The core is not modified. Works when installed in local/modules and bitrix/modules.
Support the developer:
Before creating a QR code, specify the domain for short links in the module settings. The domain is stored in settings and is not replaced by the incoming request header.
Fixed IP address spoofing by the visitor via the client proxy header.
In version 1.2.6, fixed saving of the "Marketing - QR Links" menu tree when opening a specific link.
Version 1.2.7: automatic creation of QR_SOURCE and YM_CLIENT_ID for existing and new payer types. ClientID is filled from the Metrics cookie when creating an order, taking into account consent for analytics and GPC. Added instructions on the "Analytics" tab and in README.md. Existing properties and non-empty values are not overwritten.