PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.22.3
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.22.3
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / js / admin / usage-tracking.js

usage-tracking.js in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.22.3, at js/admin/usage-tracking.js

21 lines 681 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 ( function() {
2 'use strict';
3
4 // Track edit form clicked link.
5 frmDom.util.documentOn( 'click', '.toplevel_page_formidable #the-list .column-primary .row-actions a', function( event ) {
6 sendData( 'edit_form_clicked_link', event.target.parentNode.className );
7 });
8
9 // Track form templates.
10 frmDom.util.documentOn( 'click', '.frm-form-templates-use-template-button', function( event ) {
11 sendData( 'form_templates', event.target.closest( 'li' ).dataset.slug );
12 });
13
14 const sendData = ( key, value ) => {
15 const formData = new FormData();
16 formData.append( 'key', key );
17 formData.append( 'value', value );
18 frmDom.ajax.doJsonPost( 'track_flows', formData );
19 };
20 }() );
21