Title: Manual Tracking Code functionality
Last modified: July 17, 2020

---

# Manual Tracking Code functionality

 *  [moteze](https://wordpress.org/support/users/moteze/)
 * (@moteze)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/manual-tracking-code-functionality/)
 * We’d like to track the author of posts in Matomo, but when I switch over from“
   default tracking” to “enter manual” I lose the ability to also track my logged-
   in user.
 * Is there a better way for me to adjust the tracking script without losing the
   advanced functionality that this plugin offers? is there any other functionally
   we loose when switching to manual tracking code?
 * for now, this is all we are adding to the tracking code
    (I’ll add a conditional
   later to only add this on a single-post)
 * var article_author = document.querySelector(‘[name=”author”]’).getAttribute(“
   content”);
    _paq.push([‘trackPageView’, pageTitle, {dimension1: ‘article_author’}]);
 * again tracking the author isn’t the issue… its tracking both the author and the
   logged-in user!

Viewing 1 replies (of 1 total)

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/manual-tracking-code-functionality/#post-13281833)
 * If you want to do further modifications to your tracking code which are not offered
   by the plugin itself, and which can’t be done via JavaScript via the plugins 
   manual function, I’d suggest to add your tracking code to your site’s footer.
   php directly, and to disable “add tracking code” within the plugin. There you
   can embed the JavaScript code and use PHP methods offered by WordPress.

Viewing 1 replies (of 1 total)

The topic ‘Manual Tracking Code functionality’ is closed to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)

 * 1 reply
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/manual-tracking-code-functionality/#post-13281833)
 * Status: not resolved