Testing if Google Optimize was correct to set and its work in the browser
URL
- website url for testExperiment_Id
- id of google optimize experimentGlobal_variable
- global variable namequantityOfTestRun
- Quantity of unique opens the browser for determining if user get into experiment
- Clone project
- Install all dependencies
npm install
- Set all variable with corresponding data to your experiment
- Open dev tools
- Run in console
node go-test.js
{ go_status: '0', window_global_var_status: 'test case 1' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ go_status: '1', window_global_var_status: 'test case 2' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ go_status: '0', window_global_var_status: 'test case 1' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }
{ window_global_var_status: 'not-set' }