Plugin Directory

Changeset 547064


Ignore:
Timestamp:
05/21/2012 03:24:48 PM (14 years ago)
Author:
JonBishop
Message:

Commit failed (details follow):

Location:
hubspot
Files:
44 added
3 edited

Legend:

Unmodified
Added
Removed
  • hubspot/trunk/hubspot.php

    r512101 r547064  
    44Description: The HubSpot for WordPress plugin integrates the power of HubSpot with your WordPress site
    55Author: HubSpot
    6 Version: 1.5.6
     6Version: 1.5.7
    77Requires at least: 2.9
    88Author URI: http://www.hubspot.com
  • hubspot/trunk/inc/hs-analytics.php

    r419904 r547064  
    1616        $hs_settings = array();
    1717        $hs_settings = get_option('hs_settings');
    18         if ( $hs_settings["hs_portal"] != "" && $hs_settings["hs_appdomain"] != "" ) {
    19             echo "\n".'<!-- HubSpot Analytics for WordPress | http://success.hubspot.com/ -->'."\n";
    20             echo '<script type="text/javascript" language="javascript">'."\n";
    21             echo "\t".'var hs_portalid = '.$hs_settings["hs_portal"].';'."\n";
    22             echo "\t".'var hs_salog_version = "2.00";'."\n";
    23             echo "\t".'var hs_ppa = "'.$hs_settings["hs_appdomain"].'";'."\n"; 
    24             echo "\t"."document.write(unescape(\"%3Cscript src='\" + document.location.protocol + \"//\" + hs_ppa + \"/salog.js.aspx' type='text/javascript'%3E%3C/script%3E\"));"."\n";                           
    25             echo '</script>'."\n";
    26             echo '<!-- End of HubSpot Analytics code -->'."\n";
     18        if ( $hs_settings["hs_portal"] != "" ) {
     19                        echo "\n".'<!-- Start of Async HubSpot Analytics Code -->'."\n";
     20                        echo '<script type="text/javascript">'."\n";
     21                        echo "\t".'(function(d,s,i) {'."\n";
     22                        echo "\t".'if (d.getElementById(i)){return;}'."\n";
     23                        echo "\t".'var n = d.createElement(s),e = document.getElementsByTagName(s)[0];'."\n";
     24                        echo "\t".'n.id=i;n.src = \'//js.hubspot.com/analytics/'.$hs_settings["hs_portal"].'.js\';'."\n";
     25                        echo "\t".'e.parentNode.insertBefore(n, e);'."\n";
     26                        echo "\t".'})(document, "script", "hs-analytics");'."\n";
     27                        echo '</script>'."\n";
     28                        echo '<!-- End of Async HubSpot Analytics Code -->'."\n";
    2729        }
    2830    }
  • hubspot/trunk/readme.txt

    r512101 r547064  
    44Requires at least: 2.9
    55Tested up to: 3.3.1
    6 Stable tag: 1.5.6
     6Stable tag: 1.5.7
    77
    88Allows WordPress users to take advantage of HubSpot lead nurturing, website analytics, and assorted features of the HubSpot CMS.
     
    173173
    174174== Changelog ==
     175= 1.5.7 =
     176* Switched to new async tracking code
     177
    175178= 1.5.6 =
    176179* Resetting post wp_query after call to action query
Note: See TracChangeset for help on using the changeset viewer.