Changeset 1393225
- Timestamp:
- 04/12/2016 07:13:40 PM (10 years ago)
- Location:
- call-tracking-metrics/trunk
- Files:
-
- 2 edited
-
call_tracking_metrics.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
call-tracking-metrics/trunk/call_tracking_metrics.php
r1382258 r1393225 5 5 Description: View your CallTrackingMetrics daily call volume in your WordPress Dashboard, and integrate with Contact Form 7 and Gravity Forms 6 6 Author: CallTrackingMetrics 7 Version: 1.0. 47 Version: 1.0.5 8 8 Author URI: https://www.calltrackingmetrics.com/ 9 9 */ … … 15 15 add_action('init', array(&$this, 'form_init')); 16 16 add_action('admin_menu', array(&$this, 'attach_ctm_settings')); 17 18 add_filter('gform_confirmation', array(&$this, 'gf_confirmation'), 10, 1); 19 add_filter('wpcf7_contact_form_properties', array(&$this, 'cf7_confirmation'), 10, 1); 17 20 18 21 $this->ctm_host = "https://api.calltrackingmetrics.com"; … … 49 52 50 53 add_filter('admin_head', array(&$this, 'add_javascripts')); 51 add_filter('plugin_action_links', array(&$this, 'settings_link'), 10, 2 );54 add_filter('plugin_action_links', array(&$this, 'settings_link'), 10, 2); 52 55 } 53 56 … … 109 112 function install_dashboard_widget() { 110 113 wp_add_dashboard_widget("ctm_dash", "CallTrackingMetrics", array(&$this, 'admin_dashboard_plugin')); 114 } 115 116 function cf7_confirmation($properties) { 117 $properties['additional_settings'] .= "\non_sent_ok: \"try {__ctm.tracker.trackEvent(\"\", \" \", \"form\"); __ctm.tracker.popQueue(); } catch(e) { console.log(e); }\"\n"; 118 return $properties; 119 } 120 121 function gf_confirmation($confirmation) { 122 $confirmation .= "<script>try {window.__ctm_loaded = window.__ctm_loaded || []; window.__ctm_loaded.push(function() { __ctm.tracker.trackEvent(\"\", \" \", \"form\"); __ctm.tracker.popQueue(); }); } catch(e) { console.log(e); }</script>"; 123 return $confirmation; 111 124 } 112 125 -
call-tracking-metrics/trunk/readme.txt
r1382258 r1393225 4 4 Requires at least: 3.0.0 5 5 Tested up to: 4.4.2 6 Stable tag: 1.0. 46 Stable tag: 1.0.5 7 7 8 8 CallTrackingMetrics WordPress plugin … … 35 35 36 36 == Changelog == 37 38 = 1.0.5 = 39 * Submitted forms should now have visitor details 37 40 38 41 = 1.0.4 =
Note: See TracChangeset
for help on using the changeset viewer.