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!