Overview

Packages

  • ACF
  • Automation
    • Actions
    • Activation
    • LeadProfile
    • Menus
    • Queries
    • Rules
    • Triggers
  • CTA
    • Activation
    • AJAXListeners
    • Cloning
    • Core
    • Display
    • EditPage
    • Enqueues
    • GPLSettings
    • LeadsProfile
    • Loading
    • Menus
    • Notices
    • PlacementMetabox
    • PostType
    • Templates
    • Tracking
    • Variations
    • YOAST
  • InboundPro
    • Activation
    • AdminAJAX
    • AutoLoading
    • Cron
    • DataInterface
    • FieldMapping
    • Funnels
    • InboundNowAPI
    • Installer
    • LeadStatuses
    • Menus
    • Notifications
    • Ouath
    • Reports
    • Settings
    • Tracking
    • Translations
    • Updates
  • LandingPages
    • Activation
    • DataInterfaces
    • Management
    • Menus
    • NeedsAttention
    • Notices
    • Sidebars
    • Templates
    • Tracking
    • Variations
    • WelcomeScreen
    • Widgets
  • Leads
    • Activation
    • Akismet
    • BranchControl
    • BulkActions
    • Dashboard
    • Management
    • Notifications
    • Settings
    • Tracking
    • UserProfile
    • WPLogin
  • Mailer
    • Activation
    • Admin
    • ClickTracking
    • DataInterface
    • InboundForms
    • Leads
    • Management
    • Notifications
    • Scheduling
    • Sending
    • Settings
    • ShortcodesAndTokens
    • SparkPost
    • Templates
    • Unsubscribes
    • Variations
    • YoastSEO
  • None
  • Shared
    • APIs
    • CPT
    • DatabaseRoutines
    • DebugTricks
    • DoubleOptin
    • EventManagement
    • FieldMapping
    • InboundForms
    • LeadSorage
    • MarketingButton
    • Menus
    • Notifications
    • Shortcodes
    • ShortcodesAndTokens
    • StandAloneLicensing
    • Tracking
    • VisualEditor
  • xDepreciated

Classes

  • Leads_Tracking
  • Overview
  • Package
  • Class

Class Leads_Tracking

Class provides search and comment tracking features

Package: Leads\Tracking
Located at core/leads/classes/class.tracking.php
Methods summary
public
# __construct( )

Initiate class

Initiate class

public static
# add_hooks( )

Load hooks and filters

Load hooks and filters

public static
# set_cookies( )

Listens for special frontend calls to set cookies

Listens for special frontend calls to set cookies

public static sets
# cookie_lead_lists( string $lead_id, $lists = null )

Cookies visitor's browser with proper lead list given a lead id

Cookies visitor's browser with proper lead list given a lead id

Parameters

$lead_id
  • lead CPT id
$lists

Returns

sets
cookie of lists lead belongs to
public static sets
# cookie_lead_tags( string $lead_id, $tags = null )

Cookies visitor's browser with proper lead list given a lead id

Cookies visitor's browser with proper lead list given a lead id

Parameters

$lead_id
  • lead CPT id
$tags

Returns

sets
cookie of lists lead belongs to
public static
# update_page_views_object( ARRAY $lead_data )

wp_leads_update_page_view_obj updates page_views meta for known leads

wp_leads_update_page_view_obj updates page_views meta for known leads

Parameters

$lead_data
array of data associated with page view event
public static
# track_comment_approval( $new_status, $old_status, $comment )

Tracks the change of comment statuses. Approved or Unapproved

Tracks the change of comment statuses. Approved or Unapproved

Parameters

$new_status
$old_status
$comment
comment object]
public static
# track_comment_inserts( $id, $comment )

Tracks comments that are auto approved

Tracks comments that are auto approved

Parameters

$id
id]
$comment
comment object]
public static
# ajax_inbound_search_store( $_POST,…, $_POST,… )

Stores the user's searches in the database

Stores the user's searches in the database

Parameters

$_POST,…
(array) lead data to store
$_POST,…
(string)
Inbound Pro Plugin - PHP Codex API documentation generated by ApiGen