HubSpot – Free Marketing Plugin for WordPress - Version 4.6.1

Version Description

(2016.03.23) = - Changed URL where Leadin's JavaScript loads from. This should help with customers who were experiencing blank screens due to overzealous adblocking - Updated readme

Download this release

Release Info

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

Code changes from version 4.6.0 to 4.6.1

admin/leadin-admin.php ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ add_submenu_page('leadin', 'Contacts', 'Contacts', 'activate_plugins', 'leadin_contacts', array($this, 'leadin_build_app'));
101
+ add_submenu_page('leadin', 'Settings', 'Settings', 'activate_plugins', 'leadin_settings', array($this, 'leadin_build_app'));
102
+
103
+ $submenu['leadin'][0][0] = 'Dashboard';
104
+
105
+ if (!isset($_GET['page']) || $_GET['page'] != ('leadin' || 'leadin_settings' || 'leadin_contacts')) {
106
+ if (!get_option('leadin_portalId'))
107
+ $li_pointers = new LI_Pointers(TRUE);
108
+ //else if ( ! get_option('leadin_portalId') && $options )
109
+ //$li_pointers = new LI_Pointers(FALSE);
110
+ }
111
+ }
112
+
113
+ //=============================================
114
+ // Settings Page
115
+ //=============================================
116
+
117
+ /**
118
+ * Adds setting link for Leadin to plugins management page
119
+ *
120
+ * @param array $links
121
+ * @return array
122
+ */
123
+ function leadin_plugin_settings_link($links)
124
+ {
125
+ $url = get_admin_url(get_current_blog_id(), 'admin.php?page=leadin_settings');
126
+ $settings_link = '<a href="' . $url . '">Settings</a>';
127
+ array_unshift($links, $settings_link);
128
+ return $links;
129
+ }
130
+
131
+ /**
132
+ * Creates leadin app
133
+ */
134
+
135
+ function leadin_build_app()
136
+ {
137
+ global $wp_version;
138
+
139
+ echo '<div id="leadin" class="wrap ' . ($wp_version < 3.8 && !is_plugin_active('mp6/mp6.php') ? 'pre-mp6' : '') . '"></div>';
140
+
141
+ wp_enqueue_style('leadin-css');
142
+ wp_enqueue_script('leadin-app');
143
+
144
+ }
145
+
146
+ function update_option_leadin_options_callback($old_value, $new_value)
147
+ {
148
+ }
149
+
150
+ //=============================================
151
+ // Admin Styles & Scripts
152
+ //=============================================
153
+
154
+ /**
155
+ * Adds admin javascript
156
+ */
157
+ function add_leadin_admin_scripts()
158
+ {
159
+ global $pagenow;
160
+ global $wp_roles;
161
+ global $wp_version;
162
+
163
+ $ajaxUrl = get_admin_url(get_current_blog_id(), 'admin-ajax.php');
164
+
165
+ $leadin_config = array(
166
+ 'portalId' => get_option('leadin_portalId'),
167
+ 'hapikey' => get_option('leadin_hapikey'),
168
+ 'env' => constant('LEADIN_ENV'),
169
+ 'user' => $this->leadin_get_user_for_tracking(),
170
+ 'allRoles' => $wp_roles->get_names(),
171
+ 'leadinPluginVersion' => constant('LEADIN_PLUGIN_VERSION'),
172
+ 'wpVersion' => $wp_version,
173
+ 'siteUrl' => get_site_url(),
174
+ 'adminEmail' => get_option('admin_email'),
175
+ 'siteName' => get_bloginfo('name'),
176
+ 'adminBaseUrl' => get_admin_url(get_current_blog_id(), 'admin.php'),
177
+ 'leadinPluginDirectory' => LEADIN_PLUGIN_SLUG,
178
+ 'ajaxUrl' => is_ssl() ? str_replace('http:', 'https:', $ajaxUrl) : str_replace('https:', 'http:', $ajaxUrl),
179
+ 'locale' => get_locale(),
180
+ 'timezone' => get_option('gmt_offset'),
181
+ 'timezoneString' => get_option('timezone_string') // If not set by the user manually it will be an empty string
182
+ );
183
+
184
+ if (($pagenow == 'admin.php' && isset($_GET['page']) && strstr($_GET['page'], 'leadin'))) {
185
+ wp_register_script('leadin-head-js', leadin_get_resource_url('/bundle/head/head.js'), FALSE, FALSE, FALSE);
186
+ wp_localize_script('leadin-head-js', 'leadin_config', $leadin_config);
187
+ wp_enqueue_script('leadin-head-js');
188
+
189
+ wp_register_script('leadin-app', leadin_get_resource_url('/bundle/app.js'), array('backbone'), FALSE, TRUE);
190
+ wp_register_style('leadin-css', leadin_get_resource_url('/bundle/app.css'));
191
+ }
192
+ }
193
+
194
+ //=============================================
195
+ // Internal Class Functions
196
+ //=============================================
197
+
198
+ function leadin_get_user_for_tracking()
199
+ {
200
+ $leadin_user = leadin_get_current_user();
201
+ $tracking_leadin_user = array(
202
+ 'hashed_wp_url' => $leadin_user['user_id'],
203
+ 'name' => $leadin_user['alias'],
204
+ 'email' => $leadin_user['email'],
205
+ 'wp-url' => $leadin_user['wp_url'],
206
+ 'wp-version' => $leadin_user['wp_version'],
207
+ 'li-source' => LEADIN_SOURCE,
208
+ 'website' => $leadin_user['wp_url'],
209
+ 'company' => $leadin_user['wp_url'],
210
+ 'utm_source' => $leadin_user['utm_source'],
211
+ 'utm_medium' => $leadin_user['utm_medium'],
212
+ 'utm_term' => $leadin_user['utm_term'],
213
+ 'utm_content' => $leadin_user['utm_term'],
214
+ 'utm_campaign' => $leadin_user['utm_campaign'],
215
+ 'referral_source' => $leadin_user['referral_source'],
216
+ 'user_email' => $leadin_user['user_email']
217
+ );
218
+ return $tracking_leadin_user;
219
+ }
220
+
221
+ /**
222
+ * GET and set url actions into readable strings
223
+ * @return string if actions are set, bool if no actions set
224
+ */
225
+ function leadin_current_action()
226
+ {
227
+ if (isset($_REQUEST['action']) && -1 != $_REQUEST['action'])
228
+ return $_REQUEST['action'];
229
+
230
+ if (isset($_REQUEST['action2']) && -1 != $_REQUEST['action2'])
231
+ return $_REQUEST['action2'];
232
+
233
+ return FALSE;
234
+ }
235
+
236
+ }
237
+
238
+ ?>
icon.svg ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="130px" height="130px" viewBox="0 0 130 130" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.0.4 (8053) - http://www.bohemiancoding.com/sketch -->
4
+ <title>Slice 4</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <rect id="Rectangle-109" fill="#B1E8E7" sketch:type="MSShapeGroup" x="0" y="0" width="130" height="130"></rect>
9
+ <g id="Rectangle-111-+-Rectangle-110-+-Rectangle-113" sketch:type="MSLayerGroup" transform="translate(18.000000, 33.000000)">
10
+ <path d="M4.26075895,41.543163 L0.791425979,52.0120161 C-0.662369811,56.3989038 2.1503969,59.9551791 7.07800515,59.9551791 L24.9158526,59.9551791 L33.6498458,33.6 L15.8119984,33.6 C10.8862208,33.6 5.7151839,37.1543767 4.26075895,41.543163 Z" id="Rectangle-109" fill="#FAB284" sketch:type="MSShapeGroup"></path>
11
+ <path d="M35.1192718,27.9976601 L24.6309271,59.996 L51.2975938,59.996 L64.4073937,20 L46.6296064,20 C41.7204139,20 36.5657825,23.5845768 35.1192718,27.9976601 Z" id="Rectangle-110" fill="#F67A33" sketch:type="MSShapeGroup"></path>
12
+ <path d="M67.8858871,7.99854961 L51.0185185,60 L68.6111206,60 C73.4691757,60 78.5701551,56.4152934 80.0018444,52.0014504 L94.274776,7.99854961 C95.707644,3.58107264 92.9327867,0 88.0729261,0 L79.2766109,0 C74.4185558,0 69.3175764,3.58470658 67.8858871,7.99854961 Z" id="Rectangle-111" fill="#F44800" sketch:type="MSShapeGroup"></path>
13
+ </g>
14
+ </g>
15
+ </svg>
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_settings()';
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_settings() {
97
+ window.location.href = "<?php echo get_bloginfo('wpurl'); ?>/wp-admin/admin.php?page=leadin_settings";
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_settings";
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,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_EMBED_DOMAIN');
45
+ $portalId = get_option('leadin_portalId');
46
+
47
+ if (empty($portalId)) {
48
+ echo '<!-- Leadin embed JS disabled as a portalId has not yet been configured -->';
49
+ return;
50
+ }
51
+
52
+ $embedUrl = '//' . $embedDomain . '/js/v1/' . $portalId . '.js';
53
+
54
+
55
+ if (is_single())
56
+ $page_type = 'post';
57
+ else if (is_front_page())
58
+ $page_type = 'home';
59
+ else if (is_archive())
60
+ $page_type = 'archive';
61
+ else if ($this->leadin_is_login_or_register_page())
62
+ $page_type = 'login';
63
+ else if (is_page())
64
+ $page_type = 'page';
65
+ else
66
+ $page_type = 'other';
67
+
68
+ $leadin_wordpress_info = array(
69
+ 'userRole' => (is_user_logged_in()) ? leadin_get_user_role() : 'visitor',
70
+ 'pageType' => $page_type,
71
+ 'leadinPluginVersion' => LEADIN_PLUGIN_VERSION
72
+ );
73
+
74
+ wp_register_script('leadin-embed-js', $embedUrl, array('jquery'), FALSE, TRUE);
75
+ wp_localize_script('leadin-embed-js', 'leadin_wordpress', $leadin_wordpress_info);
76
+ wp_enqueue_script('leadin-embed-js');
77
+ }
78
+
79
+ function leadin_add_embed_script_attributes($tag, $handle)
80
+ {
81
+ if ('leadin-embed-js' !== $handle)
82
+ return $tag;
83
+ else
84
+ return str_replace(' src', ' async defer crossorigin="use-credentials" src', $tag);
85
+ }
86
+
87
+ /**
88
+ * Adds Leadin link to top-level admin bar
89
+ */
90
+ function add_leadin_link_to_admin_bar($wp_admin_bar)
91
+ {
92
+ global $wp_version;
93
+
94
+ if (!current_user_can('activate_plugins')) {
95
+ if (!array_key_exists('li_grant_access_to_' . leadin_get_user_role(), get_option('leadin_options')))
96
+ return FALSE;
97
+ }
98
+
99
+
100
+ $leadin_icon = '<img src="' . LEADIN_PATH . '/images/leadin-icon-16x16-white.png' . '">';
101
+
102
+ $args = array(
103
+ 'id' => 'leadin-admin-menu',
104
+ '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
105
+ 'parent' => FALSE, // set parent to false to make it a top level (parent) node
106
+ 'href' => get_bloginfo('wpurl') . '/wp-admin/admin.php?page=leadin',
107
+ 'meta' => array('title' => 'Leadin')
108
+ );
109
+
110
+ $wp_admin_bar->add_node($args);
111
+ }
112
+
113
+ public static function leadin_is_login_or_register_page()
114
+ {
115
+ return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'));
116
+ }
117
+ }
118
+
119
+ //=============================================
120
+ // Leadin Init
121
+ //=============================================
122
+
123
+ 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-functions.php ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ global $current_user;
33
+
34
+ get_currentuserinfo();
35
+ $li_user_id = md5(get_bloginfo('wpurl'));
36
+
37
+ $li_options = get_option('leadin_options');
38
+ $leadinPortalId = get_option('leadin_portalId');
39
+
40
+ if (isset($li_options['li_email'])) {
41
+ $li_user_email = $li_options['li_email'];
42
+ } else {
43
+ $li_user_email = $current_user->user_email;
44
+ }
45
+
46
+ $leadin_user = array(
47
+ 'user_id' => $li_user_id,
48
+ 'email' => $li_user_email,
49
+ 'alias' => $current_user->display_name,
50
+ 'wp_url' => get_bloginfo('wpurl'),
51
+ 'li_version' => LEADIN_PLUGIN_VERSION,
52
+ 'wp_version' => $wp_version,
53
+ 'user_email' => $current_user->user_email
54
+ );
55
+
56
+ if (defined('LEADIN_REFERRAL_SOURCE'))
57
+ $leadin_user['referral_source'] = LEADIN_REFERRAL_SOURCE;
58
+ else
59
+ $leadin_user['referral_source'] = '';
60
+
61
+ if (defined('LEADIN_UTM_SOURCE'))
62
+ $leadin_user['utm_source'] = LEADIN_UTM_SOURCE;
63
+ else
64
+ $leadin_user['utm_source'] = '';
65
+
66
+ if (defined('LEADIN_UTM_MEDIUM'))
67
+ $leadin_user['utm_medium'] = LEADIN_UTM_MEDIUM;
68
+ else
69
+ $leadin_user['utm_medium'] = '';
70
+
71
+ if (defined('LEADIN_UTM_TERM'))
72
+ $leadin_user['utm_term'] = LEADIN_UTM_TERM;
73
+ else
74
+ $leadin_user['utm_term'] = '';
75
+
76
+ if (defined('LEADIN_UTM_CONTENT'))
77
+ $leadin_user['utm_content'] = LEADIN_UTM_CONTENT;
78
+ else
79
+ $leadin_user['utm_content'] = '';
80
+
81
+ if (defined('LEADIN_UTM_CAMPAIGN'))
82
+ $leadin_user['utm_campaign'] = LEADIN_UTM_CAMPAIGN;
83
+ else
84
+ $leadin_user['utm_campaign'] = '';
85
+
86
+ if (!empty($leadinPortalId)) {
87
+ $leadin_user['portal_id'] = $leadinPortalId;
88
+ }
89
+
90
+ return $leadin_user;
91
+ }
92
+
93
+ /**
94
+ * Logs a debug statement to /wp-content/debug.log
95
+ *
96
+ * @param string
97
+ */
98
+ function leadin_log_debug($message)
99
+ {
100
+ if (WP_DEBUG === TRUE) {
101
+ if (is_array($message) || is_object($message))
102
+ error_log(print_r($message, TRUE));
103
+ else
104
+ error_log($message);
105
+ }
106
+ }
107
+
108
+ /**
109
+ * Returns the user role for the current user
110
+ *
111
+ */
112
+ function leadin_get_user_role()
113
+ {
114
+ global $current_user;
115
+
116
+ $user_roles = $current_user->roles;
117
+ $user_role = array_shift($user_roles);
118
+
119
+ return $user_role;
120
+ }
121
+
122
+ ?>
inc/leadin-registration.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
26
+ error_log($data['hapikey']);
27
+
28
+ if (empty($newPortalId) || empty($newHapiKey)) {
29
+ error_log("Registration error");
30
+ header('HTTP/1.0 400 Bad Request');
31
+ wp_die('{"error": "Registration missing required fields"}');
32
+ }
33
+
34
+ add_option('leadin_portalId', $newPortalId);
35
+ add_option('leadin_hapikey', $newHapiKey);
36
+
37
+ wp_die('{"message": "Success!"}');
38
+ }
39
+
40
+ ?>
leadin.php ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Leadin
4
+ Plugin URI: http://leadin.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: 4.6.1
7
+ Author: Leadin
8
+ Author URI: http://leadin.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', '4.6.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_EMBED_DOMAIN'))
41
+ define('LEADIN_EMBED_DOMAIN', "js.leadin.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 . '/admin/leadin-admin.php');
56
+
57
+ require_once(LEADIN_PLUGIN_DIR . '/inc/class-leadin.php');
58
+
59
+
60
+ //=============================================
61
+ // Hooks & Filters
62
+ //=============================================
63
+
64
+ /**
65
+ * Activate the plugin
66
+ */
67
+ function activate_leadin($network_wide)
68
+ {
69
+
70
+ // Check activation on entire network or one blog
71
+ if (is_multisite() && $network_wide) {
72
+ global $wpdb;
73
+
74
+ // Get this so we can switch back to it later
75
+ $current_blog = $wpdb->blogid;
76
+ // For storing the list of activated blogs
77
+ $activated = array();
78
+
79
+ // Get all blogs in the network and activate plugin on each one
80
+ $q = "SELECT blog_id FROM $wpdb->blogs";
81
+ $blog_ids = $wpdb->get_col($q);
82
+ foreach ($blog_ids as $blog_id) {
83
+ switch_to_blog($blog_id);
84
+ add_leadin_defaults();
85
+ $activated[] = $blog_id;
86
+ }
87
+
88
+ // Switch back to the current blog
89
+ switch_to_blog($current_blog);
90
+
91
+ // Store the array for a later function
92
+ update_site_option('leadin_activated', $activated);
93
+ } else {
94
+ add_leadin_defaults();
95
+ }
96
+ }
97
+
98
+ /**
99
+ * Check Leadin installation and set options
100
+ */
101
+ function add_leadin_defaults()
102
+ {
103
+ global $wpdb;
104
+ $options = get_option('leadin_options');
105
+
106
+ if (($options['li_installed'] != 1) || (!is_array($options))) {
107
+ $opt = array(
108
+ 'li_installed' => 1,
109
+ 'leadin_version' => LEADIN_PLUGIN_VERSION,
110
+ 'li_email' => get_bloginfo('admin_email'),
111
+ 'li_updates_subscription' => 1,
112
+ 'onboarding_step' => 1,
113
+ 'onboarding_complete' => 0,
114
+ 'ignore_settings_popup' => 0,
115
+ 'data_recovered' => 1,
116
+ 'delete_flags_fixed' => 1,
117
+ 'beta_tester' => 0,
118
+ 'converted_to_tags' => 1,
119
+ 'names_added_to_contacts' => 1
120
+ );
121
+
122
+ // Add the Pro flag if this is a pro installation
123
+ if ((defined('LEADIN_UTM_SOURCE') && LEADIN_UTM_SOURCE != 'leadin%20repo%20plugin') || !defined('LEADIN_UTM_SOURCE'))
124
+ $opt['pro'] = 1;
125
+
126
+ // this is a hack because multisite doesn't recognize local options using either update_option or update_site_option...
127
+ if (is_multisite()) {
128
+ $multisite_prefix = (is_multisite() ? $wpdb->prefix : '');
129
+ $q = $wpdb->prepare("
130
+ INSERT INTO " . $multisite_prefix . "options
131
+ ( option_name, option_value )
132
+ VALUES ('leadin_options', %s)", serialize($opt));
133
+ $wpdb->query($q);
134
+ // TODO: Glob settings for multisite
135
+ } else
136
+ update_option('leadin_options', $opt);
137
+
138
+ }
139
+
140
+ setcookie("ignore_social_share", "1", 2592000, "/");
141
+ }
142
+
143
+ /**
144
+ * Deactivate Leadin plugin hook
145
+ */
146
+ function deactivate_leadin($network_wide)
147
+ {
148
+ if (is_multisite() && $network_wide) {
149
+ global $wpdb;
150
+
151
+ // Get this so we can switch back to it later
152
+ $current_blog = $wpdb->blogid;
153
+
154
+ // Get all blogs in the network and activate plugin on each one
155
+ $q = "SELECT blog_id FROM $wpdb->blogs";
156
+ $blog_ids = $wpdb->get_col($q);
157
+ foreach ($blog_ids as $blog_id) {
158
+ switch_to_blog($blog_id);
159
+ }
160
+
161
+ // Switch back to the current blog
162
+ switch_to_blog($current_blog);
163
+ }
164
+ }
165
+
166
+ function activate_leadin_on_new_blog($blog_id, $user_id, $domain, $path, $site_id, $meta)
167
+ {
168
+ global $wpdb;
169
+
170
+ if (is_plugin_active_for_network('leadin/leadin.php')) {
171
+ $current_blog = $wpdb->blogid;
172
+ switch_to_blog($blog_id);
173
+ add_leadin_defaults();
174
+ switch_to_blog($current_blog);
175
+ }
176
+ }
177
+
178
+ /**
179
+ * Checks the stored database version against the current data version + updates if needed
180
+ */
181
+ function leadin_init()
182
+ {
183
+ $leadin_wp = new WPLeadIn();
184
+ }
185
+
186
+
187
+ add_action('plugins_loaded', 'leadin_init', 14);
188
+
189
+ if (is_admin()) {
190
+ // Activate + install Leadin
191
+ register_activation_hook(__FILE__, 'activate_leadin');
192
+
193
+ // Deactivate Leadin
194
+ register_deactivation_hook(__FILE__, 'deactivate_leadin');
195
+
196
+ // Activate on newly created wpmu blog
197
+ add_action('wpmu_new_blog', 'activate_leadin_on_new_blog', 10, 6);
198
+ }
199
+
200
+ ?>
package.json DELETED
@@ -1,28 +0,0 @@
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,681 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.4.1
6
+ Stable tag: 4.6.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: 4.6.1
71
+ - Current version release: 2016-03-23
72
+
73
+ = 4.6.1 (2016.03.23) =
74
+ - Changed URL where Leadin's JavaScript loads from. This should help with customers who were experiencing blank screens due to overzealous adblocking
75
+ - Updated readme
76
+
77
+ = 4.5.0 (2016.01.14) =
78
+ - Renamed "stats" to "dashboard" in the menu
79
+ - Fixed a bug where deactivating the plugin in multisite mode would cause a PHP error
80
+ - Removed old PHP that was used before Leadin was hosted in an iFrame, as it is now
81
+ - Updated screenshots
82
+
83
+ = 4.4.0 (2015.12.14) =
84
+ - Remove migration code
85
+
86
+ = 4.3.2 (2015.12.02) =
87
+ - Wordpress assets update
88
+
89
+ = 4.3.1 (2015.11.26) =
90
+ - Logo updates
91
+
92
+ = 4.3.0 (2015.09.30) =
93
+ - Load time improvements to the tracking script
94
+
95
+ = 4.2.3 (2015.08.20) =
96
+ - Support widget improvements
97
+
98
+ = 4.2.2 (2015.08.14) =
99
+ - Correctly set the version number in PHP
100
+
101
+ = 4.2.1 (2015.08.13) =
102
+ - Fix detection of front page for popup triggering
103
+ - Update screenshots
104
+
105
+ = 4.2.0 (2015.08.13) =
106
+ - Migration improvements
107
+ - Bug fix to stop showing the setup dialog when setup is in progress
108
+ - Preparatory work to send notification emails in the timezone WordPress is configured in
109
+
110
+ = 4.1.1 (2015.07.14) =
111
+ - Bug fix for upgraded installs from the plugin directory running through the migration process
112
+
113
+ = 4.1.0 (2015.07.10) =
114
+ - Migration script added to move data from MySQL to Leadin Cloud
115
+
116
+ = 4.0.2 (2015.07.09) =
117
+
118
+ - Bug fixes
119
+
120
+ - Current version: 4.0.1
121
+ - Current version release: 2015-06-24
122
+
123
+ = 4.0.1 (2015.06.24) =
124
+
125
+ - Bug fixes
126
+ - Added support for custom page types
127
+ - Stopped using SVG icons due to performance problems
128
+ - Fixed signup error in PHP < 5.4 on browsers that don't support CORS
129
+
130
+ = 4.0.0 (2015.05.20) =
131
+
132
+ - Leadin Cloud launched
133
+
134
+ = 3.1.8 (2015.05.15) =
135
+
136
+ - Added email connector sync to onboarding
137
+ - Sources now check the UTM tags on the first page view visit
138
+ - Privacy policy added to plugin
139
+
140
+ - Bug fixes
141
+ - Fixed dismiss button conflict on WordPress notifications
142
+ - Icon styles no longer conflict with other plugins
143
+ - Deleted contacts no longer show up in the dashboard
144
+ - Popup sync now looks at the actual inputs instead of the field names so it’ll work in other languages
145
+ - Popup labels now work in IE
146
+ - Fixed bug with SendGrid email delivery for Leadin Pro
147
+
148
+ = 3.1.7 (2015.04.15) =
149
+ = Enhancements =
150
+ - Added debug mode
151
+ - Default subscribe confirmation to off
152
+
153
+ - Bug fixes
154
+ - Fixed overly large Leadin icon in admin bar on front end for logged in users
155
+
156
+ = 3.1.6 (2015.03.31) =
157
+ = Enhancements =
158
+ - Show name on contact timeline instead of email address if available
159
+ - New contact timeline page styles
160
+ - Ability to change color in popup
161
+ - Popup now works on mobile
162
+
163
+ - Bug fixes
164
+ - Fixed dashicons not loading in < WP 3.7
165
+ - Completely fix all the default object warnings for the contact lookups
166
+ - Swap in non-svg logo if allow_url_fopen not toggled on in php.ini
167
+ - Fixed Pro email delivery bugs
168
+
169
+ = 3.1.5 (2015.03.20) =
170
+ - Bug fixes
171
+ - Changed out call to __DIR__ magic constant which wasn’t implemented until PHP 5.3 in favor of dirname(__FILE__)
172
+
173
+ = 3.1.4 (2015.03.17) =
174
+ = Enhancements =
175
+ - Intercom added to plugin for in-app support
176
+ - Onboarding improved for non-setup installs
177
+ - Contact notifications are now sent through email delivery service to improve deliverability
178
+
179
+ - Bug fixes
180
+ - Namespaced AWeber oauth libraries with LI_ prefix to avoid duplicate class warnings
181
+ - SVG icon permanently fixed for servers that don't natively support that file type
182
+ - Check if database options are set for subscribe preview button
183
+ - Added in check for default leadin_options in case they were deleted and recreate them if they are not there
184
+ - Add in checks for the contact lookups to account for default object warnings
185
+ -
186
+
187
+ = 3.1.3 (2015.02.19) =
188
+ = Enhancements =
189
+ - 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
190
+
191
+ - Bug fixes
192
+ - Fixed SVG icon
193
+ - Fixed the default object warnings in class-leadin-contact for the enrichment lookups
194
+ - Tested NinjaPopups and added to readme as unsupported form plugin
195
+ - "Namespace" AWeber with "LI_" prefix to avoid conflicts
196
+
197
+ = 3.1.2 (2015.01.26) =
198
+ = Enhancements =
199
+ - Tested JotForm + added compatibility to the ReadMe file
200
+
201
+ - Bug fixes
202
+ - Add in support for like_escape for < WordPress 4.0
203
+ - Add first + last names to bulk MailChimp connector
204
+ - Remove rogue WPDB prepare in tag list table
205
+ - Check for existence of ESP connector when pushing to an email list
206
+ - Bug fix for multisite installs with broken onboarding
207
+
208
+ = 3.1.1 (2014.01.20) =
209
+ = Enhancements =
210
+ - Added ability to toggle Leadin data access by user role
211
+ - Hide Leadin nav menu item for user roles without access to Leadin data
212
+ - Discontinued and disabled the beta program
213
+
214
+ - Bug fixes
215
+ - Fixed broken onboarding in WordPress Multisite after adding a new site to the network
216
+ - Contact totals in tag editor now link to tagged list
217
+
218
+ = 3.1.0 (2015.1.06) =
219
+ = Enhancements =
220
+ - GetResponse, Campaign Monitor and AWeber integrations launched
221
+
222
+ = 3.0.0 (2014.12.10) =
223
+ = Enhancements =
224
+ - Jumping to version 3.0.0 to indefinitely override repository version of Leadin
225
+
226
+ = Leadin 2.2.7 - 2.2.11 =
227
+
228
+ *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.*
229
+
230
+ = 2.2.11 (2015.02.18) =
231
+
232
+ = Enhancements =
233
+ - 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
234
+
235
+ - Bug fixes
236
+ - Fixed SVG icon
237
+ - Fixed the default object warnings in class-leadin-contact for the enrichment lookups
238
+ - Tested NinjaPopups and added to readme as unsupported form plugin
239
+
240
+
241
+ = 2.2.10 (2015.01.26) =
242
+ = Enhancements =
243
+ - Tested JotForm + added compatibility to the ReadMe file
244
+
245
+ - Bug fixes
246
+ - Add in support for like_escape for < WordPress 4.0
247
+ - Add first + last names to bulk MailChimp connector
248
+ - Remove rogue WPDB prepare in tag list table
249
+ - Check for existence of ESP connector when pushing to an email list
250
+ - Bug fix for multisite installs with broken onboarding
251
+
252
+ = 2.2.9 (2014.01.20) =
253
+ = Enhancements =
254
+ - Added ability to toggle Leadin data access by user role
255
+ - Hide Leadin nav menu item for user roles without access to Leadin data
256
+ - Discountinued and disabled the beta program
257
+
258
+ - Bug fixes
259
+ - Fixed broken onboarding in WordPress Multisite after adding a new site to the network
260
+ - Contact totals in tag editor now link to tagged list
261
+
262
+ = 2.2.8 (2014.12.15) =
263
+ = Enhancements =
264
+ - Added in CTAs for Leadin Pro
265
+
266
+ = 2.2.7 (2014.12.09) =
267
+ - Bug fixes
268
+ - Fixing upgrade process from 2.2.6
269
+
270
+ = 2.2.6 (2014.12.08) =
271
+ = Enhancements =
272
+ - Added names to contact export
273
+ - Added “tagged as” to contact notification email subject lines
274
+
275
+ - Bug fixes
276
+ - Fixed bug with non-tagged contacts being added to tagged lists
277
+
278
+ = 2.2.6 (2014.12.08) =
279
+ = Enhancements =
280
+ - Contact Lookup power-up
281
+ - Added names to contact exports
282
+ - Added “tagged as” to the email subject lines
283
+
284
+ - Bug fixes
285
+ - Fixed bug where Leadin would add non-tagged emails to ESP lists when it was not supposed to do those contacts
286
+
287
+ = 2.2.5 (2014.11.20) =
288
+ - Bug fixes
289
+ - Fixes to bulk action labels
290
+ - Fixed Add Tag button
291
+
292
+ = 2.2.4 (2014.10.31) =
293
+ - Bug fixes
294
+ - Patch for 2.2.3 database structure. We forgot to include the new form_hashkey field in the database upgrade
295
+
296
+ = 2.2.3 (2014.10.31) =
297
+ = Enhancements =
298
+ - Added "Tags" link to sidebar menu
299
+ - Added the applied tags on form submission timeline events
300
+ - Added the form selector on submission events in the timeline
301
+ - Added language in the subject of the contact notification emails to indicate returning vs. new visitors
302
+ - Leadin will now detect first names + last names and store them on the contact + push to ESP connectors
303
+ - Retroactively apply names to all contacts where possible
304
+
305
+ - Bug fixes
306
+ - If a contact changes their email, Leadin will now push the new email to the ESP connectors
307
+ - Added safeguards into all third party libraries to see if they are included already in the WordPress admin
308
+ - Added default Javascript values to the popup form if the get_footer function isn't being called
309
+
310
+ = 2.2.2 (2014.10.16) =
311
+ = Enhancements =
312
+ - Leadin now include the utm_ tags from the original first page view when parsing the sources
313
+
314
+ - Bug fixes
315
+ - Unchecking all the template checkboxes for the popup then saving no longer rechecks them all
316
+ - Added in current_time fix for older versions of WordPress
317
+ - Retooled tag editor to only pull down unique selectors
318
+ - Contact list now will go back to the previous page when clicking the back link
319
+ - Fixed mysterious bug where popup ignored new visitors
320
+ - NOW the subscription confirmation stays checked/unchecked on save (Thanks Kate!)
321
+
322
+ = 2.2.1 (2014.10.01) =
323
+ = Enhancements =
324
+ - Added video from WPApplied to readme file
325
+
326
+ - Bug fixes
327
+ - Page view filters now work in the all contacts list
328
+ - Subscription confirmation box didn't work in settings page if the "homepage" checkbox was unchecked
329
+ - Leadin menu link no longer shows up in the front-end menu bar for non-logged in users
330
+ - Stopped selecting duplicate tags on a contact in the timeline view
331
+ - Select inputs did not pull down the text and instead used the value. Fixed and use text now for selected option
332
+ - Timezones with a database offset on the contact timeline were not correctly fixed in last update
333
+ - Fix to ignore all cURL calls if script isn't present on the server
334
+ - Disable beta program is cURL does not exist on the server
335
+ - Fixed “<- All contacts” link showing up next to back link on a specific contact type in timeline view
336
+
337
+ = 2.2.0 (2014.09.25) =
338
+ = Enhancements =
339
+ - Added ability to ignore logged in user roles from tracking
340
+ - Popup can be previewed on the front end site before saving changes
341
+ - MailChimp Connect checks for faulty API keys and prompts the user to enter in one that works on the tag editor page
342
+ - Email headers for contact notificaitons come from the person who filled in the form
343
+ - Added traffic source URL parameters to contact notification emails
344
+
345
+ - Bug fixes
346
+ - Leadin now accounts for timezones discrepancy on some MySQL databases and offsets to local time
347
+ - Filters are now persistent when clicking the link back to the contact list from a contact timeline
348
+ - cURL dependency no longer prints the raw error to the screen on installation and gracefully disables cURL-dependant features
349
+ - Stats page and contact list totals didn't match up - fixed
350
+
351
+ = 2.1.0 (2014.09.19) =
352
+ = Enhancements =
353
+ - Improved onboarding
354
+ - Added setting include a short description to the popup under the form heading
355
+ - General style improvements to the popup form power-up
356
+
357
+ - Bug fixes
358
+ - Contact filters are now persistent when navigating back to the main contact list from the contact timeline
359
+
360
+ = 2.0.2 (2014.09.09) =
361
+
362
+ - Bug fixes
363
+ - Fix inconsistent sources on stats widgets and contact timeline widgets
364
+ - Onboarding tooltip popup for setting up settings now works correctly
365
+ - Parse out get vars for traffic sources in the contact timeline
366
+
367
+ = 2.0.1 (2014.09.01) =
368
+ = Enhancements =
369
+ - Removed "Who read my post" widget analytics from the post editor
370
+ - Separated backend from frontend code to speed up ajax calls on both sides
371
+
372
+ - Bug fixes
373
+ - Fixed bug when deleting specifically selected contacts looked like all the contacts were deleted on the page refresh
374
+ - Organic traffic and paid traffic sources are now parsing more accurately
375
+ - Credit card forms will add to the timeline now but will block all credit card information
376
+ - Bulk edited tags now push contacts to ESP lists when added
377
+ - Lists with existing contacts retroactively push email addresses to corresponding ESP list
378
+ - Renamed MailChimp Contact Sync + Constant Contact Sync to MailChimp Connect + Constant Contact Connect
379
+ - Fixed returning contacts vs. new contacts in dashboard widget
380
+ - Contact export works again
381
+ - Fixed insecure content warning on SSL
382
+ - Non-administrators no longer can see the Leadin menu links or pages
383
+ - Settings link missing from plugins list page
384
+ - Line break contact notifications previews
385
+ - Setup a mailto link on the contact notification email in the details header
386
+
387
+ = 2.0.0 (2014.08.11) =
388
+ = Enhancements =
389
+ - Create a custom tagged list based on form submission rules
390
+ - Ability to sync tagged contacts to a specific ESP list
391
+ - Filter lists by form selectors
392
+
393
+ - Bug fixes
394
+ - Fix contact export for selected contacts
395
+ - Text area line breaks in the contact notifications now show properly
396
+ - Contact numbers at top of list did not always match number in sidebar - fixed
397
+
398
+ = 1.3.0 (2014.07.14) =
399
+ = Enhancements =
400
+ - Multisite compatibility
401
+
402
+ = 1.2.0 (2014.06.25) =
403
+ - Bug fixes
404
+ - Contacts with default "contact status" were not showing up in the contact list
405
+ - WordPress admin backends secured with SSL can now be used with Leadin
406
+ - Namespaced the referrer parsing library for the Sources widget
407
+
408
+ = Enhancements =
409
+ - Leadin VIP program
410
+
411
+ = 1.1.1 (2014.06.20) =
412
+ - Bug fixes
413
+ - Emergency bug fix on activation caused by broken SVN merging
414
+
415
+ = 1.1.0 (2014.06.20) =
416
+ - Bug fixes
417
+ - Leadin subscriber email confirmations were not sending
418
+ - Removed smart contact segmenting for leads
419
+
420
+ = Enhancements =
421
+ - Added more contact status types for contacted + customer
422
+ - Setup collection for form IDs + classes
423
+
424
+ = 1.0.0 (2014.06.12) =
425
+ - Bug fixes
426
+ - Fixed sort by visits in the contacts list
427
+
428
+ = Enhancements =
429
+ - Contacts filtering
430
+ - Stats dashboard
431
+ - Sources
432
+
433
+ = 0.10.0 (2014.06.03) =
434
+ - Bug fixes
435
+ - Fixed original referrer in contact timeline
436
+ - Fixed unnecessary queries on contact timeline
437
+ - Only run the update check if the version number is different than the saved number
438
+ - Remove "fakepath" from file path text in uploaded file input types
439
+
440
+ = Enhancements =
441
+ - Expire the subscribe cookie after a few weeks
442
+ - Ability to disable a subscribe notification
443
+ - Added jQuery validation to the subscribe pop-up
444
+ - Multi-select input support
445
+ - Block forms with credit card fields from capturing contact information
446
+ - Updated contact timeline views
447
+ - Updated new contact notification emails
448
+
449
+ = 0.9.3 (2014.05.19) =
450
+ - Bug fixes
451
+ - Fix for duplicate values being stored in the active power-ups option
452
+
453
+ = 0.9.2 (2014.05.16) =
454
+
455
+ = Enhancements =
456
+ - Overhaul of settings page to make it easier to see which settings go with each power-up
457
+ - Launched Leadin Beta Program
458
+
459
+ = 0.9.1 (2014.05.14) =
460
+ - Bug fixes
461
+ - Fixed pop-up location dropdown not defaulting to saved options value
462
+ - Hooked subscribe widget into get_footer action instead of loop_end filter
463
+
464
+ = 0.9.0 (2014.05.12) =
465
+ - Bug fixes
466
+ - Remove leadin-css file enqueue call
467
+
468
+ = Enhancements =
469
+ - Show faces of people who viewed a post/page in the editor
470
+ - Add background color to avatars so they are easier to see
471
+ - Various UI fixes
472
+
473
+ = 0.8.5 (2014.05.08) =
474
+ - Bug fixes
475
+ - Fixed broken contact notification emails
476
+
477
+ = 0.8.4 (2014.05.07) =
478
+ - Bug fixes
479
+ - Fixed HTML encoding of apostrophes and special characters in the database for page titles
480
+
481
+ = Enhancements =
482
+ - Added ability to toggle subscribe widget on posts, pages, archives or the home page
483
+ - Sort contacts by last visit
484
+
485
+ = 0.8.3 (2014.05.06) =
486
+ - Bug fixes
487
+ - Merge duplicate contacts into one record
488
+ - Remove url parameters from source links in contact list
489
+ - Downgrade use of singletons so classes are compatible with PHP 5.2
490
+
491
+ = Enhancements =
492
+ - Swap out delete statements in favor of binary "deleted" flags to minimize data loss risk
493
+ - Sort contacts by last visit
494
+
495
+ = 0.8.2 (2014.05.02) =
496
+ - Bug fixes
497
+ - Removed namespace usage in favor or a low-tech work around to be compliant with PHP 5.2 and lower
498
+
499
+ = 0.8.1 (2014.04.30) =
500
+ - Bug fixes
501
+ - Namespaced duplicate classes
502
+
503
+ = 0.8.0 (2014.04.30) =
504
+ - Bug fixes
505
+ - Fix scrolling issue with subscribe pop-up
506
+ - Duplicate class bug fixes
507
+
508
+ = Enhancements =
509
+ - Add optional first name, last name and phone fields for subscribe pop-up
510
+ - Change out contact notification emails to be from settings email address
511
+ - Ability to disable contact notification emails
512
+ - Constant Contact list sync power-up
513
+ - Sync optional contact fields (name + phone) to email service provider power-ups
514
+
515
+ = 0.7.2 (2014.04.18) =
516
+ - Bug fixes
517
+ - Fix contact deletion bug
518
+ - Implement data recovery fix for contacts
519
+ - Bug fixes to contact merging
520
+
521
+
522
+ = 0.7.1 (2014.04.11) =
523
+ - Bug fixes
524
+ - SVN bug fix that did not add the MailChimp List sync power-up
525
+
526
+ = 0.7.0 (2014.04.10) =
527
+
528
+ = Enhancements =
529
+ - MailChimp List Sync power-up
530
+ - Added new themes (bottom right, bottom left, top and pop-up) to the WordPress Subscribe Widget power-up
531
+
532
+ = 0.6.2 (2014.04.07) =
533
+ - Bug fixes
534
+ - Fixed activation error for some installs by removing error output
535
+ - MySQL query optimizations
536
+ - Fixed bug with MySQL V5.0+ by adding default NULL values for insert statements on contacts table
537
+ - Changed title for returning lead email notifications
538
+ - Setting to change button label on
539
+
540
+ = Enhancements =
541
+ - Added ability to change button label on subscribe widget
542
+
543
+ = 0.6.1 (2014.03.12) =
544
+ - Bug fixes
545
+ - Updated read me.txt file
546
+ - Updated screenshots
547
+
548
+ = 0.6.0 (2014.03.07) =
549
+ - Bug fixes
550
+ - Remove in-house plugin updating functionality
551
+ - Original referrer is always the server url, not the HTTP referrer
552
+ - Strip slashes from title tags
553
+ - Number of contacts does not equal leads + commenters + subscribers
554
+ - Modals aren't bound to forms after page load
555
+ - Fix bug with activating + reactivating the plugin overwriting the saved settings
556
+ - Override button styles for Subscribe Pop-up widget
557
+
558
+ = Enhancements =
559
+ - Improved readability on new lead notification emails
560
+ - Confirmation email added for new subscribers to the Leadin Subscribe Pop-up
561
+ - Updated screenshots
562
+ - Improved onboarding flow
563
+ - Deleted unused and deprecated files
564
+
565
+ = 0.5.1 (2014.03.03) =
566
+ - Bug fixes
567
+ - Fixed Subscribe Pop-up automatically enabling itself
568
+
569
+ = 0.5.0 (2014.02.25) =
570
+ - Bug fixes
571
+ - Add (blank page title tag) to emails and contact timeline for blank page titles
572
+ - Fix link on admin nav menu bar to link to contact list
573
+ - Ignore lead notifications and subscribe popup on login page
574
+ - Saving an email no longer overwrites all the Leadin options
575
+ - Added live chat support
576
+
577
+ = Enhancements =
578
+ - New power-ups page
579
+ - Leadin Subscribe integrated into plugin as a power-up
580
+ - Improved contact history styling + interface
581
+ - Added visit, pageview and submission stats to the contact view
582
+ - Added Live Chat into the Leadin WordPress admin screens
583
+ - New Leadin icons for WordPress sidebar and admin nav menu
584
+
585
+ = 0.4.6 (2013.02.11) =
586
+ - Bug fixes
587
+ - Fix table sorting for integers
588
+ - Bug fixes to contact type headings
589
+ - Bug fix "Select All" export
590
+ - Bug fix for CSS "page views" hover triangle breaking to next line
591
+ - Backwards compatibility for < jQuery 1.7.0
592
+ - Add Leadin link to admin bar
593
+
594
+ = Enhancements =
595
+ - New onboarding flow
596
+
597
+ = 0.4.5 (2013.01.30) =
598
+ = Enhancements =
599
+ - Integration with Leadin Subscribe
600
+
601
+ = 0.4.4 (2013.01.24) =
602
+ - Bug fixes
603
+ - Bind submission tracking on buttons and images inside of forms instead of just submit input types
604
+
605
+ = Enhancements =
606
+ - Change out screenshots to obfiscate personal information
607
+
608
+ = 0.4.3 (2013.01.13) =
609
+ - Bug fixes
610
+ - Fixed Leadin form submission inserts for comments
611
+ - Resolved various silent PHP warnings in administrative dashboard
612
+ - Fixed Leadin updater class to be compatible with WP3.8
613
+ - Improved contact merging logic to be more reliable
614
+
615
+ = Enhancements =
616
+ - Improved onboarding flow
617
+ - Optimized form submission catching + improved performance
618
+
619
+ = 0.4.2 (2013.12.30) =
620
+ - Bug fixes
621
+ - Change 'contact' to 'lead' in the contacts table
622
+ - Fixed emails always sending to the admin_email
623
+ - Tie historical events to new lead when an email is submitted multiple times with different tracking codes
624
+ - Select leads, commenters and subscribers on distinct email addresses
625
+ - Fixed timeline order to show visit, then a form submission, then subsequent visits
626
+
627
+ = Enhancements =
628
+ - Added url for each page views in the contact timeline
629
+ - Added source for each visit event
630
+ - Tweak colors for contact timeline
631
+ - Default the Leadin menu to the contacts page
632
+
633
+ = 0.4.1 (2013.12.18) =
634
+ - Bug fixes
635
+ - Removed Leadin header from the contact timeline view
636
+ - Updated the wording on the menu view picker above contacts list
637
+ - Remove pre-mp6 styles if MP6 plugin is activated
638
+ - Default totals leads/comments = 0 when leads table is empty instead of printing blank integer
639
+ - Legacy visitors in table have 0 visits because session support did not exist. Default to 1
640
+ - Update ouput for the number of comments to be equal to total_comments, not total_leads
641
+ - Added border to pre-mp6 timeline events
642
+
643
+ = 0.4.0 (2013.12.16) =
644
+ - Bug fixes
645
+ - Block admin comment replies from creating a contact
646
+ - Fixed faulty sorting by Last visit + Created on dates in contacts list
647
+
648
+ = Enhancements =
649
+ - Timeline view of a contact history
650
+ - New CSS styles for contacts table
651
+ - Multiple email address support for new lead/comment emails
652
+ - Integration + testing for popular WordPress form builder plugins
653
+ - One click updates for manually hosted plugin
654
+
655
+ = 0.3.0 (2013.12.09) =
656
+ - Bug fixes
657
+ - HTML encoded page titles to fix broken HTML characters
658
+ - Strip slashes from page titles in emails
659
+
660
+ = Enhancements =
661
+ - Created separate Leadin menu in WordPress admin
662
+ - CRM list of all contacts
663
+ - Added ability to export list of contacts
664
+ - Leadin now distinguishes between a contact requests and comment submissions
665
+ - Added link to CRM list inside each contact/comment email
666
+
667
+ = 0.2.0 (2013.11.26) =
668
+ - Bug fixes
669
+ - Broke up page view history by session instead of days
670
+ - Fixed truncated form submission titles
671
+ - Updated email headers
672
+
673
+ = Enhancements =
674
+ - Plugin now updates upon activation and keeps record of version
675
+ - Added referral source to each session
676
+ - Added link to page for form submissions
677
+ - Updated email subject line
678
+ - Added social media avatars to emails
679
+
680
+ = 0.1.0 (2013.11.22) =
681
+ - 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
trunk/assets/banner-1544x500.png ADDED
Binary file
trunk/assets/banner-772x250.png ADDED
Binary file
trunk/assets/icon-128x128.png ADDED
Binary file
trunk/assets/icon-256x256.png ADDED
Binary file