• How to prepend the site domain to the page title when tracking?
    (If someone visits the ‘About’ page on blog.xyz.com it will be recorded as ‘blog / About’. This is the easiest way to get an overview of your traffic by sub-domain.)

    How do i add this line to the tracking code?

    _paq.push([“setDocumentTitle”, document.domain + “/” + document.title]);

    https://wordpress.org/plugins/wp-piwik/

Viewing 1 replies (of 1 total)
  • Plugin Author braekling

    (@braekling)

    The tracking code is delivered by Piwik itself. WP-Piwik does not offer this option, yet. So you have to add the modified tracking code to your page manually if you like to use it.

    I’ll keep this in mind as a feature request.

Viewing 1 replies (of 1 total)
  • The topic ‘When tracking multiple sub-domains’ is closed to new replies.