formslider.tracking
v2.0.5
Published
This plugin adds animate.css capabilities to jquery.fromslider.
Downloads
16
Maintainers
Readme
formslider.tracking
This plugin addstracking capabilities to jquery.fromslider.
Installation
bower install formslider.tracking
# or
npm install formslider.tracking
Include js dependencies
Load the following dependencies:
[path_to_you_bower_components]/formslider.tracking/dist/formslider.tracking.min.js
Load the plugin
See formslider for more infos.
formslider = $('.formslider-wrapper').formslider(
[...]
);
formslider.plugins.load({
class: 'FormsliderTracking',
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: 'FormsliderTrackingGTagmanagerAdapter'
}
],
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
2.0
- get rid of jquery.tracking
1.1.3
- use custom callback for
onTrack
,onTrackConversion
,onTrackConversionError
1.1.1
- update dependencies
jquery.tracking
1.1.0
- rename
FormsliderTrackingPlugin
->FormsliderTracking
follow formslider 1.1 naming style - rename
listenOnFormSubmissionPlugin
->trackFormSubmission
Resources
- https://github.com/formslider/jquery.formslider
- https://github.com/formslider/formslider.tracking
- http://bower.io/search/?q=formslider.tracking