Sharing Google Analytics between a Drupal and a Wordpress installation

by amstram   Last Updated August 11, 2018 07:04 AM

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. example.com/wp and example.com/drup

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



Answers 2


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.

ceejayoz
ceejayoz
September 22, 2011 21:56 PM

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.

MisterPhilip
MisterPhilip
September 25, 2011 16:27 PM

Related Questions



Content system management for e-commerce website

Updated August 08, 2018 18:04 PM