Created
August 29, 2014 01:24
-
-
Save hijonathan/ba042ddb9e8a5b56d0d9 to your computer and use it in GitHub Desktop.
Appcues + VWO integration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _vis_opt_queue = window._vis_opt_queue || [], _vis_counter = 0; | |
| _vis_opt_queue.push(function() { | |
| try { | |
| if(!_vis_counter) { | |
| var _vis_data = {},_vis_combination,_vis_id,_vis_l=0; | |
| for(;_vis_l<_vwo_exp_ids.length;_vis_l++) { | |
| _vis_id = _vwo_exp_ids[_vis_l]; | |
| if(_vwo_exp[_vis_id].ready) { | |
| _vis_combination = _vis_opt_readCookie('_vis_opt_exp_'+_vis_id+'_combi'); | |
| if(typeof(_vwo_exp[_vis_id].combination_chosen) != "undefined") | |
| _vis_combination = _vwo_exp[_vis_id].combination_chosen; | |
| if(typeof(_vwo_exp[_vis_id].comb_n[_vis_combination]) != "undefined") { | |
| _vis_data['VWO-Test-ID-'+_vis_id] = _vwo_exp[_vis_id].comb_n[_vis_combination]; | |
| _vis_counter++; | |
| } | |
| } | |
| } | |
| // Use the _vis_data object created above to set the filtering data. | |
| if(_vis_counter && Appcues && Appcues.identify) { | |
| Appcues.identify(_vis_data); | |
| Appcues.init(); | |
| } | |
| } | |
| } | |
| catch(err) {}; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment