Plugin Directory

Changeset 1393225


Ignore:
Timestamp:
04/12/2016 07:13:40 PM (10 years ago)
Author:
bonzaithepenguin
Message:

Version 1.0.5

Location:
call-tracking-metrics/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • call-tracking-metrics/trunk/call_tracking_metrics.php

    r1382258 r1393225  
    55Description: View your CallTrackingMetrics daily call volume in your WordPress Dashboard, and integrate with Contact Form 7 and Gravity Forms
    66Author: CallTrackingMetrics
    7 Version: 1.0.4
     7Version: 1.0.5
    88Author URI: https://www.calltrackingmetrics.com/
    99*/
     
    1515    add_action('init', array(&$this, 'form_init'));
    1616    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);
    1720   
    1821    $this->ctm_host = "https://api.calltrackingmetrics.com";
     
    4952   
    5053    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);
    5255  }
    5356 
     
    109112  function install_dashboard_widget() {
    110113    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;
    111124  }
    112125 
  • call-tracking-metrics/trunk/readme.txt

    r1382258 r1393225  
    44Requires at least: 3.0.0
    55Tested up to: 4.4.2
    6 Stable tag: 1.0.4
     6Stable tag: 1.0.5
    77
    88CallTrackingMetrics WordPress plugin
     
    3535
    3636== Changelog ==
     37
     38= 1.0.5 =
     39* Submitted forms should now have visitor details
    3740
    3841= 1.0.4 =
Note: See TracChangeset for help on using the changeset viewer.