The BasicRUM Analytics module provides analytics integration with BasicRUM for Magento 1 stores.
- Magento 1.x (including OpenMage LTS and Maho Commerce)
- PHP 7.0 or higher (compatible with PHP 8.x)
The module can be installed manually by copying files or by using Modman.
cd /path/to/magento
modman clone https://github.com/basicrum/basicrum-magento-1.git- Copy the module files to your Magento installation:
- Copy
app/code/community/BasicRum/Analyticsto your Magento installation'sapp/code/communitydirectory - Copy
app/etc/modules/BasicRum_Analytics.xmlto your Magento installation'sapp/etc/modulesdirectory - Copy
app/design/frontend/base/default/layout/basicrum_analytics.xmlto your Magento installation'sapp/design/frontend/base/default/layoutdirectory - Copy
js/basicrumto your Magento installation'sjsdirectory
- Copy
-
Clear Magento cache:
- Go to System > Cache Management in the admin panel
- Click "Flush Magento Cache"
-
Verify the module is enabled:
- Go to System > Configuration > Advanced > Advanced
- Look for "BasicRum Analytics" in the list of modules
The module configuration can be found in System > Configuration > BasicRUM Analytics.
| Setting | Description |
|---|---|
| Enable | Enable or disable the module |
| Beacon Endpoint URL | (Required) The URL where analytics data will be sent. This should point to your BasicRUM collector endpoint. |
| Setting | Description |
|---|---|
| Opt-In Required | When enabled, Boomerang will not load until the visitor gives consent. Use the JavaScript API to integrate with your cookie consent solution. |
JavaScript API for consent integration:
// Call when user accepts cookies/tracking
if (typeof window.OPT_IN_BASIC_RUM === 'function') {
window.OPT_IN_BASIC_RUM();
}
// Call when user rejects tracking
if (typeof window.OPT_OUT_BASIC_RUM === 'function') {
window.OPT_OUT_BASIC_RUM();
}Cookies created:
BOOMR_CONSENT- Remembers user consent preference (expires after 1 year)RT- Round-trip timing cookie (created on opt-in, deleted on opt-out)BA- Bandwidth/latency cookie (created on opt-in, deleted on opt-out)
| Setting | Description |
|---|---|
| Enable Wait After Onload | Enable delayed beacon sending to capture additional metrics |
| Wait After Onload (ms) | Milliseconds to wait after page load before sending the beacon |
| Setting | Description |
|---|---|
| Use Unminified Loaders | Load non-minified loader scripts for debugging purposes |
The module sends p_type to Boomerang based on Magento layout handles. Known handles are mapped
to friendly page types (e.g., cms_index_index → home, catalog_product_view → product).
If no known handle matches, the first non-generic handle is sent as unmapped_{handle}.
Use UglifyJS to minify the Boomerang loader scripts with IE compatibility:
# Standard loader
npx uglify-js js/basicrum/loaders/boomerang-loader-v15.js \
--mangle \
--compress sequences=false,ie=true \
--output js/basicrum/loaders/boomerang-loader-v15.min.js
# Consent loader (GDPR opt-in)
npx uglify-js js/basicrum/loaders/consent-boomerang-loader-v1-15.js \
--mangle \
--compress sequences=false,ie=true \
--output js/basicrum/loaders/consent-boomerang-loader-v1-15.min.js1.0.0
