Download the PHP package tomasz-rup/sf-gemius-traffic-plugin without Composer
On this page you can find all versions of the php package tomasz-rup/sf-gemius-traffic-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomasz-rup/sf-gemius-traffic-plugin
More information about tomasz-rup/sf-gemius-traffic-plugin
Files in tomasz-rup/sf-gemius-traffic-plugin
Package sf-gemius-traffic-plugin
Short Description symfony 1.x plugin to add Gemius integration
License MIT
Informations about the package sf-gemius-traffic-plugin
sfGemiusTrafficPlugin plugin
Easily add Gemius Traffic tracking code to your presentation layer.
Installation
-
Install plugin:
$ composer require tomasz-rup/sf-gemius-traffic-plugin -
Add the
sfGemiusTrafficFilterto your filter chain:rendering: ~ security: ~ # insert your own filters here gemius_traffic: class: sfGemiusTrafficFilter cache: ~ common: ~ execution: ~
Configure
-
Enable plugin in your application's
app.ymlfile:all: gemius_traffic_plugin: enabled: true -
Optionally set the position of Gemius Traffic code:
all: gemius_traffic_plugin: insertion:Note:
POSITION_HEADis the default position. -
set the action identifier in
module.yml:all: index: gemius_traffic: params: identifier: 4re4r.4s4d55d2r5ff5.g1or set the module identifier:
all: gemius_traffic: params: identifier: 4re4r.4s4d55d2r5ff5.g1
Insertion positions
-
POSITION_HEADInsert in
<head> -
POSITION_BODY_TOPInsert as first element in
<body> POSITION_BODY_BOTTOM
Insert as last element in <body>
Note
Plugin code is fork of sfGoogleAnalyticsPlugin.