Plugin Directory

Changeset 1532546


Ignore:
Timestamp:
11/11/2016 09:39:13 PM (9 years ago)
Author:
sethduncan
Message:

New version!

Location:
callcap-webmatch/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • callcap-webmatch/trunk/readme.md

    r1329277 r1532546  
    55https://wordpress.org/plugins/callcap-webmatch/
    66https://www.callcap.com/help/webmatch
     7https://www.callcap.com/help/webmatch-wordpress
    78
    89### Setup ###
  • callcap-webmatch/trunk/readme.txt

    r1344159 r1532546  
    33Tags: call tracking, phone tracking, phone numbers
    44Requires at least: 4.0
    5 Tested up to: 4.4.1
    6 Stable tag: 4.4.1
     5Tested up to: 4.6.1
     6Stable tag: 4.6.1
    77License: GPL v2
    88License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
    99
    10 Works with Webmatch by Callcap to associate pageviews with phone calls and dynamically switch out phone numbers with your Webmatch phone numbers.
     10Works with Webmatch by Callcap to associate pageviews with phone calls and dynamically change phone numbers on your Wordpress page using your Webmatch phone numbers.
    1111
    1212== Description ==
     
    1515Webmatch allows a company to bridge the gap between basic web analytics and direct sales via phone calls. If a call leads to a sale, Webmatch can help you see where the initial visit came from, what ad campaign it may have run under, and what page the user was on when they called you.
    1616
    17 At it's most basic, Webmatch will simply associate recent calls to recent pageviews, but with Dynamic Number enabled, Webmatch can show unique phone numbers to visitors to more accurately track their statistics.
     17At it\'s most basic, Webmatch will simply associate recent calls to recent pageviews, but with Dynamic Rotator enabled, Webmatch can show unique phone numbers to visitors to more accurately track their statistics.
    1818
    1919== Installation ==
    20 In order for the Callcap Webmatch plugin to work, you must have Webmatch enabled on your Callcap account. More information can be found here: https://www.callcap.com/help/webmatch/
     20In order for the Callcap Webmatch plugin to work, you must have Webmatch enabled on your Callcap account. More information can be found here: http://www.callcap.com/help/webmatch/
    2121
    2222From the Wordpress admin panel, click "Plugins", search for "Callcap Webmatch", install the plugin, then click "Activate"
    2323
     24Full documentation located at https://www.callcap.com/help/webmatch-wordpress
     25
    2426== Changelog ==
     27
     28= 1.2 =
     29- Fancy new documentation! Find more at https://www.callcap.com/help/webmatch
     30- Removed "Instance Name" as it's no longer used. Using "Label" as a generic user-facing label going forward.
     31- Tested compatibility with  Wordpress 4.6.1
     32- Savage!
    2533
    2634= 1.1 =
    2735- Major layout/design updates
    28 - Allowed multiple dynamic numbers/campaigns per site
    29 - Enabled targeted CSS class for numbers.
     36- Allowed multiple rotators/campaigns per site
     37- Enabled targeted CSS class for rotators.
    3038- Added UTM Variable tracking
    3139- Added UTM Search Term tracking
     
    4553= 1.0.4 =
    4654- Consolidating some terminology in the plugin
    47 - Testing compatability with Wordpress 4.4.1
     55- Testing compatibility with Wordpress 4.4.1
    4856
    4957= 1.0.3 =
  • callcap-webmatch/trunk/webmatch-form.php

    r1329284 r1532546  
    77    // handle URL actions
    88    switch ($_GET['action']) {
    9 
    109        case "delete":
    1110            $id = $_GET['id'];
     
    1615            echo "<script>window.location.replace('".$safeURI."');</script>";
    1716            break;
    18 
    1917    }
    2018
     
    7270
    7371                                        <?php if ($campaign['phone_format'])                { echo "<li><b>Phone Format:</b> ".$phoneFormat."</li>"; } ?>
    74                                         <?php if ($campaign['instance_name'])           { echo "<li><b>Instance Name:</b> ".$campaign['instance_name']."</li>"; } ?>
    7572                                        <?php if ($campaign['instance_class'])          { echo "<li><b>Instance Class:</b> ".$campaign['instance_class']."</li>"; } ?>
    76                                         <?php if ($campaign['utm_tags'])                        { echo "<li><b>UTM Tags:</b> ".$campaign['utm_tags']."</li>"; } ?>
    77                                         <?php if ($campaign['utm_term_for_search']) { echo "<li><b>UTM Search Term:</b> ".$campaign['utm_term_for_search']."</li>"; } ?>
     73                                        <?php if ($campaign['utm_tags'])                        { echo "<li><b>Load UTM Parameters:</b> ".$campaign['utm_tags']."</li>"; } ?>
     74                                        <?php if ($campaign['utm_term_for_search']) { echo "<li><b>Use UTM Search Term:</b> ".$campaign['utm_term_for_search']."</li>"; } ?>
    7875                                        <?php if ($campaign['pull_parameters'])         { echo "<li><b>Pull Parameters:</b> ".$campaign['pull_parameters']."</li>"; } ?>
    7976                                        <?php if ($campaign['k'])                                   { echo "<li><b>K:</b> ".$campaign['k']."</li>"; } ?>
     
    9390                                        <input type="hidden" name="callcap_campaigns[<?php echo $listIterator; ?>][campaign_id]" value="<?php echo $campaign['campaign_id']; ?>" />
    9491                                        <input type="hidden" name="callcap_campaigns[<?php echo $listIterator; ?>][phone_format]" value="<?php echo $campaign['phone_format']; ?>" />
    95                                         <input type="hidden" name="callcap_campaigns[<?php echo $listIterator; ?>][instance_name]" value="<?php echo $campaign['instance_name']; ?>" />
    9692                                        <input type="hidden" name="callcap_campaigns[<?php echo $listIterator; ?>][instance_class]" value="<?php echo $campaign['instance_class']; ?>" />
    9793                                        <input type="hidden" name="callcap_campaigns[<?php echo $listIterator; ?>][utm_tags]" value="<?php echo $campaign['utm_tags']; ?>" />
     
    157153                                </select>
    158154                                <span id='dynamic_options_"+newCampaignIterator+"' class='dynamicOptions callcapHide'>
    159                                     <h4>Instance Name</h4>
    160                                     <input type='text' name='callcap_campaigns["+newCampaignIterator+"][instance_name]' value='' placeholder='Instance Name' />
    161155                                    <p class='helpText'>No spaces</p>
    162156                                    <h4>Instance Class</h4>
     
    203197                    </div>
    204198
    205 
    206199                </div> <!-- .campaignListContainer -->
    207200        </div>
     
    226219            jQuery("#dynamic_options_"+iteration).hide();
    227220            jQuery("#campaign_id_input, #campaign_id_title").show();
    228         })
     221        });
    229222
    230223        jQuery(".campaignListContainer").on("click", "label[for='dynamic']", function() {
     
    233226            jQuery("#dynamic_options_"+iteration).show();
    234227            jQuery("#campaign_id_input, #campaign_id_title").show();
    235         })
     228        });
    236229
    237230        // show or hide pull_parameters fields when the checkbox is clicked
    238231        jQuery(".campaignListContainer").on("click", "#manual_tagging", function() {
    239232            var iteration = jQuery(this).data('iteration');
    240 
    241233            if(this.checked) {
    242234                jQuery("#manual_tagging_"+iteration).show();
     
    244236                jQuery("#manual_tagging_"+iteration).hide();
    245237            }
    246 
    247         })
     238        });
    248239
    249240      // expand the "help" section when a user is adding a dynamic number rotator
     
    255246        // Iterates based on the number of entries already in the main campaign array so we don't overwrite things
    256247        jQuery(".newCampaignButton").click(function() {
    257 
    258             var newCampaignRowData = "<div id='newCampaignRow_"+newCampaignIterator+"' class='newCampaignRow'> <div class='newCampaign'> <div class='removeCampaignButton button button-primary' data-iteration='"+newCampaignIterator+"'>X</div> <div class='newCampaignCell'> <h4>Label</h4> <input type='text' name='callcap_campaigns["+newCampaignIterator+"][campaign_label]' value='' placeholder='Label' /> <h4>Campaign Type</h4> <label for='static' data-iteration='"+newCampaignIterator+"'> <input type='radio' id='static' class='' name='callcap_campaigns["+newCampaignIterator+"][campaign_type]' value='static' /> Static </label> <label for='dynamic' data-iteration='"+newCampaignIterator+"'> <input type='radio' id='dynamic' class='' name='callcap_campaigns["+newCampaignIterator+"][campaign_type]' value='dynamic' /> Dynamic </label> <h4 id='campaign_id_title' style='display:none;'>Campaign ID</h4> <input id='campaign_id_input' type='text' name='callcap_campaigns["+newCampaignIterator+"][campaign_id]' value='' placeholder='' style='display:none;' /> </div> <div class='newCampaignCell'> <h4>Phone Format</h4> <select name='callcap_campaigns["+newCampaignIterator+"][phone_format]'> <option value='dash'>555-555-5555</option> <option value='paren'>(555) 555-5555</option> </select> <span id='dynamic_options_"+newCampaignIterator+"' class='dynamicOptions callcapHide'> <h4>Instance Name</h4> <input type='text' name='callcap_campaigns["+newCampaignIterator+"][instance_name]' value='' placeholder='Instance Name' /> <p class='helpText'>No spaces</p> <h4>Instance Class</h4> <input type='text' name='callcap_campaigns["+newCampaignIterator+"][instance_class]' value='callcap_phone_number' placeholder='Instance Class' /> </span> </div> <div class='newCampaignCell'> <h4>Options</h4> <label for='utm_tags'> <input id='utm_tags' type='checkbox' name='callcap_campaigns["+newCampaignIterator+"][utm_tags]' /> UTM Tags </label> <label for='utm_term_for_search'> <input id='utm_term_for_search' type='checkbox' data-iteration='"+newCampaignIterator+"' name='callcap_campaigns["+newCampaignIterator+"][utm_term_for_search]' /> UTM Search Term </label> <label for='pull_parameters'> <input id='pull_parameters' type='checkbox' data-iteration='"+newCampaignIterator+"' name='callcap_campaigns["+newCampaignIterator+"][pull_parameters]' /> Pull Parameters </label> <label for='manual_tagging'> <input id='manual_tagging' type='checkbox' data-iteration='"+newCampaignIterator+"' name='manual_tagging' /> Manual Tagging </label> </div> <div id='manual_tagging_"+newCampaignIterator+"' class='newCampaignCell' style='display:none;'> <h4>Manual Tags</h4> <label>K <input type='text' name='callcap_campaigns["+newCampaignIterator+"][k]' value='' placeholder='K' /> </label> <label>C <input type='text' name='callcap_campaigns["+newCampaignIterator+"][c]' value='' placeholder='C' /> </label> <label>A <input type='text' name='callcap_campaigns["+newCampaignIterator+"][a]' value='' placeholder='A' /> </label> <label>P <input type='text' name='callcap_campaigns["+newCampaignIterator+"][p]' value='' placeholder='P' /> </label> </div> </div> </div>";
     248            var newCampaignRowData = "<div id='newCampaignRow_"+newCampaignIterator+"' class='newCampaignRow'> <div class='newCampaign'> <div class='removeCampaignButton button button-primary' data-iteration='"+newCampaignIterator+"'>X</div> <div class='newCampaignCell'> <h4>Label</h4> <input type='text' name='callcap_campaigns["+newCampaignIterator+"][campaign_label]' value='' placeholder='Label' /> <h4>Campaign Type</h4> <label for='static' data-iteration='"+newCampaignIterator+"'> <input type='radio' id='static' class='' name='callcap_campaigns["+newCampaignIterator+"][campaign_type]' value='static' /> Static </label> <label for='dynamic' data-iteration='"+newCampaignIterator+"'> <input type='radio' id='dynamic' class='' name='callcap_campaigns["+newCampaignIterator+"][campaign_type]' value='dynamic' /> Dynamic </label> <h4 id='campaign_id_title' style='display:none;'>Campaign ID</h4> <input id='campaign_id_input' type='text' name='callcap_campaigns["+newCampaignIterator+"][campaign_id]' value='' placeholder='' style='display:none;' /> </div> <div class='newCampaignCell'> <h4>Phone Format</h4> <select name='callcap_campaigns["+newCampaignIterator+"][phone_format]'> <option value='dash'>555-555-5555</option> <option value='paren'>(555) 555-5555</option> </select> <span id='dynamic_options_"+newCampaignIterator+"' class='dynamicOptions callcapHide'> <p class='helpText'>No spaces</p> <h4>Instance Class</h4> <input type='text' name='callcap_campaigns["+newCampaignIterator+"][instance_class]' value='callcap_phone_number' placeholder='Instance Class' /> </span> </div> <div class='newCampaignCell'> <h4>Options</h4> <label for='utm_tags'> <input id='utm_tags' type='checkbox' name='callcap_campaigns["+newCampaignIterator+"][utm_tags]' /> Load UTM Parameters </label> <label for='utm_term_for_search'> <input id='utm_term_for_search' type='checkbox' data-iteration='"+newCampaignIterator+"' name='callcap_campaigns["+newCampaignIterator+"][utm_term_for_search]' /> UTM Search Term </label> <label for='pull_parameters'> <input id='pull_parameters' type='checkbox' data-iteration='"+newCampaignIterator+"' name='callcap_campaigns["+newCampaignIterator+"][pull_parameters]' /> Pull Parameters </label> <label for='manual_tagging'> <input id='manual_tagging' type='checkbox' data-iteration='"+newCampaignIterator+"' name='manual_tagging' /> Manual Tagging </label> </div> <div id='manual_tagging_"+newCampaignIterator+"' class='newCampaignCell' style='display:none;'> <h4>Manual Tags</h4> <label>K <input type='text' name='callcap_campaigns["+newCampaignIterator+"][k]' value='' placeholder='K' /> </label> <label>C <input type='text' name='callcap_campaigns["+newCampaignIterator+"][c]' value='' placeholder='C' /> </label> <label>A <input type='text' name='callcap_campaigns["+newCampaignIterator+"][a]' value='' placeholder='A' /> </label> <label>P <input type='text' name='callcap_campaigns["+newCampaignIterator+"][p]' value='' placeholder='P' /> </label> </div> </div> </div>";
    259249            jQuery(".newCampaignButton").before(newCampaignRowData);
    260250            jQuery(".newCampaignButton").html("Add Another Campaign");
    261251            newCampaignIterator++;
    262 
    263252        });
    264253
     
    273262            jQuery("#newCampaignRow_"+iteration).empty();
    274263            console.log("#newCampaignRow_"+iteration);
    275         })
     264        });
    276265
    277266    });
  • callcap-webmatch/trunk/webmatch.php

    r1329277 r1532546  
    7474            if ($campaign['campaign_type'] == "dynamic") {
    7575                echo "
    76                       var ".$campaign['instance_name']." = new Webmatch({
     76                      var ".$campaign['campaign_label']." = new Webmatch({
    7777                        rotate: '".$campaign['campaign_id']."',
    7878                        phone_format: '".$campaign['phone_format']."',
    79                         instance_name: '".$campaign['instance_name']."',
    8079                        instance_class: '".$campaign['instance_class']."',
    8180                        k: '".$campaign['k']."',
Note: See TracChangeset for help on using the changeset viewer.