xlabs / trafficstarsbundle
Traffic Stars wrapper bundle
1.0.1
2021-11-25 09:46 UTC
Requires
- php: >=5.6
- knplabs/knp-paginator-bundle: ^2.6
- symfony/symfony: >=3.4
- xlabs/mmadminbundle: ^2.0
- xlabs/rabbitmqbundle: ^1.0
This package is auto-updated.
Last update: 2024-10-25 17:14:28 UTC
README
TrafficStars Click Tracker.
Installation
Install through composer:
php -d memory_limit=-1 composer.phar require xlabs/trafficstarsbundle
In your AppKernel
public function registerbundles()
{
return [
...
...
new XLabs\TrafficStarsBundle\XLabsTrafficStarsBundle(),
];
}
Configuration sample
Default values are shown below:
# app/config/config.yml
x_labs_traffic_stars:
cookie_name: '_ts_click_id'
tracked_urls: ['route_id_1', 'route_id_2', '.....', 'route_id_N'] # where the click id is created (from trafficstars)
insert_urls: ['route_id_1', 'route_id_2', '.....', 'route_id_N'] # where the cookie will be created (where to append the click_id)
Consumer
API calls to TrafficStars are made from a queue:
php bin/console xlabs:traffic_stars:notify