Hi There,
Im at the pointy end of a project that is due soon and something is amiss so any help is appreciated.
Here is what I am trying to achieve.
1. Customer receives email to complete a survey on survey monkey
2. After completion they are redirected to a landing page
3. There is a smart campaign listening for this to occur
4. Program status changed to > completed survey
I have been trying unsuccessfully for a day to sort this.
Thanks
Matt
Solved! Go to Solution.
You already had the redirection code (in the onSuccess). You seem to be cutting and pasting from different sources.
The full code to auto-submit and redirect is:
<script src="//app-sj01.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1057"></form>
<script>
MktoForms2.loadForm("//app-sjst.marketo.com", "785-UHP-775", 1057, function(form) {
//Add an onSuccess handler
form.onSuccess(function(values, followUpUrl) {
// Take the lead to a different page on successful submit, ignoring the form's configured followUpUrl
location.href = "https://www.surveymonkey.com/r/5KQ3VGB";
// Return false to prevent the submission handler continuing with its own processing
return false;
});
form.submit();
});
</script>
You will need the Munchkin JS and Muchkin.init() as well. But, as I've noted, your resulting code will have a race condition. It will not satisfy your requirements reliably. I would not use it on a production site.
Hi Matthew Varone,
It is very likely that people are not member of your program in the "Invited" Status. 2 things to change :
An alternative would be to remove the "member of program" filter and replace it with a "was sent email" filter.
-Greg
Hi Gregoire
I think I have set that up the right way.
I have a feeling its because the cookies are not working correctly. I say this because, on the landing page there is an option to sign up to the newsletter. When I check this it appears that a new lead has been acquired.
Im really stumped
If it helps here is a screen of the entire program.
I have tested my wifes email on another computer and it didnt fire.
Is it all possible that this is occurring because I edited and moved around the program steps in admin?
Thanks
No, surely not.
-Greg
Hi Matthew,
Of course, "visited web page" trigger is dependent on cookie.
Also, make sure you have left the link traceable in the text editor, as below. It will make sure the person is cookied.
You may also want to direct the person to a Marketo LP PRIOR to going to SurveyMonkey, and alos after, so that the survey is "embedded" within 2 Marketo LP's.
Otherwise, you may consider the Marketo / SurveyMonkey connecter, sold by SurveyMonkey, but it's a little expensive.
-Greg
I tried both, created a LP prior to survey and didn't seem to work. I really need to get this figured
Are you using a browser with DTN activated ?
-Greg
Ive tried on 3 browsers firefox, chrome and edge