Download the PHP package infinitytracking/infinity-javascript-bundle without Composer
On this page you can find all versions of the php package infinitytracking/infinity-javascript-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download infinitytracking/infinity-javascript-bundle
More information about infinitytracking/infinity-javascript-bundle
Files in infinitytracking/infinity-javascript-bundle
Package infinity-javascript-bundle
Short Description Infinitytracking InfinityJavascriptBundle
License GPL-2.0
Homepage http://github.com/Infinitytracking/InfinityJavascriptBundle
Informations about the package infinity-javascript-bundle
Infinitytracking InfinityJavascriptBundle
Symfony2 Bundle to add Infinity Tracking Javascript code to your site. Support for page tracking, number replacement, custom triggers.
The configuration you define is made available to all twig templates through the use of an extension within the bundle.
Installation
Step 1) Download
The recommended method is via composer.
Add the bundle as a dependency to your composer.json file
Now tell composer to install this new requirement
This will be installed into your vendor directory
Step 2) Register the Bundle in your kernel
Step 3) Configuration
Provide your Installation ID, along with Tracking Pool (dgrp) IDs and the classes you want to target in your pages.
Elements found with the class will have their contents replaced with the dynamically allocated phone number for this Tracking Pool
Tracking
Page Tracking
Include the template in your base
Number Replacement
Include the number template anywhere you want to render a number, setting the 'dgrp' name to that within your configuration.
This will output the fallback number, and add the tracking tags to ensure the dynamic number is replaced into it during tracking.
Custom Triggers
This will be rendered within script tags, to render without (if you are doing that yourself), then just render to the js template instead.