This is related to #1354908: Add ability to make test active depending on the domain/subdomain in that there needs to be a way of programatically controlling whether GWO adds the JS for a path.
Patch coming soon.

CommentFileSizeAuthor
#1 gwo_toggle_1.patch629 bytesandreiashu

Comments

andreiashu’s picture

StatusFileSize
new629 bytes

With the attached patch you can now do something like:

/**
  *  Implementation of hook_init
  */
function myModule_init() {
  global $conf;
  $conf['google_website_optimizer_enabled'] = FALSE;
}

If that doesn't work it means your module's hook_init is being invoked after google_website_optimizer_init() so you need to alter the weight column in {system} table or implement the same login in hook_boot().

andreiashu’s picture

Status: Active » Needs review
Schoonzie’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

GWO is no longer around. Closing old issues.