segmentio/analytics-wordpress — pull request #49 by sperand-io (2014-12-21 00:42:06+00:00)
Title: Fix for fetching all categories instead of post-specific categories

common refrain from customers:

>For blog posts, it seems that each blog post view simply sends all of the categories we have on the site as properties, instead of the specific category of the viewed post. Here's an example: http://screencast.com/t/MGULv0fhnnrX

Fix: [`get_categories`](http://codex.wordpress.org/Function_Reference/get_categories) -> [`get_the_category`](http://codex.wordpress.org/Function_Reference/get_the_category)

`get_categories` returns all blog categories that satisfy a given query, where as `get_the_category` returns each category *assigned to the post id passed*

@JustinSainton mind sanity checking ? :)