Plugin Directory

Changeset 1697138


Ignore:
Timestamp:
07/16/2017 07:17:24 PM (9 years ago)
Author:
calltracker
Message:

tagging version 1.2

Location:
calltracker
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • calltracker/tags/1.2/trunk/calltracker.php

    r1352257 r1697138  
    2020        add_action( 'admin_init', array( $this, 'calltracker_admin_init' ) );
    2121        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 );
    2223    }
    2324
     
    2728            'Call Tracker',
    2829            'manage_options',
    29             'calltracker-settings', 
     30            'calltracker-settings',
    3031            array( $this, 'calltracker_options_page' )
    3132        );
     
    3637        add_settings_section(
    3738            'settings',
    38             'Call Tracker API Key', 
    39             array($this, 'settings_section'), 
     39            'Call Tracker API Key',
     40            array($this, 'settings_section'),
    4041            'calltracker-settings'
    4142        );
    4243        add_settings_field(
    4344            'calltracker-api-key',
    44             'API Key', 
     45            'API Key',
    4546            array($this, 'call_tracker_api_key'),
    46             'calltracker-settings', 
     47            'calltracker-settings',
    4748            'settings'
    4849        );
     
    8283        }
    8384    }
     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
    8493}
    8594
  • calltracker/tags/1.2/trunk/readme.txt

    r1352231 r1697138  
    1313
    1414Call 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. 
     15so 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.
    1616
    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. 
     17With 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.
    1818
    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.
    2020
    2121**Benefits of Dynamic Number Insertion**
     
    4040= Where can I find my API Key? =
    4141
    42 Your API Key can be found on your company settings page. 
     42Your API Key can be found on your company settings page.
    4343
    4444== Screenshots ==
     
    46461. Screenshot of the plugin settings page to for adding your API Key to connect with your Call Tracker company.
    4747
    48 2. Example company settings to locate your API Key. 
     482. Example company settings to locate your API Key.
    4949
    5050== Changelog ==
     51
     52= 1.2 =
     53* Add `data-cfasync="false"` to DNI script so that CloudFlare Rocket Script does not break the DNI script.
    5154
    5255= 1.1 =
     
    5558= 1.0 =
    5659* Initial plugin release.
    57 
  • calltracker/trunk/calltracker.php

    r1352257 r1697138  
    2020        add_action( 'admin_init', array( $this, 'calltracker_admin_init' ) );
    2121        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 );
    2223    }
    2324
     
    2728            'Call Tracker',
    2829            'manage_options',
    29             'calltracker-settings', 
     30            'calltracker-settings',
    3031            array( $this, 'calltracker_options_page' )
    3132        );
     
    3637        add_settings_section(
    3738            'settings',
    38             'Call Tracker API Key', 
    39             array($this, 'settings_section'), 
     39            'Call Tracker API Key',
     40            array($this, 'settings_section'),
    4041            'calltracker-settings'
    4142        );
    4243        add_settings_field(
    4344            'calltracker-api-key',
    44             'API Key', 
     45            'API Key',
    4546            array($this, 'call_tracker_api_key'),
    46             'calltracker-settings', 
     47            'calltracker-settings',
    4748            'settings'
    4849        );
     
    8283        }
    8384    }
     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
    8493}
    8594
  • calltracker/trunk/readme.txt

    r1352231 r1697138  
    1313
    1414Call 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. 
     15so 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.
    1616
    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. 
     17With 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.
    1818
    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.
    2020
    2121**Benefits of Dynamic Number Insertion**
     
    4040= Where can I find my API Key? =
    4141
    42 Your API Key can be found on your company settings page. 
     42Your API Key can be found on your company settings page.
    4343
    4444== Screenshots ==
     
    46461. Screenshot of the plugin settings page to for adding your API Key to connect with your Call Tracker company.
    4747
    48 2. Example company settings to locate your API Key. 
     482. Example company settings to locate your API Key.
    4949
    5050== Changelog ==
     51
     52= 1.2 =
     53* Add `data-cfasync="false"` to DNI script so that CloudFlare Rocket Script does not break the DNI script.
    5154
    5255= 1.1 =
     
    5558= 1.0 =
    5659* Initial plugin release.
    57 
Note: See TracChangeset for help on using the changeset viewer.