Segment For WP by in8.io

Segment Analytics for WordPress. Event tracking integrated into hundreds of 3rd party tools, see segment.com | Re-written & extended by https://in …

Author:Juan (profile at wordpress.org)
WordPress version required:5.6
WordPress version tested:6.1.1
Plugin version:2.3.3
Added to WordPress repository:12-06-2019
Last updated:27-02-2023
Rating, %:100
Rated by:2
Plugin URI:https://github.com/omgwtfwow/segment-for-wp-b...
Total downloads:3 289
Active installs:200+
plugin download
Click to start download

Segment Analytics for WordPress. Free WooCommerce, Ninja Form & Gravity Form integrations.
Uses Segment’s official PHP libraries for Server Side events, as well as a lot of other features functionality.
I completely rewrote this plugin from the previous version.
Client side and server side tracking.
Client side events fire upon validation (ie, for submissions)
Server side events are scheduled and happen asynchronously, so users don’t have to wait for processing of these events, it won’t slow them down.

There are annotations throughout the plugin to explain the different features.

  • Set a User ID based on user custom field, email, or WP user id
  • Built-in support for WooCommerce, Ninja Forms, Gravity Forms and WordPress native events.
  • Re-name events, choose what traits to include in Identify calls, etc…
  • Supports client side (JS API) and server-side tracking (PHP API)
  • Ability to filter out roles, custom post types and the admin area
  • Easily include userID and email properties in track calls
  • Ability to include custom user traits in identify calls using meta keys

Hooks

You can use the following filters, please return the correct values.

  • “segment_for_wp_change_user_id” ($user_id): Return a user id.
  • “segment_for_wp_change_user_traits” ($traits, $wp_user_id): Return an associative array of traits.
  • “segment_for_wp_change_event_properties” ($properties, $action, $data): Return an associative array of properties.
  • “segment_for_wp_change_product_properties” ($properties): Return an associative array of product properties (for WooCommerce).
  • “segment_for_wp_change_order_properties” ($properties): Return an associative array of order properties (for WooCommerce).

Happy to extend it, let me know.