HubSpot – Free Marketing Plugin for WordPress - Version 5.4.1

Version Description

Download this release

Release Info

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

Code changes from version 5.4.0 to 5.4.1

admin/leadin-admin.php ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if (!defined('LEADIN_PLUGIN_VERSION')) {
4
+ header('HTTP/1.0 403 Forbidden');
5
+ die;
6
+ }
7
+
8
+ //=============================================
9
+ // Define Constants
10
+ //=============================================
11
+
12
+ if (!defined('LEADIN_ADMIN_PATH'))
13
+ define('LEADIN_ADMIN_PATH', untrailingslashit(__FILE__));
14
+
15
+ //=============================================
16
+ // Include Needed Files
17
+ //=============================================
18
+
19
+ include_once(ABSPATH . 'wp-admin/includes/plugin.php');
20
+
21
+ if (!class_exists('LI_Pointers'))
22
+ require_once LEADIN_PLUGIN_DIR . '/inc/class-leadin-pointers.php';
23
+
24
+ //=============================================
25
+ // WPLeadInAdmin Class
26
+ //=============================================
27
+ class WPLeadInAdmin
28
+ {
29
+
30
+ var $li_viewers;
31
+ var $stats_dashboard;
32
+ var $action;
33
+
34
+ /**
35
+ * Class constructor
36
+ */
37
+ function __construct()
38
+ {
39
+ //=============================================
40
+ // Hooks & Filters
41
+ //=============================================
42
+
43
+ $plugin_version = get_option('leadin_pluginVersion');
44
+
45
+ $this->action = $this->leadin_current_action();
46
+
47
+ // If the plugin version matches the latest version escape the update function
48
+ if ($plugin_version != LEADIN_PLUGIN_VERSION)
49
+ self::leadin_update_check();
50
+
51
+ add_action('admin_menu', array(&$this, 'leadin_add_menu_items'));
52
+ add_action('admin_print_scripts', array(&$this, 'add_leadin_admin_scripts'));
53
+ add_filter('plugin_action_links_' . 'leadin/leadin.php', array($this, 'leadin_plugin_settings_link'));
54
+
55
+ }
56
+
57
+ function leadin_update_check()
58
+ {
59
+ update_option('leadin_pluginVersion', LEADIN_PLUGIN_VERSION);
60
+ }
61
+
62
+ //=============================================
63
+ // Menus
64
+ //=============================================
65
+
66
+ /**
67
+ * Adds Leadin menu to /wp-admin sidebar
68
+ */
69
+ function leadin_add_menu_items()
70
+ {
71
+ $options = get_option('leadin_options');
72
+
73
+ global $submenu;
74
+ global $wp_version;
75
+
76
+ // Block non-sanctioned users from accessing Leadin
77
+ $capability = 'activate_plugins';
78
+ if (!current_user_can('activate_plugins')) {
79
+ if (!array_key_exists('li_grant_access_to_' . leadin_get_user_role(), $options))
80
+ return FALSE;
81
+ else {
82
+ if (current_user_can('manage_network')) // super admin
83
+ $capability = 'manage_network';
84
+ else if (current_user_can('edit_pages')) // editor
85
+ $capability = 'edit_pages';
86
+ else if (current_user_can('publish_posts')) // author
87
+ $capability = 'publish_posts';
88
+ else if (current_user_can('edit_posts')) // contributor
89
+ $capability = 'edit_posts';
90
+ else if (current_user_can('read')) // subscriber
91
+ $capability = 'read';
92
+
93
+ }
94
+ }
95
+
96
+ $leadin_icon = LEADIN_PATH . '/images/leadin-icon-16x16-white.png';
97
+
98
+ add_menu_page('Leadin', 'Leadin', $capability, 'leadin', array($this, 'leadin_build_app'), $leadin_icon, '25.100713');
99
+
100
+ $slumberMode = get_option('leadin_slumber_mode');
101
+
102
+ if (!$slumberMode) {
103
+ add_submenu_page('leadin', 'Contacts', 'Contacts', 'activate_plugins', 'leadin_contacts', array($this, 'leadin_build_app'));
104
+ add_submenu_page('leadin', 'Lead Flows', 'Lead Flows', 'activate_plugins', 'leadin_flows', array($this, 'leadin_build_app'));
105
+ add_submenu_page('leadin', 'Collected Forms', 'Collected Forms', 'activate_plugins', 'leadin_collected_forms', array($this, 'leadin_build_app'));
106
+ add_submenu_page('leadin', 'Settings', 'Settings', 'activate_plugins', 'leadin_settings', array($this, 'leadin_build_app'));
107
+
108
+ $submenu['leadin'][0][0] = 'Dashboard';
109
+ }
110
+
111
+ if (!isset($_GET['page']) || $_GET['page'] != ('leadin' || 'leadin_settings' || 'leadin_contacts' || 'leadin_flows' || 'leadin_collected_forms')) {
112
+ if (!get_option('leadin_portalId'))
113
+ $li_pointers = new LI_Pointers(TRUE);
114
+ //else if ( ! get_option('leadin_portalId') && $options )
115
+ //$li_pointers = new LI_Pointers(FALSE);
116
+ }
117
+ }
118
+
119
+ //=============================================
120
+ // Settings Page
121
+ //=============================================
122
+
123
+ /**
124
+ * Adds setting link for Leadin to plugins management page
125
+ *
126
+ * @param array $links
127
+ * @return array
128
+ */
129
+ function leadin_plugin_settings_link($links)
130
+ {
131
+ $fullyRegistered = get_option('leadin_hapikey');
132
+ if ($fullyRegistered) {
133
+ $url = get_admin_url(get_current_blog_id(), 'admin.php?page=leadin_settings');
134
+ } else {
135
+ $url = get_admin_url(get_current_blog_id(), 'admin.php?page=leadin');
136
+ }
137
+
138
+ $settings_link = '<a href="' . $url . '">Settings</a>';
139
+ array_unshift($links, $settings_link);
140
+ return $links;
141
+ }
142
+
143
+ /**
144
+ * Creates leadin app
145
+ */
146
+
147
+ function leadin_build_app()
148
+ {
149
+ global $wp_version;
150
+
151
+ echo '<div id="leadin" class="wrap ' . ($wp_version < 3.8 && !is_plugin_active('mp6/mp6.php') ? 'pre-mp6' : '') . '"></div>';
152
+
153
+ wp_enqueue_style('leadin-css');
154
+ wp_enqueue_script('leadin-app');
155
+
156
+ }
157
+
158
+ function update_option_leadin_options_callback($old_value, $new_value)
159
+ {
160
+ }
161
+
162
+ //=============================================
163
+ // Admin Styles & Scripts
164
+ //=============================================
165
+
166
+ /**
167
+ * Adds admin javascript
168
+ */
169
+ function add_leadin_admin_scripts()
170
+ {
171
+ global $pagenow;
172
+ global $wp_roles;
173
+ global $wp_version;
174
+
175
+ $ajaxUrl = get_admin_url(get_current_blog_id(), 'admin-ajax.php');
176
+
177
+ $leadin_config = array(
178
+ 'portalId' => get_option('leadin_portalId'),
179
+ 'hapikey' => get_option('leadin_hapikey'),
180
+ 'slumberMode' => get_option('leadin_slumber_mode'),
181
+ 'env' => constant('LEADIN_ENV'),
182
+ 'user' => $this->leadin_get_user_for_tracking(),
183
+ 'allRoles' => $wp_roles->get_names(),
184
+ 'leadinPluginVersion' => constant('LEADIN_PLUGIN_VERSION'),
185
+ 'wpVersion' => $wp_version,
186
+ 'siteUrl' => get_site_url(),
187
+ 'adminEmail' => get_option('admin_email'),
188
+ 'siteName' => get_bloginfo('name'),
189
+ 'adminBaseUrl' => get_admin_url(get_current_blog_id(), 'admin.php'),
190
+ 'leadinPluginDirectory' => LEADIN_PLUGIN_SLUG,
191
+ 'ajaxUrl' => is_ssl() ? str_replace('http:', 'https:', $ajaxUrl) : str_replace('https:', 'http:', $ajaxUrl),
192
+ 'locale' => get_locale(),
193
+ 'timezone' => get_option('gmt_offset'),
194
+ 'timezoneString' => get_option('timezone_string') // If not set by the user manually it will be an empty string
195
+ );
196
+
197
+ if (($pagenow == 'admin.php' && isset($_GET['page']) && strstr($_GET['page'], 'leadin'))) {
198
+ wp_register_script('leadin-head-js', leadin_get_resource_url('/bundle/head/head.js'), FALSE, FALSE, FALSE);
199
+ wp_localize_script('leadin-head-js', 'leadin_config', $leadin_config);
200
+ wp_enqueue_script('leadin-head-js');
201
+
202
+ wp_register_script('leadin-app', leadin_get_resource_url('/bundle/app.js'), array('backbone'), FALSE, TRUE);
203
+ wp_register_style('leadin-css', leadin_get_resource_url('/bundle/app.css'));
204
+ }
205
+ }
206
+
207
+ //=============================================
208
+ // Internal Class Functions
209
+ //=============================================
210
+
211
+ function leadin_get_user_for_tracking()
212
+ {
213
+ $leadin_user = leadin_get_current_user();
214
+ $tracking_leadin_user = array(
215
+ 'hashed_wp_url' => $leadin_user['user_id'],
216
+ 'name' => $leadin_user['alias'],
217
+ 'email' => $leadin_user['email'],
218
+ 'wp-url' => $leadin_user['wp_url'],
219
+ 'wp-version' => $leadin_user['wp_version'],
220
+ 'li-source' => LEADIN_SOURCE,
221
+ 'website' => $leadin_user['wp_url'],
222
+ 'company' => $leadin_user['wp_url'],
223
+ 'utm_source' => $leadin_user['utm_source'],
224
+ 'utm_medium' => $leadin_user['utm_medium'],
225
+ 'utm_term' => $leadin_user['utm_term'],
226
+ 'utm_content' => $leadin_user['utm_term'],
227
+ 'utm_campaign' => $leadin_user['utm_campaign'],
228
+ 'referral_source' => $leadin_user['referral_source'],
229
+ 'user_email' => $leadin_user['user_email']
230
+ );
231
+ return $tracking_leadin_user;
232
+ }
233
+
234
+ /**
235
+ * GET and set url actions into readable strings
236
+ * @return string if actions are set, bool if no actions set
237
+ */
238
+ function leadin_current_action()
239
+ {
240
+ if (isset($_REQUEST['action']) && -1 != $_REQUEST['action'])
241
+ return $_REQUEST['action'];
242
+
243
+ if (isset($_REQUEST['action2']) && -1 != $_REQUEST['action2'])
244
+ return $_REQUEST['action2'];
245
+
246
+ return FALSE;
247
+ }
248
+
249
+ }
250
+
251
+ ?>
assets/banner-1544x500.png DELETED
Binary file
assets/banner-772x250.png DELETED
Binary file
assets/icon-128x128.png DELETED
Binary file
assets/icon-256x256.png DELETED
Binary file
images/leadin-icon-16x16-white.png ADDED
Binary file
inc/class-leadin-pointers.php ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if (!defined('LEADIN_PLUGIN_VERSION')) {
4
+ header('HTTP/1.0 403 Forbidden');
5
+ die;
6
+ }
7
+
8
+ /**
9
+ * This class handles the pointers used in the introduction tour.
10
+ *
11
+ * @todo Add an introdutory pointer on the edit post page too.
12
+ */
13
+ class LI_Pointers
14
+ {
15
+
16
+ /**
17
+ * Class constructor.
18
+ */
19
+ function __construct($new_install = FALSE)
20
+ {
21
+ //=============================================
22
+ // Hooks & Filters
23
+ //=============================================
24
+
25
+ if ($new_install) {
26
+ add_action('admin_enqueue_scripts', array($this, 'enqueue_new_install_pointer'));
27
+ }
28
+ }
29
+
30
+ /**
31
+ * Enqueue styles and scripts needed for the pointers.
32
+ */
33
+ function enqueue_new_install_pointer()
34
+ {
35
+ if (!current_user_can('manage_options'))
36
+ return;
37
+
38
+ wp_enqueue_style('wp-pointer');
39
+ wp_enqueue_script('jquery-ui');
40
+ wp_enqueue_script('wp-pointer');
41
+ wp_enqueue_script('utils');
42
+
43
+ add_action('admin_print_footer_scripts', array($this, 'li_settings_popup_new'));
44
+ }
45
+
46
+ /**
47
+ * Loads in the required scripts for the pointer
48
+ */
49
+ function enqueue_pointer_scripts()
50
+ {
51
+ wp_enqueue_style('wp-pointer');
52
+ wp_enqueue_script('jquery-ui');
53
+ wp_enqueue_script('wp-pointer');
54
+ wp_enqueue_script('utils');
55
+ }
56
+
57
+ /**
58
+ * Shows a popup that asks for permission to allow tracking.
59
+ */
60
+ function li_settings_popup_new()
61
+ {
62
+ $id = '#toplevel_page_leadin';
63
+
64
+ $content = '<h3>' . __('So close...', 'leadin') . '</h3>';
65
+ $content .= '<p>' . __('Leadin needs just a bit more info to get up and running. Click on \'Complete Setup\' to complete the setup.', 'leadin') . '</p>';
66
+
67
+ $opt_arr = array(
68
+ 'content' => $content,
69
+ 'position' => array('edge' => 'left', 'align' => 'center')
70
+ );
71
+
72
+ $function2 = 'li_redirect_to_leadin()';
73
+
74
+ $this->print_scripts($id, $opt_arr, 'Complete Setup', FALSE, '', $function2);
75
+ }
76
+
77
+ /**
78
+ * Prints the pointer script
79
+ *
80
+ * @param string $selector The CSS selector the pointer is attached to.
81
+ * @param array $options The options for the pointer.
82
+ * @param string $button1 Text for button 1
83
+ * @param string|bool $button2 Text for button 2 (or false to not show it, defaults to false)
84
+ * @param string $button2_function The JavaScript function to attach to button 2
85
+ * @param string $button1_function The JavaScript function to attach to button 1
86
+ */
87
+ function print_scripts($selector, $options, $button1, $button2 = FALSE, $button2_function = '', $button1_function = '')
88
+ {
89
+ ?>
90
+ <script type="text/javascript">
91
+ //<![CDATA[
92
+ (function ($) {
93
+
94
+ var li_pointer_options = <?php echo json_encode( $options ); ?>, setup;
95
+
96
+ function li_redirect_to_leadin() {
97
+ window.location.href = "<?php echo get_bloginfo('wpurl'); ?>/wp-admin/admin.php?page=leadin";
98
+ }
99
+
100
+ li_pointer_options = $.extend(li_pointer_options, {
101
+ buttons: function (event, t) {
102
+ button = jQuery('<a id="pointer-close" style="margin-left:5px" class="button-secondary">' + '<?php echo $button1; ?>' + '</a>');
103
+ button.bind('click.pointer', function () {
104
+ window.location.href = "<?php echo get_bloginfo('wpurl'); ?>/wp-admin/admin.php?page=leadin";
105
+ //t.element.pointer('close');
106
+ });
107
+ return button;
108
+ },
109
+ close: function () {
110
+ }
111
+ });
112
+
113
+ setup = function () {
114
+ $('<?php echo $selector; ?>').pointer(li_pointer_options).pointer('open');
115
+ };
116
+
117
+ if (li_pointer_options.position && li_pointer_options.position.defer_loading)
118
+ $(window).bind('load.wp-pointers', setup);
119
+ else
120
+ $(document).ready(setup);
121
+ })(jQuery);
122
+ //]]>
123
+
124
+ </script>
125
+ <?php
126
+ }
127
+ }
inc/class-leadin.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ //=============================================
4
+ // WPLeadIn Class
5
+ //=============================================
6
+ class WPLeadIn
7
+ {
8
+ /**
9
+ * Class constructor
10
+ */
11
+ function __construct()
12
+ {
13
+ global $pagenow;
14
+
15
+ if (is_user_logged_in()) {
16
+ add_action('admin_bar_menu', array($this, 'add_leadin_link_to_admin_bar'), 999);
17
+ }
18
+
19
+ if (is_admin()) {
20
+ if (!defined('DOING_AJAX') || !DOING_AJAX)
21
+ $li_wp_admin = new WPLeadInAdmin();
22
+ } else {
23
+ // Adds the leadin-tracking script to wp-login.php page which doesnt hook into the enqueue logic
24
+ if ($this->leadin_is_login_or_register_page())
25
+ add_action('login_enqueue_scripts', array($this, 'add_leadin_frontend_scripts'));
26
+ else
27
+ add_action('wp_enqueue_scripts', array($this, 'add_leadin_frontend_scripts'));
28
+ }
29
+ }
30
+
31
+ //=============================================
32
+ // Scripts & Styles
33
+ //=============================================
34
+
35
+ /**
36
+ * Adds front end javascript + initializes ajax object
37
+ */
38
+
39
+ function add_leadin_frontend_scripts()
40
+ {
41
+
42
+ add_filter('script_loader_tag', array($this, 'leadin_add_embed_script_attributes'), 10, 2);
43
+
44
+ $embedDomain = constant('LEADIN_SCRIPT_LOADER_DOMAIN');
45
+ $portalId = get_option('leadin_portalId');
46
+ $slumberMode = get_option('leadin_slumber_mode');
47
+
48
+ if (empty($portalId)) {
49
+ echo '<!-- Leadin embed JS disabled as a portalId has not yet been configured -->';
50
+ return;
51
+ }
52
+
53
+ $embedUrl = '//' . $embedDomain . '/' . $portalId . '.js';
54
+ $embedId = 'leadin-scriptloader-js';
55
+
56
+
57
+ if (is_single())
58
+ $page_type = 'post';
59
+ else if (is_front_page())
60
+ $page_type = 'home';
61
+ else if (is_archive())
62
+ $page_type = 'archive';
63
+ else if ($this->leadin_is_login_or_register_page())
64
+ $page_type = 'login';
65
+ else if (is_page())
66
+ $page_type = 'page';
67
+ else
68
+ $page_type = 'other';
69
+
70
+ $leadin_wordpress_info = array(
71
+ 'userRole' => (is_user_logged_in()) ? leadin_get_user_role() : 'visitor',
72
+ 'pageType' => $page_type,
73
+ 'leadinPluginVersion' => LEADIN_PLUGIN_VERSION
74
+ );
75
+
76
+ wp_register_script($embedId, $embedUrl, array('jquery'), FALSE, TRUE);
77
+ wp_localize_script($embedId, 'leadin_wordpress', $leadin_wordpress_info);
78
+ wp_enqueue_script($embedId);
79
+ }
80
+
81
+ function leadin_add_embed_script_attributes($tag, $handle)
82
+ {
83
+ if ($handle == 'leadin-scriptloader-js')
84
+ return str_replace(' src', ' async defer src', $tag);
85
+ else
86
+ return $tag;
87
+ }
88
+
89
+ /**
90
+ * Adds Leadin link to top-level admin bar
91
+ */
92
+ function add_leadin_link_to_admin_bar($wp_admin_bar)
93
+ {
94
+ global $wp_version;
95
+
96
+ if (!current_user_can('activate_plugins')) {
97
+ if (!array_key_exists('li_grant_access_to_' . leadin_get_user_role(), get_option('leadin_options')))
98
+ return FALSE;
99
+ }
100
+
101
+
102
+ $leadin_icon = '<img src="' . LEADIN_PATH . '/images/leadin-icon-16x16-white.png' . '">';
103
+
104
+ $args = array(
105
+ 'id' => 'leadin-admin-menu',
106
+ 'title' => '<span class="ab-icon" ' . ($wp_version < 3.8 && !is_plugin_active('mp6/mp6.php') ? ' style="margin-top: 3px;"' : '') . '>' . $leadin_icon . '</span><span class="ab-label">Leadin</span>', // alter the title of existing node
107
+ 'parent' => FALSE, // set parent to false to make it a top level (parent) node
108
+ 'href' => get_bloginfo('wpurl') . '/wp-admin/admin.php?page=leadin',
109
+ 'meta' => array('title' => 'Leadin')
110
+ );
111
+
112
+ $wp_admin_bar->add_node($args);
113
+ }
114
+
115
+ public static function leadin_is_login_or_register_page()
116
+ {
117
+ return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'));
118
+ }
119
+ }
120
+
121
+ //=============================================
122
+ // Leadin Init
123
+ //=============================================
124
+
125
+ global $li_wp_admin;
inc/leadin-constants.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if (!defined('LEADIN_UTM_SOURCE'))
4
+ define('LEADIN_UTM_SOURCE', 'leadin%20repo%20plugin');
5
+
6
+ if (!defined('LEADIN_UTM_MEDIUM'))
7
+ define('LEADIN_UTM_MEDIUM', 'referral');
8
+
9
+ if (!defined('LEADIN_UTM_CONTENT'))
10
+ define('LEADIN_UTM_CONTENT', 'e10');
11
+
12
+ if (!defined('LEADIN_UTM_CAMPAIGN'))
13
+ define('LEADIN_UTM_CAMPAIGN', 'one%20click%20updater');
14
+
15
+ ?>
inc/leadin-disconnect.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (!defined('LEADIN_PLUGIN_VERSION')) {
3
+ header('HTTP/1.0 403 Forbidden');
4
+ wp_die();
5
+ }
6
+
7
+ if (is_admin()) {
8
+ add_action('wp_ajax_leadin_disconnect_ajax', 'leadin_disconnect_ajax'); // Call when user in slumber mode would like to disconnect their account
9
+ }
10
+
11
+ function leadin_disconnect_ajax()
12
+ {
13
+ if (get_option('leadin_slumber_mode')) {
14
+ delete_option('leadin_portalId');
15
+ delete_option('leadin_slumber_mode');
16
+
17
+ wp_die('{"message": "Success!"}');
18
+ } else {
19
+ error_log("Disconnect error");
20
+ header('HTTP/1.0 400 Bad Request');
21
+ wp_die('{"error": "Leadin must be in slumber mode to disconnect"}');
22
+ }
23
+
24
+ }
25
+
26
+ ?>
inc/leadin-functions.php ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if (!defined('LEADIN_PLUGIN_VERSION')) {
4
+ header('HTTP/1.0 403 Forbidden');
5
+ die;
6
+ }
7
+
8
+ if (!defined('LEADIN_PORTAL_ID')) {
9
+ DEFINE('LEADIN_PORTAL_ID', intval(get_option('leadin_portalId')));
10
+ }
11
+
12
+ if (!defined('LEADIN_HAPIKEY')) {
13
+ DEFINE('LEADIN_HAPIKEY', get_option('leadin_hapikey'));
14
+ }
15
+
16
+
17
+ function leadin_get_resource_url($path)
18
+ {
19
+ $resource_root = constant('LEADIN_ADMIN_ASSETS_BASE_URL');
20
+
21
+ return $resource_root . $path;
22
+ }
23
+
24
+ /**
25
+ * Get Leadin user
26
+ *
27
+ * @return array
28
+ */
29
+ function leadin_get_current_user()
30
+ {
31
+ global $wp_version;
32
+
33
+ $current_user = wp_get_current_user();
34
+ $li_user_id = md5(get_bloginfo('wpurl'));
35
+
36
+ $li_options = get_option('leadin_options');
37
+ $leadinPortalId = get_option('leadin_portalId');
38
+
39
+ if (isset($li_options['li_email'])) {
40
+ $li_user_email = $li_options['li_email'];
41
+ } else {
42
+ $li_user_email = $current_user->user_email;
43
+ }
44
+
45
+ $leadin_user = array(
46
+ 'user_id' => $li_user_id,
47
+ 'email' => $li_user_email,
48
+ 'alias' => $current_user->display_name,
49
+ 'wp_url' => get_bloginfo('wpurl'),
50
+ 'li_version' => LEADIN_PLUGIN_VERSION,
51
+ 'wp_version' => $wp_version,
52
+ 'user_email' => $current_user->user_email
53
+ );
54
+
55
+ if (defined('LEADIN_REFERRAL_SOURCE'))
56
+ $leadin_user['referral_source'] = LEADIN_REFERRAL_SOURCE;
57
+ else
58
+ $leadin_user['referral_source'] = '';
59
+
60
+ if (defined('LEADIN_UTM_SOURCE'))
61
+ $leadin_user['utm_source'] = LEADIN_UTM_SOURCE;
62
+ else
63
+ $leadin_user['utm_source'] = '';
64
+
65
+ if (defined('LEADIN_UTM_MEDIUM'))
66
+ $leadin_user['utm_medium'] = LEADIN_UTM_MEDIUM;
67
+ else
68
+ $leadin_user['utm_medium'] = '';
69
+
70
+ if (defined('LEADIN_UTM_TERM'))
71
+ $leadin_user['utm_term'] = LEADIN_UTM_TERM;
72
+ else
73
+ $leadin_user['utm_term'] = '';
74
+
75
+ if (defined('LEADIN_UTM_CONTENT'))
76
+ $leadin_user['utm_content'] = LEADIN_UTM_CONTENT;
77
+ else
78
+ $leadin_user['utm_content'] = '';
79
+
80
+ if (defined('LEADIN_UTM_CAMPAIGN'))
81
+ $leadin_user['utm_campaign'] = LEADIN_UTM_CAMPAIGN;
82
+ else
83
+ $leadin_user['utm_campaign'] = '';
84
+
85
+ if (!empty($leadinPortalId)) {
86
+ $leadin_user['portal_id'] = $leadinPortalId;
87
+ }
88
+
89
+ return $leadin_user;
90
+ }
91
+
92
+ /**
93
+ * Logs a debug statement to /wp-content/debug.log
94
+ *
95
+ * @param string
96
+ */
97
+ function leadin_log_debug($message)
98
+ {
99
+ if (WP_DEBUG === TRUE) {
100
+ if (is_array($message) || is_object($message))
101
+ error_log(print_r($message, TRUE));
102
+ else
103
+ error_log($message);
104
+ }
105
+ }
106
+
107
+ /**
108
+ * Returns the user role for the current user
109
+ *
110
+ */
111
+ function leadin_get_user_role()
112
+ {
113
+ global $current_user;
114
+
115
+ $user_roles = $current_user->roles;
116
+ $user_role = array_shift($user_roles);
117
+
118
+ return $user_role;
119
+ }
120
+
121
+ ?>
inc/leadin-registration.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (!defined('LEADIN_PLUGIN_VERSION')) {
3
+ header('HTTP/1.0 403 Forbidden');
4
+ wp_die();
5
+ }
6
+
7
+ if (is_admin()) {
8
+ add_action('wp_ajax_leadin_registration_ajax', 'leadin_registration_ajax'); // Call when user logged in
9
+ }
10
+
11
+ function leadin_registration_ajax()
12
+ {
13
+ $existingPortalId = get_option('leadin_portalId');
14
+ $existingHapikey = get_option('leadin_hapikey');
15
+
16
+ if (!empty($existingPortalId) || !empty($existingHapikey)) {
17
+ header('HTTP/1.0 400 Bad Request');
18
+ wp_die('{"error": "Registration is already complete for this portal"}');
19
+ }
20
+
21
+ $data = json_decode(file_get_contents('php://input'), true);
22
+
23
+ $newPortalId = $data['portalId'];
24
+ $newHapiKey = $data['hapikey'];
25
+ $slumberMode = $data['slumberMode'];
26
+
27
+ error_log($data['hapikey']);
28
+
29
+ if (empty($newPortalId) OR (empty($newHapiKey) AND empty($slumberMode))) {
30
+ error_log("Registration error");
31
+ header('HTTP/1.0 400 Bad Request');
32
+ wp_die('{"error": "Registration missing required fields"}');
33
+ }
34
+
35
+ add_option('leadin_portalId', $newPortalId);
36
+
37
+ if (!empty($newHapiKey)) {
38
+ add_option('leadin_hapikey', $newHapiKey);
39
+ }
40
+ if (!empty($slumberMode)) {
41
+ add_option('leadin_slumber_mode', $slumberMode);
42
+ }
43
+
44
+ wp_die('{"message": "Success!"}');
45
+ }
46
+
47
+ ?>
leadin.php ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Leadin
4
+ Plugin URI: http://leadin.hubspot.com
5
+ Description: Leadin is an easy-to-use marketing automation and lead tracking plugin for WordPress that helps you better understand your web site visitors.
6
+ Version: 5.4.1
7
+ Author: Leadin
8
+ Author URI: http://leadin.hubspot.com
9
+ License: GPL2
10
+ */
11
+
12
+ //=============================================
13
+ // Define Constants
14
+ //=============================================
15
+
16
+ if (!defined('LEADIN_PATH'))
17
+ define('LEADIN_PATH', untrailingslashit(plugins_url('', __FILE__)));
18
+
19
+ if (!defined('LEADIN_PLUGIN_DIR'))
20
+ define('LEADIN_PLUGIN_DIR', untrailingslashit(dirname(__FILE__)));
21
+
22
+ if (!defined('LEADIN_PLUGIN_SLUG'))
23
+ define('LEADIN_PLUGIN_SLUG', basename(dirname(__FILE__)));
24
+
25
+ if (file_exists(LEADIN_PLUGIN_DIR . '/inc/leadin-overrides.php'))
26
+ include_once(LEADIN_PLUGIN_DIR . '/inc/leadin-overrides.php');
27
+
28
+ if (!defined('LEADIN_DB_VERSION'))
29
+ define('LEADIN_DB_VERSION', '2.2.5');
30
+
31
+ if (!defined('LEADIN_PLUGIN_VERSION'))
32
+ define('LEADIN_PLUGIN_VERSION', '5.4.1');
33
+
34
+ if (!defined('LEADIN_SOURCE'))
35
+ define('LEADIN_SOURCE', 'leadin.com');
36
+
37
+ if (!defined('LEADIN_ADMIN_ASSETS_BASE_URL'))
38
+ define('LEADIN_ADMIN_ASSETS_BASE_URL', "https://app.hubspot.com/leadin_admin_static_live");
39
+
40
+ if (!defined('LEADIN_SCRIPT_LOADER_DOMAIN'))
41
+ define('LEADIN_SCRIPT_LOADER_DOMAIN', "js.hs-scripts.com");
42
+
43
+ if (!defined('LEADIN_ENV'))
44
+ define('LEADIN_ENV', "prod");
45
+
46
+ //=============================================
47
+ // Include Needed Files
48
+ //=============================================
49
+
50
+ if (file_exists(LEADIN_PLUGIN_DIR . '/inc/leadin-constants.php'))
51
+ include_once(LEADIN_PLUGIN_DIR . '/inc/leadin-constants.php');
52
+
53
+ require_once(LEADIN_PLUGIN_DIR . '/inc/leadin-functions.php');
54
+ require_once(LEADIN_PLUGIN_DIR . '/inc/leadin-registration.php');
55
+ require_once(LEADIN_PLUGIN_DIR . '/inc/leadin-disconnect.php');
56
+ require_once(LEADIN_PLUGIN_DIR . '/admin/leadin-admin.php');
57
+
58
+ require_once(LEADIN_PLUGIN_DIR . '/inc/class-leadin.php');
59
+
60
+
61
+ //=============================================
62
+ // Hooks & Filters
63
+ //=============================================
64
+
65
+ /**
66
+ * Activate the plugin
67
+ */
68
+ function activate_leadin($network_wide)
69
+ {
70
+
71
+ // Check activation on entire network or one blog
72
+ if (is_multisite() && $network_wide) {
73
+ global $wpdb;
74
+
75
+ // Get this so we can switch back to it later
76
+ $current_blog = $wpdb->blogid;
77
+ // For storing the list of activated blogs
78
+ $activated = array();
79
+
80
+ // Get all blogs in the network and activate plugin on each one
81
+ $q = "SELECT blog_id FROM $wpdb->blogs";
82
+ $blog_ids = $wpdb->get_col($q);
83
+ foreach ($blog_ids as $blog_id) {
84
+ switch_to_blog($blog_id);
85
+ add_leadin_defaults();
86
+ $activated[] = $blog_id;
87
+ }
88
+
89
+ // Switch back to the current blog
90
+ switch_to_blog($current_blog);
91
+
92
+ // Store the array for a later function
93
+ update_site_option('leadin_activated', $activated);
94
+ } else {
95
+ add_leadin_defaults();
96
+ }
97
+ }
98
+
99
+ /**
100
+ * Check Leadin installation and set options
101
+ */
102
+ function add_leadin_defaults()
103
+ {
104
+ global $wpdb;
105
+ $options = get_option('leadin_options');
106
+
107
+ if (($options['li_installed'] != 1) || (!is_array($options))) {
108
+ $opt = array(
109
+ 'li_installed' => 1,
110
+ 'leadin_version' => LEADIN_PLUGIN_VERSION,
111
+ 'li_email' => get_bloginfo('admin_email'),
112
+ 'li_updates_subscription' => 1,
113
+ 'onboarding_step' => 1,
114
+ 'onboarding_complete' => 0,
115
+ 'ignore_settings_popup' => 0,
116
+ 'data_recovered' => 1,
117
+ 'delete_flags_fixed' => 1,
118
+ 'beta_tester' => 0,
119
+ 'converted_to_tags' => 1,
120
+ 'names_added_to_contacts' => 1
121
+ );
122
+
123
+ // Add the Pro flag if this is a pro installation
124
+ if ((defined('LEADIN_UTM_SOURCE') && LEADIN_UTM_SOURCE != 'leadin%20repo%20plugin') || !defined('LEADIN_UTM_SOURCE'))
125
+ $opt['pro'] = 1;
126
+
127
+ // this is a hack because multisite doesn't recognize local options using either update_option or update_site_option...
128
+ if (is_multisite()) {
129
+ $multisite_prefix = (is_multisite() ? $wpdb->prefix : '');
130
+ $q = $wpdb->prepare("
131
+ INSERT INTO " . $multisite_prefix . "options
132
+ ( option_name, option_value )
133
+ VALUES ('leadin_options', %s)", serialize($opt));
134
+ $wpdb->query($q);
135
+ // TODO: Glob settings for multisite
136
+ } else
137
+ update_option('leadin_options', $opt);
138
+
139
+ }
140
+
141
+ setcookie("ignore_social_share", "1", 2592000, "/");
142
+ }
143
+
144
+ /**
145
+ * Deactivate Leadin plugin hook
146
+ */
147
+ function deactivate_leadin($network_wide)
148
+ {
149
+ if (is_multisite() && $network_wide) {
150
+ global $wpdb;
151
+
152
+ // Get this so we can switch back to it later
153
+ $current_blog = $wpdb->blogid;
154
+
155
+ // Get all blogs in the network and activate plugin on each one
156
+ $q = "SELECT blog_id FROM $wpdb->blogs";
157
+ $blog_ids = $wpdb->get_col($q);
158
+ foreach ($blog_ids as $blog_id) {
159
+ switch_to_blog($blog_id);
160
+ }
161
+
162
+ // Switch back to the current blog
163
+ switch_to_blog($current_blog);
164
+ }
165
+ }
166
+
167
+ function activate_leadin_on_new_blog($blog_id, $user_id, $domain, $path, $site_id, $meta)
168
+ {
169
+ global $wpdb;
170
+
171
+ if (is_plugin_active_for_network('leadin/leadin.php')) {
172
+ $current_blog = $wpdb->blogid;
173
+ switch_to_blog($blog_id);
174
+ add_leadin_defaults();
175
+ switch_to_blog($current_blog);
176
+ }
177
+ }
178
+
179
+ /**
180
+ * Checks the stored database version against the current data version + updates if needed
181
+ */
182
+ function leadin_init()
183
+ {
184
+ $leadin_wp = new WPLeadIn();
185
+ }
186
+
187
+
188
+ add_action('plugins_loaded', 'leadin_init', 14);
189
+
190
+ if (is_admin()) {
191
+ // Activate + install Leadin
192
+ register_activation_hook(__FILE__, 'activate_leadin');
193
+
194
+ // Deactivate Leadin
195
+ register_deactivation_hook(__FILE__, 'deactivate_leadin');
196
+
197
+ // Activate on newly created wpmu blog
198
+ add_action('wpmu_new_blog', 'activate_leadin_on_new_blog', 10, 6);
199
+ }
200
+
201
+ ?>
package.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "leadin",
3
+ "version": "1.0.0",
4
+ "devDependencies": {
5
+ "grunt": "^0.4.5",
6
+ "grunt-contrib-compass": "^1.0.1",
7
+ "grunt-contrib-clean": "^0.6.0",
8
+ "grunt-contrib-concat": "~0.4.0",
9
+ "grunt-contrib-uglify": "~0.4.0",
10
+ "grunt-contrib-watch": "~0.6.1"
11
+ },
12
+ "description": "=== LeadIn === Contributors: andygcook, nelsonjoyce Tags: lead tracking, visitor tracking, analytics, crm, marketing automation, inbound marketing, subscription, marketing, lead generation, mailchimp Requires at least: 3.7 Tested up to: 3.9.1 Stable tag: 1.0.0",
13
+ "main": "gruntfile.js",
14
+ "dependencies": {},
15
+ "scripts": {
16
+ "test": "echo \"Error: no test specified\" && exit 1"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/LeadIn/leadin.git"
21
+ },
22
+ "author": "",
23
+ "license": "ISC",
24
+ "bugs": {
25
+ "url": "https://github.com/LeadIn/leadin/issues"
26
+ },
27
+ "homepage": "https://github.com/LeadIn/leadin"
28
+ }
readme.txt ADDED
@@ -0,0 +1,710 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Contact Forms & Website Analytics by Leadin ===
2
+ Contributors: leadin, sredmond
3
+ Tags: crm, contacts, lead tracking, click tracking, visitor tracking, analytics, marketing automation, inbound marketing, subscription, marketing, lead generation, mailchimp, constant contact, newsletter, popup, popover, email list, email, contacts database, contact form, forms, form widget, popup form
4
+ Requires at least: 3.7
5
+ Tested up to: 4.5
6
+ Stable tag: 5.4.1
7
+
8
+ Leadin is an easy-to-use contact form and marketing analytics plugin for your website that helps you better understand your website visitors.
9
+
10
+ == Description ==
11
+
12
+ = Get to know your website visitors =
13
+
14
+ <a href="https://leadin.hubspot.com" alt="WordPress marketing automation and lead tracking plugin" target="_blank">Leadin</a> is an easy-to-use marketing automation and lead tracking plugin for WordPress that helps you better understand your web site visitors.
15
+
16
+ [youtube https://www.youtube.com/watch?v=tcMYv2r3ecg]
17
+
18
+ = Find out who's on your site and what they're doing =
19
+ When someone visits your site, you want to know more about them. What pages they've visited, when they return, and what social networks they’re on. Leadin gives you the details you need to make your next move.
20
+
21
+ = More context for your conversations =
22
+ Leadin automatically finds publicly available information about each of your contacts. Details such as location, work history, and company info can give you more context when you reach out.
23
+
24
+ = Convert more visitors to contacts =
25
+ Use the optional popup form to prevent people from slipping through the cracks. The popup also uses the contact data to intelligently know when to appear.
26
+
27
+ = Keep your contacts in sync with your email tool =
28
+ Leadin syncs your contacts to an email list of your choice without replacing any forms.
29
+
30
+ = Find out what content and traffic sources convert the best =
31
+ Our simple analytics show you what sources of traffic and content are driving the most contacts. No more complicated Google Analytics reports.
32
+
33
+ = How does it work? =
34
+
35
+ 1. When you activate the WordPress plugin, Leadin will track each anonymous visitor to your site with a cookie.
36
+ 2. Leadin automatically identifies and watches each existing form on your site for submissions.
37
+ 3. Once someone fills out any other form on your site, Leadin will identify that person with their email address. and add them to your contact list.
38
+ 4. You'll also receive an email with a link to the new contact record with all of their visit history. (check the screenshots sections to see it in action)
39
+
40
+ = Who's using Leadin? =
41
+
42
+ **<a href="http://www.extremeinbound.com/leadin-wordpress-crm-inbound-plugin/" target="_blank">Alan Perlman</a>**: *“I can use Leadin to get a sense of how engaged certain contacts are, and I can learn more about their behavior on my website to better drive the conversation and understand what they’re interested in or looking for.”*
43
+
44
+ **<a href="http://thewpvalet.com/wordpress-lead-tracking/" target="_blank">Adam W. Warner</a>**: *“…the Leadin plugin has been very useful so far in giving us an idea of the actual visitor paths to our contact forms vs. the paths we’ve intended.”*
45
+
46
+
47
+ Having trouble? Check out our <a href="https://leadin.hubspot.com/knowledge/">help documentation & support</a>
48
+
49
+ == Installation ==
50
+
51
+ 1. Upload the 'leadin' folder to the '/wp-content/plugins/' directory
52
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
53
+ 3. Add an email address under 'Leadin' in your settings panel
54
+
55
+ Having trouble? Check out our <a href="https://leadin.hubspot.com/knowledge/" target="_blank">help documentation & support</a>
56
+
57
+ == Frequently Asked Questions ==
58
+ = <a href="https://leadin.hubspot.com/knowledge/frequently-asked-questions" target="_blank">Full FAQ Here</a> =
59
+
60
+ == Screenshots ==
61
+
62
+ 1. See the visit history of each contact.
63
+ 2. Get an email notification for every new lead.
64
+ 3. Leadin Dashboard shows you where your leads are coming from.
65
+ 4. All your contacts stored safely in one place.
66
+ 5. Collect more contacts with the pop-up subscribe widget.
67
+
68
+ == Changelog ==
69
+
70
+ - Current version: 5.4.1
71
+ - Current version release: 2016-08-17
72
+
73
+ = 5.4.1
74
+ - Moved all embed loads to the new unified script loader, which has been in beta since v5.2.1
75
+
76
+ = 5.3.1
77
+ - Added "collected forms" screen to the navigation, a new way to manage your collected forms
78
+ - Shifted more accounts to the new unified script loader following a beta release in 5.2.1. Now all "existing app" customers, and all new customers use the unified loader.
79
+
80
+ = 5.2.1
81
+ - New "existing app" customers use the new unified script loader
82
+
83
+ = 5.1.1
84
+ - Rebranding "Flows" to "Lead Flows"
85
+ - Correcting the settings link in Plugins when Leadin is connected to an existing Leadin web app account
86
+
87
+ = 5.0.2
88
+ - Update deployment script
89
+
90
+ = 5.0.1
91
+ - The Leadin plugin can now be installed for an existing Leadin web app account
92
+
93
+ = 4.8.2 (2016.05.30) =
94
+ - Added 'Flows' to the WordPress navigation - all-in-one lead conversion widgets - http://leadin.hubspot.com/flows
95
+
96
+ = 4.7.1 (2016.04.14) =
97
+ - Stopped using get_currentuserinfo(), which was deprecated in WordPress 4.5 in favor of wp_get_current_user()
98
+
99
+ = 4.6.8 (2016.04.01) =
100
+ - Updated supported version of WordPress
101
+
102
+ = 4.6.6 (2016.03.23) =
103
+ - Changed URL where Leadin's JavaScript loads from. This should help with customers who were experiencing blank screens due to overzealous adblocking
104
+ - Updated readme
105
+
106
+ = 4.5.0 (2016.01.14) =
107
+ - Renamed "stats" to "dashboard" in the menu
108
+ - Fixed a bug where deactivating the plugin in multisite mode would cause a PHP error
109
+ - Removed old PHP that was used before Leadin was hosted in an iFrame, as it is now
110
+ - Updated screenshots
111
+
112
+ = 4.4.0 (2015.12.14) =
113
+ - Remove migration code
114
+
115
+ = 4.3.2 (2015.12.02) =
116
+ - Wordpress assets update
117
+
118
+ = 4.3.1 (2015.11.26) =
119
+ - Logo updates
120
+
121
+ = 4.3.0 (2015.09.30) =
122
+ - Load time improvements to the tracking script
123
+
124
+ = 4.2.3 (2015.08.20) =
125
+ - Support widget improvements
126
+
127
+ = 4.2.2 (2015.08.14) =
128
+ - Correctly set the version number in PHP
129
+
130
+ = 4.2.1 (2015.08.13) =
131
+ - Fix detection of front page for popup triggering
132
+ - Update screenshots
133
+
134
+ = 4.2.0 (2015.08.13) =
135
+ - Migration improvements
136
+ - Bug fix to stop showing the setup dialog when setup is in progress
137
+ - Preparatory work to send notification emails in the timezone WordPress is configured in
138
+
139
+ = 4.1.1 (2015.07.14) =
140
+ - Bug fix for upgraded installs from the plugin directory running through the migration process
141
+
142
+ = 4.1.0 (2015.07.10) =
143
+ - Migration script added to move data from MySQL to Leadin Cloud
144
+
145
+ = 4.0.2 (2015.07.09) =
146
+
147
+ - Bug fixes
148
+
149
+ - Current version: 4.0.1
150
+ - Current version release: 2015-06-24
151
+
152
+ = 4.0.1 (2015.06.24) =
153
+
154
+ - Bug fixes
155
+ - Added support for custom page types
156
+ - Stopped using SVG icons due to performance problems
157
+ - Fixed signup error in PHP < 5.4 on browsers that don't support CORS
158
+
159
+ = 4.0.0 (2015.05.20) =
160
+
161
+ - Leadin Cloud launched
162
+
163
+ = 3.1.8 (2015.05.15) =
164
+
165
+ - Added email connector sync to onboarding
166
+ - Sources now check the UTM tags on the first page view visit
167
+ - Privacy policy added to plugin
168
+
169
+ - Bug fixes
170
+ - Fixed dismiss button conflict on WordPress notifications
171
+ - Icon styles no longer conflict with other plugins
172
+ - Deleted contacts no longer show up in the dashboard
173
+ - Popup sync now looks at the actual inputs instead of the field names so it’ll work in other languages
174
+ - Popup labels now work in IE
175
+ - Fixed bug with SendGrid email delivery for Leadin Pro
176
+
177
+ = 3.1.7 (2015.04.15) =
178
+ = Enhancements =
179
+ - Added debug mode
180
+ - Default subscribe confirmation to off
181
+
182
+ - Bug fixes
183
+ - Fixed overly large Leadin icon in admin bar on front end for logged in users
184
+
185
+ = 3.1.6 (2015.03.31) =
186
+ = Enhancements =
187
+ - Show name on contact timeline instead of email address if available
188
+ - New contact timeline page styles
189
+ - Ability to change color in popup
190
+ - Popup now works on mobile
191
+
192
+ - Bug fixes
193
+ - Fixed dashicons not loading in < WP 3.7
194
+ - Completely fix all the default object warnings for the contact lookups
195
+ - Swap in non-svg logo if allow_url_fopen not toggled on in php.ini
196
+ - Fixed Pro email delivery bugs
197
+
198
+ = 3.1.5 (2015.03.20) =
199
+ - Bug fixes
200
+ - Changed out call to __DIR__ magic constant which wasn’t implemented until PHP 5.3 in favor of dirname(__FILE__)
201
+
202
+ = 3.1.4 (2015.03.17) =
203
+ = Enhancements =
204
+ - Intercom added to plugin for in-app support
205
+ - Onboarding improved for non-setup installs
206
+ - Contact notifications are now sent through email delivery service to improve deliverability
207
+
208
+ - Bug fixes
209
+ - Namespaced AWeber oauth libraries with LI_ prefix to avoid duplicate class warnings
210
+ - SVG icon permanently fixed for servers that don't natively support that file type
211
+ - Check if database options are set for subscribe preview button
212
+ - Added in check for default leadin_options in case they were deleted and recreate them if they are not there
213
+ - Add in checks for the contact lookups to account for default object warnings
214
+ -
215
+
216
+ = 3.1.3 (2015.02.19) =
217
+ = Enhancements =
218
+ - Don't show the "You should receive a confirmation email shortly" message in the popup thank you if the confirmation email setting is toggled off
219
+
220
+ - Bug fixes
221
+ - Fixed SVG icon
222
+ - Fixed the default object warnings in class-leadin-contact for the enrichment lookups
223
+ - Tested NinjaPopups and added to readme as unsupported form plugin
224
+ - "Namespace" AWeber with "LI_" prefix to avoid conflicts
225
+
226
+ = 3.1.2 (2015.01.26) =
227
+ = Enhancements =
228
+ - Tested JotForm + added compatibility to the ReadMe file
229
+
230
+ - Bug fixes
231
+ - Add in support for like_escape for < WordPress 4.0
232
+ - Add first + last names to bulk MailChimp connector
233
+ - Remove rogue WPDB prepare in tag list table
234
+ - Check for existence of ESP connector when pushing to an email list
235
+ - Bug fix for multisite installs with broken onboarding
236
+
237
+ = 3.1.1 (2014.01.20) =
238
+ = Enhancements =
239
+ - Added ability to toggle Leadin data access by user role
240
+ - Hide Leadin nav menu item for user roles without access to Leadin data
241
+ - Discontinued and disabled the beta program
242
+
243
+ - Bug fixes
244
+ - Fixed broken onboarding in WordPress Multisite after adding a new site to the network
245
+ - Contact totals in tag editor now link to tagged list
246
+
247
+ = 3.1.0 (2015.1.16) =
248
+ = Enhancements =
249
+ - GetResponse, Campaign Monitor and AWeber integrations launched
250
+
251
+ = 3.0.0 (2014.12.10) =
252
+ = Enhancements =
253
+ - Jumping to version 3.0.0 to indefinitely override repository version of Leadin
254
+
255
+ = Leadin 2.2.7 - 2.2.11 =
256
+
257
+ *Leadin was split into Leadin and <a href="http://leadin.com/pro-upgrade" target="_blank">Leadin Pro</a> after version 2.2.6 and later merged back together, so versions 2.2.7 - 2.2.11 and 3.0.0 - 3.1.3 share similar updates.*
258
+
259
+ = 2.2.11 (2015.02.18) =
260
+
261
+ = Enhancements =
262
+ - Don't show the "You should receive a confirmation email shortly" message in the popup thank you if the confirmation email setting is toggled off
263
+
264
+ - Bug fixes
265
+ - Fixed SVG icon
266
+ - Fixed the default object warnings in class-leadin-contact for the enrichment lookups
267
+ - Tested NinjaPopups and added to readme as unsupported form plugin
268
+
269
+
270
+ = 2.2.10 (2015.01.26) =
271
+ = Enhancements =
272
+ - Tested JotForm + added compatibility to the ReadMe file
273
+
274
+ - Bug fixes
275
+ - Add in support for like_escape for < WordPress 4.0
276
+ - Add first + last names to bulk MailChimp connector
277
+ - Remove rogue WPDB prepare in tag list table
278
+ - Check for existence of ESP connector when pushing to an email list
279
+ - Bug fix for multisite installs with broken onboarding
280
+
281
+ = 2.2.9 (2014.01.20) =
282
+ = Enhancements =
283
+ - Added ability to toggle Leadin data access by user role
284
+ - Hide Leadin nav menu item for user roles without access to Leadin data
285
+ - Discountinued and disabled the beta program
286
+
287
+ - Bug fixes
288
+ - Fixed broken onboarding in WordPress Multisite after adding a new site to the network
289
+ - Contact totals in tag editor now link to tagged list
290
+
291
+ = 2.2.8 (2014.12.15) =
292
+ = Enhancements =
293
+ - Added in CTAs for Leadin Pro
294
+
295
+ = 2.2.7 (2014.12.09) =
296
+ - Bug fixes
297
+ - Fixing upgrade process from 2.2.6
298
+
299
+ = 2.2.6 (2014.12.08) =
300
+ = Enhancements =
301
+ - Added names to contact export
302
+ - Added “tagged as” to contact notification email subject lines
303
+
304
+ - Bug fixes
305
+ - Fixed bug with non-tagged contacts being added to tagged lists
306
+
307
+ = 2.2.6 (2014.12.08) =
308
+ = Enhancements =
309
+ - Contact Lookup power-up
310
+ - Added names to contact exports
311
+ - Added “tagged as” to the email subject lines
312
+
313
+ - Bug fixes
314
+ - Fixed bug where Leadin would add non-tagged emails to ESP lists when it was not supposed to do those contacts
315
+
316
+ = 2.2.5 (2014.11.20) =
317
+ - Bug fixes
318
+ - Fixes to bulk action labels
319
+ - Fixed Add Tag button
320
+
321
+ = 2.2.4 (2014.10.31) =
322
+ - Bug fixes
323
+ - Patch for 2.2.3 database structure. We forgot to include the new form_hashkey field in the database upgrade
324
+
325
+ = 2.2.3 (2014.10.31) =
326
+ = Enhancements =
327
+ - Added "Tags" link to sidebar menu
328
+ - Added the applied tags on form submission timeline events
329
+ - Added the form selector on submission events in the timeline
330
+ - Added language in the subject of the contact notification emails to indicate returning vs. new visitors
331
+ - Leadin will now detect first names + last names and store them on the contact + push to ESP connectors
332
+ - Retroactively apply names to all contacts where possible
333
+
334
+ - Bug fixes
335
+ - If a contact changes their email, Leadin will now push the new email to the ESP connectors
336
+ - Added safeguards into all third party libraries to see if they are included already in the WordPress admin
337
+ - Added default Javascript values to the popup form if the get_footer function isn't being called
338
+
339
+ = 2.2.2 (2014.10.16) =
340
+ = Enhancements =
341
+ - Leadin now include the utm_ tags from the original first page view when parsing the sources
342
+
343
+ - Bug fixes
344
+ - Unchecking all the template checkboxes for the popup then saving no longer rechecks them all
345
+ - Added in current_time fix for older versions of WordPress
346
+ - Retooled tag editor to only pull down unique selectors
347
+ - Contact list now will go back to the previous page when clicking the back link
348
+ - Fixed mysterious bug where popup ignored new visitors
349
+ - NOW the subscription confirmation stays checked/unchecked on save (Thanks Kate!)
350
+
351
+ = 2.2.1 (2014.10.01) =
352
+ = Enhancements =
353
+ - Added video from WPApplied to readme file
354
+
355
+ - Bug fixes
356
+ - Page view filters now work in the all contacts list
357
+ - Subscription confirmation box didn't work in settings page if the "homepage" checkbox was unchecked
358
+ - Leadin menu link no longer shows up in the front-end menu bar for non-logged in users
359
+ - Stopped selecting duplicate tags on a contact in the timeline view
360
+ - Select inputs did not pull down the text and instead used the value. Fixed and use text now for selected option
361
+ - Timezones with a database offset on the contact timeline were not correctly fixed in last update
362
+ - Fix to ignore all cURL calls if script isn't present on the server
363
+ - Disable beta program is cURL does not exist on the server
364
+ - Fixed “<- All contacts” link showing up next to back link on a specific contact type in timeline view
365
+
366
+ = 2.2.0 (2014.09.25) =
367
+ = Enhancements =
368
+ - Added ability to ignore logged in user roles from tracking
369
+ - Popup can be previewed on the front end site before saving changes
370
+ - MailChimp Connect checks for faulty API keys and prompts the user to enter in one that works on the tag editor page
371
+ - Email headers for contact notificaitons come from the person who filled in the form
372
+ - Added traffic source URL parameters to contact notification emails
373
+
374
+ - Bug fixes
375
+ - Leadin now accounts for timezones discrepancy on some MySQL databases and offsets to local time
376
+ - Filters are now persistent when clicking the link back to the contact list from a contact timeline
377
+ - cURL dependency no longer prints the raw error to the screen on installation and gracefully disables cURL-dependant features
378
+ - Stats page and contact list totals didn't match up - fixed
379
+
380
+ = 2.1.0 (2014.09.19) =
381
+ = Enhancements =
382
+ - Improved onboarding
383
+ - Added setting include a short description to the popup under the form heading
384
+ - General style improvements to the popup form power-up
385
+
386
+ - Bug fixes
387
+ - Contact filters are now persistent when navigating back to the main contact list from the contact timeline
388
+
389
+ = 2.0.2 (2014.09.09) =
390
+
391
+ - Bug fixes
392
+ - Fix inconsistent sources on stats widgets and contact timeline widgets
393
+ - Onboarding tooltip popup for setting up settings now works correctly
394
+ - Parse out get vars for traffic sources in the contact timeline
395
+
396
+ = 2.0.1 (2014.09.01) =
397
+ = Enhancements =
398
+ - Removed "Who read my post" widget analytics from the post editor
399
+ - Separated backend from frontend code to speed up ajax calls on both sides
400
+
401
+ - Bug fixes
402
+ - Fixed bug when deleting specifically selected contacts looked like all the contacts were deleted on the page refresh
403
+ - Organic traffic and paid traffic sources are now parsing more accurately
404
+ - Credit card forms will add to the timeline now but will block all credit card information
405
+ - Bulk edited tags now push contacts to ESP lists when added
406
+ - Lists with existing contacts retroactively push email addresses to corresponding ESP list
407
+ - Renamed MailChimp Contact Sync + Constant Contact Sync to MailChimp Connect + Constant Contact Connect
408
+ - Fixed returning contacts vs. new contacts in dashboard widget
409
+ - Contact export works again
410
+ - Fixed insecure content warning on SSL
411
+ - Non-administrators no longer can see the Leadin menu links or pages
412
+ - Settings link missing from plugins list page
413
+ - Line break contact notifications previews
414
+ - Setup a mailto link on the contact notification email in the details header
415
+
416
+ = 2.0.0 (2014.08.11) =
417
+ = Enhancements =
418
+ - Create a custom tagged list based on form submission rules
419
+ - Ability to sync tagged contacts to a specific ESP list
420
+ - Filter lists by form selectors
421
+
422
+ - Bug fixes
423
+ - Fix contact export for selected contacts
424
+ - Text area line breaks in the contact notifications now show properly
425
+ - Contact numbers at top of list did not always match number in sidebar - fixed
426
+
427
+ = 1.3.0 (2014.07.14) =
428
+ = Enhancements =
429
+ - Multisite compatibility
430
+
431
+ = 1.2.0 (2014.06.25) =
432
+ - Bug fixes
433
+ - Contacts with default "contact status" were not showing up in the contact list
434
+ - WordPress admin backends secured with SSL can now be used with Leadin
435
+ - Namespaced the referrer parsing library for the Sources widget
436
+
437
+ = Enhancements =
438
+ - Leadin VIP program
439
+
440
+ = 1.1.1 (2014.06.20) =
441
+ - Bug fixes
442
+ - Emergency bug fix on activation caused by broken SVN merging
443
+
444
+ = 1.1.0 (2014.06.20) =
445
+ - Bug fixes
446
+ - Leadin subscriber email confirmations were not sending
447
+ - Removed smart contact segmenting for leads
448
+
449
+ = Enhancements =
450
+ - Added more contact status types for contacted + customer
451
+ - Setup collection for form IDs + classes
452
+
453
+ = 1.0.0 (2014.06.12) =
454
+ - Bug fixes
455
+ - Fixed sort by visits in the contacts list
456
+
457
+ = Enhancements =
458
+ - Contacts filtering
459
+ - Stats dashboard
460
+ - Sources
461
+
462
+ = 0.10.0 (2014.06.03) =
463
+ - Bug fixes
464
+ - Fixed original referrer in contact timeline
465
+ - Fixed unnecessary queries on contact timeline
466
+ - Only run the update check if the version number is different than the saved number
467
+ - Remove "fakepath" from file path text in uploaded file input types
468
+
469
+ = Enhancements =
470
+ - Expire the subscribe cookie after a few weeks
471
+ - Ability to disable a subscribe notification
472
+ - Added jQuery validation to the subscribe pop-up
473
+ - Multi-select input support
474
+ - Block forms with credit card fields from capturing contact information
475
+ - Updated contact timeline views
476
+ - Updated new contact notification emails
477
+
478
+ = 0.9.3 (2014.05.19) =
479
+ - Bug fixes
480
+ - Fix for duplicate values being stored in the active power-ups option
481
+
482
+ = 0.9.2 (2014.05.16) =
483
+
484
+ = Enhancements =
485
+ - Overhaul of settings page to make it easier to see which settings go with each power-up
486
+ - Launched Leadin Beta Program
487
+
488
+ = 0.9.1 (2014.05.14) =
489
+ - Bug fixes
490
+ - Fixed pop-up location dropdown not defaulting to saved options value
491
+ - Hooked subscribe widget into get_footer action instead of loop_end filter
492
+
493
+ = 0.9.0 (2014.05.12) =
494
+ - Bug fixes
495
+ - Remove leadin-css file enqueue call
496
+
497
+ = Enhancements =
498
+ - Show faces of people who viewed a post/page in the editor
499
+ - Add background color to avatars so they are easier to see
500
+ - Various UI fixes
501
+
502
+ = 0.8.5 (2014.05.08) =
503
+ - Bug fixes
504
+ - Fixed broken contact notification emails
505
+
506
+ = 0.8.4 (2014.05.07) =
507
+ - Bug fixes
508
+ - Fixed HTML encoding of apostrophes and special characters in the database for page titles
509
+
510
+ = Enhancements =
511
+ - Added ability to toggle subscribe widget on posts, pages, archives or the home page
512
+ - Sort contacts by last visit
513
+
514
+ = 0.8.3 (2014.05.06) =
515
+ - Bug fixes
516
+ - Merge duplicate contacts into one record
517
+ - Remove url parameters from source links in contact list
518
+ - Downgrade use of singletons so classes are compatible with PHP 5.2
519
+
520
+ = Enhancements =
521
+ - Swap out delete statements in favor of binary "deleted" flags to minimize data loss risk
522
+ - Sort contacts by last visit
523
+
524
+ = 0.8.2 (2014.05.02) =
525
+ - Bug fixes
526
+ - Removed namespace usage in favor or a low-tech work around to be compliant with PHP 5.2 and lower
527
+
528
+ = 0.8.1 (2014.04.30) =
529
+ - Bug fixes
530
+ - Namespaced duplicate classes
531
+
532
+ = 0.8.0 (2014.04.30) =
533
+ - Bug fixes
534
+ - Fix scrolling issue with subscribe pop-up
535
+ - Duplicate class bug fixes
536
+
537
+ = Enhancements =
538
+ - Add optional first name, last name and phone fields for subscribe pop-up
539
+ - Change out contact notification emails to be from settings email address
540
+ - Ability to disable contact notification emails
541
+ - Constant Contact list sync power-up
542
+ - Sync optional contact fields (name + phone) to email service provider power-ups
543
+
544
+ = 0.7.2 (2014.04.18) =
545
+ - Bug fixes
546
+ - Fix contact deletion bug
547
+ - Implement data recovery fix for contacts
548
+ - Bug fixes to contact merging
549
+
550
+
551
+ = 0.7.1 (2014.04.11) =
552
+ - Bug fixes
553
+ - SVN bug fix that did not add the MailChimp List sync power-up
554
+
555
+ = 0.7.0 (2014.04.10) =
556
+
557
+ = Enhancements =
558
+ - MailChimp List Sync power-up
559
+ - Added new themes (bottom right, bottom left, top and pop-up) to the WordPress Subscribe Widget power-up
560
+
561
+ = 0.6.2 (2014.04.07) =
562
+ - Bug fixes
563
+ - Fixed activation error for some installs by removing error output
564
+ - MySQL query optimizations
565
+ - Fixed bug with MySQL V5.0+ by adding default NULL values for insert statements on contacts table
566
+ - Changed title for returning lead email notifications
567
+ - Setting to change button label on
568
+
569
+ = Enhancements =
570
+ - Added ability to change button label on subscribe widget
571
+
572
+ = 0.6.1 (2014.03.12) =
573
+ - Bug fixes
574
+ - Updated read me.txt file
575
+ - Updated screenshots
576
+
577
+ = 0.6.0 (2014.03.07) =
578
+ - Bug fixes
579
+ - Remove in-house plugin updating functionality
580
+ - Original referrer is always the server url, not the HTTP referrer
581
+ - Strip slashes from title tags
582
+ - Number of contacts does not equal leads + commenters + subscribers
583
+ - Modals aren't bound to forms after page load
584
+ - Fix bug with activating + reactivating the plugin overwriting the saved settings
585
+ - Override button styles for Subscribe Pop-up widget
586
+
587
+ = Enhancements =
588
+ - Improved readability on new lead notification emails
589
+ - Confirmation email added for new subscribers to the Leadin Subscribe Pop-up
590
+ - Updated screenshots
591
+ - Improved onboarding flow
592
+ - Deleted unused and deprecated files
593
+
594
+ = 0.5.1 (2014.03.03) =
595
+ - Bug fixes
596
+ - Fixed Subscribe Pop-up automatically enabling itself
597
+
598
+ = 0.5.0 (2014.02.25) =
599
+ - Bug fixes
600
+ - Add (blank page title tag) to emails and contact timeline for blank page titles
601
+ - Fix link on admin nav menu bar to link to contact list
602
+ - Ignore lead notifications and subscribe popup on login page
603
+ - Saving an email no longer overwrites all the Leadin options
604
+ - Added live chat support
605
+
606
+ = Enhancements =
607
+ - New power-ups page
608
+ - Leadin Subscribe integrated into plugin as a power-up
609
+ - Improved contact history styling + interface
610
+ - Added visit, pageview and submission stats to the contact view
611
+ - Added Live Chat into the Leadin WordPress admin screens
612
+ - New Leadin icons for WordPress sidebar and admin nav menu
613
+
614
+ = 0.4.6 (2013.02.11) =
615
+ - Bug fixes
616
+ - Fix table sorting for integers
617
+ - Bug fixes to contact type headings
618
+ - Bug fix "Select All" export
619
+ - Bug fix for CSS "page views" hover triangle breaking to next line
620
+ - Backwards compatibility for < jQuery 1.7.0
621
+ - Add Leadin link to admin bar
622
+
623
+ = Enhancements =
624
+ - New onboarding flow
625
+
626
+ = 0.4.5 (2013.01.30) =
627
+ = Enhancements =
628
+ - Integration with Leadin Subscribe
629
+
630
+ = 0.4.4 (2013.01.24) =
631
+ - Bug fixes
632
+ - Bind submission tracking on buttons and images inside of forms instead of just submit input types
633
+
634
+ = Enhancements =
635
+ - Change out screenshots to obfiscate personal information
636
+
637
+ = 0.4.3 (2013.01.13) =
638
+ - Bug fixes
639
+ - Fixed Leadin form submission inserts for comments
640
+ - Resolved various silent PHP warnings in administrative dashboard
641
+ - Fixed Leadin updater class to be compatible with WP3.8
642
+ - Improved contact merging logic to be more reliable
643
+
644
+ = Enhancements =
645
+ - Improved onboarding flow
646
+ - Optimized form submission catching + improved performance
647
+
648
+ = 0.4.2 (2013.12.30) =
649
+ - Bug fixes
650
+ - Change 'contact' to 'lead' in the contacts table
651
+ - Fixed emails always sending to the admin_email
652
+ - Tie historical events to new lead when an email is submitted multiple times with different tracking codes
653
+ - Select leads, commenters and subscribers on distinct email addresses
654
+ - Fixed timeline order to show visit, then a form submission, then subsequent visits
655
+
656
+ = Enhancements =
657
+ - Added url for each page views in the contact timeline
658
+ - Added source for each visit event
659
+ - Tweak colors for contact timeline
660
+ - Default the Leadin menu to the contacts page
661
+
662
+ = 0.4.1 (2013.12.18) =
663
+ - Bug fixes
664
+ - Removed Leadin header from the contact timeline view
665
+ - Updated the wording on the menu view picker above contacts list
666
+ - Remove pre-mp6 styles if MP6 plugin is activated
667
+ - Default totals leads/comments = 0 when leads table is empty instead of printing blank integer
668
+ - Legacy visitors in table have 0 visits because session support did not exist. Default to 1
669
+ - Update ouput for the number of comments to be equal to total_comments, not total_leads
670
+ - Added border to pre-mp6 timeline events
671
+
672
+ = 0.4.0 (2013.12.16) =
673
+ - Bug fixes
674
+ - Block admin comment replies from creating a contact
675
+ - Fixed faulty sorting by Last visit + Created on dates in contacts list
676
+
677
+ = Enhancements =
678
+ - Timeline view of a contact history
679
+ - New CSS styles for contacts table
680
+ - Multiple email address support for new lead/comment emails
681
+ - Integration + testing for popular WordPress form builder plugins
682
+ - One click updates for manually hosted plugin
683
+
684
+ = 0.3.0 (2013.12.09) =
685
+ - Bug fixes
686
+ - HTML encoded page titles to fix broken HTML characters
687
+ - Strip slashes from page titles in emails
688
+
689
+ = Enhancements =
690
+ - Created separate Leadin menu in WordPress admin
691
+ - CRM list of all contacts
692
+ - Added ability to export list of contacts
693
+ - Leadin now distinguishes between a contact requests and comment submissions
694
+ - Added link to CRM list inside each contact/comment email
695
+
696
+ = 0.2.0 (2013.11.26) =
697
+ - Bug fixes
698
+ - Broke up page view history by session instead of days
699
+ - Fixed truncated form submission titles
700
+ - Updated email headers
701
+
702
+ = Enhancements =
703
+ - Plugin now updates upon activation and keeps record of version
704
+ - Added referral source to each session
705
+ - Added link to page for form submissions
706
+ - Updated email subject line
707
+ - Added social media avatars to emails
708
+
709
+ = 0.1.0 (2013.11.22) =
710
+ - Plugin released
screenshot-1.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
screenshot-3.png ADDED
Binary file
screenshot-4.png ADDED
Binary file
screenshot-5.png ADDED
Binary file