HubSpot – Free Marketing Plugin for WordPress - Version 7.0.1

Version Description

(2018.10.12) = - Send page analytics data into HubSpot

Download this release

Release Info

Developer leadin
Plugin Icon 128x128 HubSpot – Free Marketing Plugin for WordPress
Version 7.0.1
Comparing to
See all releases

Code changes from version 7.0.0 to 7.0.1

Files changed (3) hide show
  1. inc/class-leadin.php +20 -0
  2. leadin.php +2 -2
  3. readme.txt +6 -3
inc/class-leadin.php CHANGED
@@ -75,6 +75,26 @@ class WPLeadIn {
75
  wp_register_script( $embedId, $embedUrl, array( 'jquery' ), false, true );
76
  wp_localize_script( $embedId, 'leadin_wordpress', $leadin_wordpress_info );
77
  wp_enqueue_script( $embedId );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  }
79
 
80
  function leadin_add_embed_script_attributes( $tag, $handle ) {
75
  wp_register_script( $embedId, $embedUrl, array( 'jquery' ), false, true );
76
  wp_localize_script( $embedId, 'leadin_wordpress', $leadin_wordpress_info );
77
  wp_enqueue_script( $embedId );
78
+ $this->add_page_analytics();
79
+ }
80
+
81
+ /* HubSpot page analytics */
82
+ function add_page_analytics() {
83
+ echo "\n".'<!-- DO NOT COPY THIS SNIPPET! Start of Page Analytics Tracking for HubSpot WordPress plugin -->'."\n";
84
+ echo '<script type="text/javascript">'."\n";
85
+
86
+ echo 'var _hsq = _hsq || [];'."\n";
87
+ // Pass along the correct content-type
88
+ if ( is_single () ) {
89
+ echo '_hsq.push(["setContentType", "blog-post"]);' . "\n";
90
+ } else if ( is_archive () || is_search() ) {
91
+ echo '_hsq.push(["setContentType", "listing-page"]);' . "\n";
92
+ } else {
93
+ echo '_hsq.push(["setContentType", "standard-page"]);' . "\n";
94
+ }
95
+
96
+ echo '</script>'."\n";
97
+ echo '<!-- DO NOT COPY THIS SNIPPET! End of Page Analytics Tracking for HubSpot WordPress plugin -->'."\n";
98
  }
99
 
100
  function leadin_add_embed_script_attributes( $tag, $handle ) {
leadin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Builder for WordPress – Conversion Tools by HubSpot
4
  Plugin URI: http://www.hubspot.com/products/wordpress/contact-form
5
  Description: Whether you’re just getting started with HubSpot or already a HubSpot power user, Contact Form Builder for WordPress and Conversion Tools by HubSpot will let you use HubSpot tools on your WordPress website and connect the two platforms without dealing with code.
6
- Version: 7.0.0
7
  Author: HubSpot
8
  Author URI: http://www.hubspot.com
9
  License: GPL2
@@ -33,7 +33,7 @@ if ( ! defined( 'LEADIN_DB_VERSION' ) ) {
33
  }
34
 
35
  if ( ! defined( 'LEADIN_PLUGIN_VERSION' ) ) {
36
- define( 'LEADIN_PLUGIN_VERSION', '7.0.0' );
37
  }
38
 
39
  if ( ! defined( 'LEADIN_SOURCE' ) ) {
3
  Plugin Name: Contact Form Builder for WordPress – Conversion Tools by HubSpot
4
  Plugin URI: http://www.hubspot.com/products/wordpress/contact-form
5
  Description: Whether you’re just getting started with HubSpot or already a HubSpot power user, Contact Form Builder for WordPress and Conversion Tools by HubSpot will let you use HubSpot tools on your WordPress website and connect the two platforms without dealing with code.
6
+ Version: 7.0.1
7
  Author: HubSpot
8
  Author URI: http://www.hubspot.com
9
  License: GPL2
33
  }
34
 
35
  if ( ! defined( 'LEADIN_PLUGIN_VERSION' ) ) {
36
+ define( 'LEADIN_PLUGIN_VERSION', '7.0.1' );
37
  }
38
 
39
  if ( ! defined( 'LEADIN_SOURCE' ) ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: HubSpotDev, leadin
3
  Tags: form, forms, form builder, contact form, email
4
  Requires at least: 3.7
5
  Tested up to: 4.9
6
- Stable tag: 7.0.0
7
 
8
  The Contact Form Builder plugin, a part of HubSpot's Conversion Tools, allows you to create WordPress forms using <a href="https://hubspot.com/products/marketing/forms?utm_source=wordpress-plugin-listing&utm_campaign=wordpress&utm_medium=marketplaces" target="_blank">HubSpot's drag & drop Form Builder</a> in a few clicks to start capturing leads on your website.
9
 
@@ -201,8 +201,11 @@ Please <a href="https://community.hubspot.com?utm_source=wordpress-plugin-listin
201
 
202
  == Changelog ==
203
 
204
- - Current version: 7.0.0
205
- - Current version release: 2018-10-03
 
 
 
206
 
207
  = 7.0.0 (2018.10.03) =
208
  - Add deeper integration with HubSpot. Starts a new release of a new forms integration within WordPress. Released progressively for some users.
3
  Tags: form, forms, form builder, contact form, email
4
  Requires at least: 3.7
5
  Tested up to: 4.9
6
+ Stable tag: 7.0.1
7
 
8
  The Contact Form Builder plugin, a part of HubSpot's Conversion Tools, allows you to create WordPress forms using <a href="https://hubspot.com/products/marketing/forms?utm_source=wordpress-plugin-listing&utm_campaign=wordpress&utm_medium=marketplaces" target="_blank">HubSpot's drag & drop Form Builder</a> in a few clicks to start capturing leads on your website.
9
 
201
 
202
  == Changelog ==
203
 
204
+ - Current version: 7.0.1
205
+ - Current version release: 2018-10-12
206
+
207
+ = 7.0.1 (2018.10.12) =
208
+ - Send page analytics data into HubSpot
209
 
210
  = 7.0.0 (2018.10.03) =
211
  - Add deeper integration with HubSpot. Starts a new release of a new forms integration within WordPress. Released progressively for some users.