Trialfire tracking module for Magento 2
This module adds support for Trialfire to Magento 2. In addition to normal behavioural tracking, the following events are also collected:
- Viewed Category
- Viewed Product
- Add to Cart
- Add to Whishlist
- Remove from Cart
- Started Checkout
- Completed Order
- Subscribed Newsletter
- Register an Account
- Add this GitHub repository to your composer repositories.
php composer.phar config repositories.trialfireinc vcs https://github.com/trialfire/magento2-tracker
- Require the trialfireinc/tracker package. A list of version tags is available here.
php composer.phar require trialfireinc/tracker:v1.0.0
- Enable the module.
bin/magento module:enable Trialfire_Tracker --clear-static-content bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:clean
The only required configuration is the API key from your project in Trialfire. You can find the API key by logging in to your Trialfire account and navigating to Settings > Tracking Code and API key.
Open the Admin page for your store and navigate to Stores > Configuration, then click on the Trialfire tab.
Set the Enable Tracking field to Yes, and then input your API key into the API token field.
Save the configuration.
Flush the Configuration and Full_Page caches. You can clear the caches from System > Cache Management or use the command
bin/magento cache:flush config full_page.