xlabs/trafficstarsbundle

Traffic Stars wrapper bundle

Installs: 132

Dependents: 1

Suggesters: 0

Security: 0

Type:symfony-bundle

1.0.1 2021-11-25 09:46 UTC

This package is auto-updated.

Last update: 2022-11-25 12:47:31 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