Is it possible to allow multiple Google Analytics tracking code on one page? One for the website admin, and one for the author.

The purpose is to maintain website's main tracking code while allowing authors to insert their on tracking code to get stats of their own posts.

How can I do that?

  • What does the Google Analytics support site say about allowing multiple tracking codes in a single page?
    – Pat J
    Dec 23, 2013 at 2:35
  • this is google aanalyics question and not a wordpress one, therefor off-topic. as @pat said you should go to google support for an official answer. Dec 23, 2013 at 4:18

1 Answer 1


Use conditional tags for each author with their tracking code in a custom function.

is_author( '4' ) && is_single() )

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.