We Just Added Support for PHP and WordPress!

By Ian Storm Taylor

Ever since we launched our first six server-side analytics libraries, we’ve been getting mobbed by requests for a PHP library and a WordPress plugin. Well, I’m happy to say that we’ve added support for both. Now you can use the same, clean API in even more places!

If you already have a Segment account, you can find both PHP and WordPress in your Setup Guide. If you want to dive deeper you can always check out our PHP docs Segment Wordpress Plugin. And, as usual, both of them are open source and hosted on Github.

Our WordPress plugin also lives in the WordPress Plugin Directory, which means installing it seriously takes about 60 seconds:

  1. Go to the Plugins > Add New page in your WordPress admin.

  2. Search for and install Analytics for WordPress — by Segment.

  3. Click Activate Plugin.

  4. Click the plugin’s Settings button and enter your API key!


That’s it! The plugin automatically identifies logged-in users and commenters. It also records the different types of pages your visitors are landing on, so you know what people are reading most.

All without you having to write a line of code!

Of course if you do want to track your own custom events you can do that too, just check out the WordPress docs.

PS. If you don’t already have a Segment account and you want to install the WordPress plugin, it’s free so what are you waiting for? Sign up now!

The state of personalization 2023

The State of Personalization 2023

Our annual look at how attitudes, preferences, and experiences with personalization have evolved over the past year.

Recommended articles


Want to keep updated on Segment launches, events, and updates?