Changeset 1697138
- Timestamp:
- 07/16/2017 07:17:24 PM (9 years ago)
- Location:
- calltracker
- Files:
-
- 4 edited
- 1 copied
-
tags/1.2/trunk (copied) (copied from calltracker/trunk)
-
tags/1.2/trunk/calltracker.php (modified) (4 diffs)
-
tags/1.2/trunk/readme.txt (modified) (4 diffs)
-
trunk/calltracker.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
calltracker/tags/1.2/trunk/calltracker.php
r1352257 r1697138 20 20 add_action( 'admin_init', array( $this, 'calltracker_admin_init' ) ); 21 21 add_action( 'wp_enqueue_scripts', array( $this, 'add_dni_to_footer' ) ); 22 add_filter( 'script_loader_tag', array ( $this, 'add_data_cloudflare_attribute' ), 10, 3 ); 22 23 } 23 24 … … 27 28 'Call Tracker', 28 29 'manage_options', 29 'calltracker-settings', 30 'calltracker-settings', 30 31 array( $this, 'calltracker_options_page' ) 31 32 ); … … 36 37 add_settings_section( 37 38 'settings', 38 'Call Tracker API Key', 39 array($this, 'settings_section'), 39 'Call Tracker API Key', 40 array($this, 'settings_section'), 40 41 'calltracker-settings' 41 42 ); 42 43 add_settings_field( 43 44 'calltracker-api-key', 44 'API Key', 45 'API Key', 45 46 array($this, 'call_tracker_api_key'), 46 'calltracker-settings', 47 'calltracker-settings', 47 48 'settings' 48 49 ); … … 82 83 } 83 84 } 85 86 function add_data_cloudflare_attribute( $tag, $handle, $src ) { 87 if ( 'call-tracker-dni' !== $handle ) 88 return $tag; 89 90 return str_replace( ' src', ' data-cfasync="false" src', $tag ); 91 } 92 84 93 } 85 94 -
calltracker/tags/1.2/trunk/readme.txt
r1352231 r1697138 13 13 14 14 Call Tracker makes it radically simple to setup tracking numbers and get analytics data you need 15 so you can focus on what's working and stop spending on what's not. This plugin makes it easy to integrate Call Tracker Dynamic Number Insertion (DNI) with your WordPress site. 15 so you can focus on what's working and stop spending on what's not. This plugin makes it easy to integrate Call Tracker Dynamic Number Insertion (DNI) with your WordPress site. 16 16 17 With our DNI integration setup on your website, you’ll be able to harness the full power of our call tracking to target visitors based on different traffic sources, landing pages, campaigns, and also keywords with our number pools. 17 With our DNI integration setup on your website, you’ll be able to harness the full power of our call tracking to target visitors based on different traffic sources, landing pages, campaigns, and also keywords with our number pools. 18 18 19 > To get started with the Call Tracker plugin, you'll need an active Call Tracker Account which are **Free to Setup**, you'll only pay for what you use. Tracking numbers cost $4 per month and 4¢ per minute for calls. 19 > To get started with the Call Tracker plugin, you'll need an active Call Tracker Account which are **Free to Setup**, you'll only pay for what you use. Tracking numbers cost $4 per month and 4¢ per minute for calls. 20 20 21 21 **Benefits of Dynamic Number Insertion** … … 40 40 = Where can I find my API Key? = 41 41 42 Your API Key can be found on your company settings page. 42 Your API Key can be found on your company settings page. 43 43 44 44 == Screenshots == … … 46 46 1. Screenshot of the plugin settings page to for adding your API Key to connect with your Call Tracker company. 47 47 48 2. Example company settings to locate your API Key. 48 2. Example company settings to locate your API Key. 49 49 50 50 == Changelog == 51 52 = 1.2 = 53 * Add `data-cfasync="false"` to DNI script so that CloudFlare Rocket Script does not break the DNI script. 51 54 52 55 = 1.1 = … … 55 58 = 1.0 = 56 59 * Initial plugin release. 57 -
calltracker/trunk/calltracker.php
r1352257 r1697138 20 20 add_action( 'admin_init', array( $this, 'calltracker_admin_init' ) ); 21 21 add_action( 'wp_enqueue_scripts', array( $this, 'add_dni_to_footer' ) ); 22 add_filter( 'script_loader_tag', array ( $this, 'add_data_cloudflare_attribute' ), 10, 3 ); 22 23 } 23 24 … … 27 28 'Call Tracker', 28 29 'manage_options', 29 'calltracker-settings', 30 'calltracker-settings', 30 31 array( $this, 'calltracker_options_page' ) 31 32 ); … … 36 37 add_settings_section( 37 38 'settings', 38 'Call Tracker API Key', 39 array($this, 'settings_section'), 39 'Call Tracker API Key', 40 array($this, 'settings_section'), 40 41 'calltracker-settings' 41 42 ); 42 43 add_settings_field( 43 44 'calltracker-api-key', 44 'API Key', 45 'API Key', 45 46 array($this, 'call_tracker_api_key'), 46 'calltracker-settings', 47 'calltracker-settings', 47 48 'settings' 48 49 ); … … 82 83 } 83 84 } 85 86 function add_data_cloudflare_attribute( $tag, $handle, $src ) { 87 if ( 'call-tracker-dni' !== $handle ) 88 return $tag; 89 90 return str_replace( ' src', ' data-cfasync="false" src', $tag ); 91 } 92 84 93 } 85 94 -
calltracker/trunk/readme.txt
r1352231 r1697138 13 13 14 14 Call Tracker makes it radically simple to setup tracking numbers and get analytics data you need 15 so you can focus on what's working and stop spending on what's not. This plugin makes it easy to integrate Call Tracker Dynamic Number Insertion (DNI) with your WordPress site. 15 so you can focus on what's working and stop spending on what's not. This plugin makes it easy to integrate Call Tracker Dynamic Number Insertion (DNI) with your WordPress site. 16 16 17 With our DNI integration setup on your website, you’ll be able to harness the full power of our call tracking to target visitors based on different traffic sources, landing pages, campaigns, and also keywords with our number pools. 17 With our DNI integration setup on your website, you’ll be able to harness the full power of our call tracking to target visitors based on different traffic sources, landing pages, campaigns, and also keywords with our number pools. 18 18 19 > To get started with the Call Tracker plugin, you'll need an active Call Tracker Account which are **Free to Setup**, you'll only pay for what you use. Tracking numbers cost $4 per month and 4¢ per minute for calls. 19 > To get started with the Call Tracker plugin, you'll need an active Call Tracker Account which are **Free to Setup**, you'll only pay for what you use. Tracking numbers cost $4 per month and 4¢ per minute for calls. 20 20 21 21 **Benefits of Dynamic Number Insertion** … … 40 40 = Where can I find my API Key? = 41 41 42 Your API Key can be found on your company settings page. 42 Your API Key can be found on your company settings page. 43 43 44 44 == Screenshots == … … 46 46 1. Screenshot of the plugin settings page to for adding your API Key to connect with your Call Tracker company. 47 47 48 2. Example company settings to locate your API Key. 48 2. Example company settings to locate your API Key. 49 49 50 50 == Changelog == 51 52 = 1.2 = 53 * Add `data-cfasync="false"` to DNI script so that CloudFlare Rocket Script does not break the DNI script. 51 54 52 55 = 1.1 = … … 55 58 = 1.0 = 56 59 * Initial plugin release. 57
Note: See TracChangeset
for help on using the changeset viewer.