WordPress.org

Support

Support » Plugins and Hacks » WP-Piwik » [Resolved] [Plugin: WP-Piwik] Track pages by category/taxonomy?

[Resolved] [Plugin: WP-Piwik] Track pages by category/taxonomy?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author braekling

    @braekling

    Maybe I can add some pre-defined settings (like “category” and “author”) to auto-add these as a custom var. Addtionally I can use a post’s or a page’s custom fields to allow manual-chosen values.

    Would this help?

    Well yes, but for me I would need to track the breakdown of custom taxonomies so I’m thinking I need to use wp_localize_script and pass some PHP variables to the javascript term parameters. I’ll let you know if it works and if you can think of an alternative approach, even better!

    Plugin Author braekling

    @braekling

    Hm, I think this won’t really work for categories: Custom vars are limited (e.g. 5 vars/(view and/or visit)), but a WordPress post can be categorized to as many categories as you want.

    But author, user role, and some user-specified vars should be possible.

    Plugin Author braekling

    @braekling

    Alright, but have a look at the custom var limits if you pass your vars to the tracking code.

    I thought the index/name is limited to 5 but the value could be anything.

    I’m only expecting to track two taxonomies per page and each taxonomy would be assigned one term. If I assign the value of the first taxonomy to the first term (or deepest child term depending on my php), then only one value would be passed.

    Would that work? I’m assuming that you can have 5 index/names (aka taxonomies) and each can have one value per page.

    Plugin Author braekling

    @braekling

    Custom variables by post (scope=page) supported in 0.9.6. Release soon.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: WP-Piwik] Track pages by category/taxonomy?’ is closed to new replies.
Skip to toolbar