Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Given the needs of a client, he uses wordpress as a publishing platform; The news section of the website and drupal as the community/classifieds section of his website.

Each cms is on its own folder/directory. domain.com/wp and domain.com/drup

I'm wondering if there was an effective way of sharing the same Google Analytics account/ID. Any best practices ? Suggestions ?


share|improve this question

migrated from stackoverflow.com Sep 23 '11 at 17:03

This question came from our site for professional and enthusiast programmers.

Just include the same GA code with the same ID and it'll all go into the same account. Nothing fancy necessary if it's all on the same domain name.

share|improve this answer

As ceejayoz mentioned, throw in the same GA code and it will work fine. However, I'd suggest taking it a step further and use filters to segment the traffic into different profiles. Typically I'd set it up as so:

  • A master profile with all the data, unfiltered
  • A profile for just the wordpress install
  • A profile for just the drupal install

This allows more play with your data, without extra coding.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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