We Just Added Support for PHP and WordPress!
Feb 1, 2013
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:
Go to the Plugins > Add New page in your WordPress admin.
Search for and install Analytics for WordPress — by Segment.
Click Activate Plugin.
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
Our annual look at how attitudes, preferences, and experiences with personalization have evolved over the past year.
Get the report
The State of Personalization 2023
Our annual look at how attitudes, preferences, and experiences with personalization have evolved over the past year.
Get the report
Share article
Recommended articles
How to accelerate time-to-value with a personalized customer onboarding campaign
To help businesses reach time-to-value faster, this blog explores how tools like Twilio Segment can be used to customize onboarding to activate users immediately, optimize engagement with real-time audiences, and utilize NPS for deeper customer insights.
Introducing Segment Community: A central hub to connect, learn, share and innovate
Dive into Segment's vibrant customer community, where you can connect with peers, gain exclusive insights, and elevate your success with expert guidance and resources!
Using ClickHouse to count unique users at scale
By implementing semantic sharding and optimizing filtering and grouping with ClickHouse, we transformed query times from minutes to seconds, ensuring efficient handling of high-volume journeys in production while paving the way for future enhancements.