formslider.jquery.tracking
v1.1.1
Published
This plugin adds animate.css capabilities to jquery.fromslider.
Downloads
7
Maintainers
Readme
formslider.jquery.tracking
This plugin adds jquery.tracking capabilities to jquery.fromslider.
Installation
bower install formslider.jquery.tracking
# or
npm install formslider.jquery.tracking
Include js dependencies
Load the following dependencies:
[path_to_you_bower_components]/jquery.tracking/dist/jquery.tracking.min.js
[path_to_you_bower_components]/formslider.jquery.tracking/dist/formslider.jquery.tracking.min.js
Load the plugin
See formslider for more infos.
formslider = $('.formslider-wrapper').formslider(
[...]
);
formslider.plugins.load({
class: 'JqueryTracking',
config: {
initialize: true , // initialize $.tracking(config) or not
eventCategory: 'formslider', // default category
cookiePath: '.example.com', // domain for cookie saving
adapter: [ // configuration for the jquery.tracking plugin
{
class: 'JqueryTrackingGTagmanagerAdapter'
}
],
trackFormSubmission: true,
conversionErrorEvantName: 'conversion-error'
}
})
The Plugin will listen on 'track'-Events which will be triggerd from the plugins TrackSessionInformationPlugin
and TrackUserInteractionPlugin
(see PLUGINS.md).
You can utilize this by simple doing:
$('.my-formslider').formslider().events.trigger('track', name, value [, category=config.eventCategory]);
The plugin looks also for the plugin FormSubmissionPlugin
and triggers conversion error or calls the $.tracking.conversion()
method on success.
Changelog
1.1.1
- update dependencies
jquery.tracking
1.1.0
- rename
JqueryTrackingPlugin
->JqueryTracking
follow formslider 1.1 naming style - rename
listenOnFormSubmissionPlugin
->trackFormSubmission
Resources
- https://github.com/formslider/jquery.formslider
- https://github.com/formslider/formslider.jquery.tracking
- https://github.com/creative-workflow/jquery.tracking
- http://bower.io/search/?q=formslider.jquery.tracking