
// Coremetrics control file for Analytics & Intelligent Offer
// Controls overall tagging on / off, and test / production switch

// Global switches - set to false to switch off analytics tagging
var cmTagging = true; // CSS site
var cmWmpsTagging = true; // WMPS homeshopping site(s)


// Prepare Coremetrics page view tag
// Passed uri + query string, category
// Returns nothing
function cmPreparePageviewTag(uri,category)
{
  if (cmTagging)
  {
    uri = uri.replace(/[&|?]ts=\d*/, ''); // remove trailing timestamp
    cmCreatePageviewTag(uri, category);
  }
}


// Call to set analytics tagging on CM production server
// Comment out to route all tagging to CM test server
// Only use CM test server for internal Dev / Staging tests (insufficient bandwidth!)
cmSetProduction(); 

//////////
