Download the PHP package affilify/module-tracking without Composer
On this page you can find all versions of the php package affilify/module-tracking. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download affilify/module-tracking
More information about affilify/module-tracking
Files in affilify/module-tracking
Download affilify/module-tracking
More information about affilify/module-tracking
Files in affilify/module-tracking
Vendor affilify
Package module-tracking
Short Description Magento 2 module for affiliate conversion tracking via Affilify API
License MIT
Homepage https://github.com/blhack-it/affilify-magento
Package module-tracking
Short Description Magento 2 module for affiliate conversion tracking via Affilify API
License MIT
Homepage https://github.com/blhack-it/affilify-magento
Please rate this library. Is it a good library?
Informations about the package module-tracking
Affilify Tracking Module for Magento 2
A Magento 2 module for affiliate conversion tracking that integrates with the Affilify platform.
Features
- Click Tracking: Captures affiliate IDs from URL parameters and stores them in cookies
- Conversion Tracking: Automatically tracks conversions on checkout success
- Async Processing: Uses MySQL message queues for non-blocking API calls
- Multi-Store Support: Configurable per store view
- GDPR Compliant: IP addresses are masked before sending to tracking API
- Retry Logic: Automatic retry with exponential backoff for failed API calls
- Debug Mode: Verbose logging for troubleshooting
Requirements
- Magento 2.4.0 or higher
- PHP 7.4 or higher
Installation
Via Composer (Recommended)
Manual Installation
- Create directory:
app/code/Affilify/Tracking - Download and extract the module files to the directory
- Run:
Configuration
Navigate to Stores > Configuration > Affilify > Conversion Tracking
General Settings
| Setting | Description | Default |
|---|---|---|
| Enable Tracking | Enable/disable the module | Yes |
| API Key | Your Affilify API Key (from Advertiser > API tab) | - |
| API URL | Tracking API URL | https://dashboard.affilify.it/api/track |
| URL Parameter Name | The URL parameter to capture | affilify_id |
| Cookie Duration | Days to keep the tracking cookie | 30 |
| Debug Mode | Enable verbose logging | No |
How It Works
Click Tracking
- A visitor arrives with an affiliate link:
https://yourstore.com/?affilify_id=abc123 - The module captures the
affilify_idparameter - The value is validated (alphanumeric, dash, underscore only, max 100 chars)
- A cookie is set with the affiliate ID
- Click data is sent to the Affilify API
Conversion Tracking
- Customer completes checkout
- The
checkout_onepage_controller_success_actionevent fires - If a tracking cookie exists, conversion data is captured
- Conversion is sent to the Affilify API with order details
- The tracking cookie is deleted (single conversion per click)
Message Queue
The module uses MySQL message queues for async processing:
- Topic:
affilify.tracking.click- Click events - Topic:
affilify.tracking.conversion- Conversion events
Running Queue Consumers
Magento's cron automatically processes queue consumers. Make sure cron is running:
For manual testing or dedicated consumer processes:
Logs
Debug logs are written to: var/log/affilify_tracking.log
Support
- Issues: https://github.com/blhack-it/affilify-magento/issues
- Documentation: https://affilify.it/docs
License
MIT License - see LICENSE for details.
All versions of module-tracking with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
magento/framework Version >=102.0
magento/module-store Version >=101.0
magento/module-checkout Version >=100.0
magento/module-sales Version >=102.0
magento/framework Version >=102.0
magento/module-store Version >=101.0
magento/module-checkout Version >=100.0
magento/module-sales Version >=102.0
The package affilify/module-tracking contains the following files
Loading the files please wait ...