Created
March 17, 2013 23:00
-
-
Save ianstormtaylor/5184015 to your computer and use it in GitHub Desktop.
Tracking additional events from the Segment.io WordPress library, directly in PHP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$event = 'Event Name'; | |
$properties = array( | |
'title' => single_post_title('', false) | |
); | |
Analytics::track($event, $properties); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is there a similar one in the wp plugin for identify?