I haven't been able to find any API documentation for ForeSee, and I've had a bug report e in related to the ForeSee Survey prompt dialog that gets randomly displayed. I've tried clearing cache and cookies, but it hasn't displayed for me yet, is there a way to trigger its display with javascript? Or maybe with certain URL parameters?
In foresee-trigger.js
I've updated the FSR.sites
array to include a reference to localhost:
var FSR = {
'version': '7.0.0',
'date': '01/01/2011',
'enabled': true,
'auto' : true,
'encode' : true,
'files': './foresee/', //default path when no match below
'id': 'etc',
'sites': [
/* several existing ones, etc.*/
{
name: 'localhost',
path: 'localhost',
files: '//localhost/subdirectory/foresee/',
domain: 'localhost'
},{
path: '.',
domain: 'default'
}]
};
I haven't been able to find any API documentation for ForeSee, and I've had a bug report e in related to the ForeSee Survey prompt dialog that gets randomly displayed. I've tried clearing cache and cookies, but it hasn't displayed for me yet, is there a way to trigger its display with javascript? Or maybe with certain URL parameters?
In foresee-trigger.js
I've updated the FSR.sites
array to include a reference to localhost:
var FSR = {
'version': '7.0.0',
'date': '01/01/2011',
'enabled': true,
'auto' : true,
'encode' : true,
'files': './foresee/', //default path when no match below
'id': 'etc',
'sites': [
/* several existing ones, etc.*/
{
name: 'localhost',
path: 'localhost',
files: '//localhost/subdirectory/foresee/',
domain: 'localhost'
},{
path: '.',
domain: 'default'
}]
};
Share
Improve this question
asked Apr 19, 2012 at 18:22
travistravis
36.5k21 gold badges72 silver badges97 bronze badges
2
- This being the one and only question apparently ever asked about this software/API/whatever, i kinda doubt you're gonna get much help here. Have you tried asking ForeSee? – cHao Commented Apr 20, 2012 at 7:30
- I've reached out to them on twitter and they gave me a list of people to email. I haven't heard back yet. I'm surprised that no one else has run into this since these surveys seem so mon, but my googling only returns press releases and ways to block the script from running. – travis Commented Apr 20, 2012 at 14:53
2 Answers
Reset to default 4You should be able to manually set the sampling percentage for your current session by hitting the "fsradmin.html" page that should be located in the same directory as the foresee-trigger.js file. For example, localhost/YourApp/scripts/foresee/fsradmin.html. Setting the sampling percentage to 100% would ensure that you encounter the survey.
Another option is to change the actual sampling percentage in the foresee-surveydef.js file here:
criteria: {
sp: 75, //this is the sampling % - set it to 100 to ensure that it appears lf: 1 // loyalty factor, (the # of pages the user has to hit before it appears)
},
If you chose the 2nd option, be sure to set the sampling % back to the original value before deploying your code, or everyone will always get the survey.
Finally here's a link to their documentation: http://demo.foreseeresults./_code/docs/ForeSee_Trigger_Code_Implementation_Guide.pdf
FSR.showInvite(); It will only display if Foresee isn't displayed yet to the user, means cookie isn't created yet. If you want to verify then first clear the cache. Load the page where foresee code is written and in developer console trigger the above mand. It would show the survey dialog.