formslider.tracking

2.0.5 • Public • Published

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

Authors

Tom Hanoldt

Package Sidebar

Install

npm i formslider.tracking

Weekly Downloads

0

Version

2.0.5

License

MIT

Unpacked Size

43.4 kB

Total Files

17

Last publish

Collaborators

  • creative-workflow