0

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 '13 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. – Mark Kaplun Dec 23 '13 at 4:18
0

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, privacy policy and cookie policy

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