Follow

Using javascript to track application starts

When you embed the initial application form on a page in your school's website, you can use javascript to track application starts.

  • The application iframe sends this message application.start to the parent page when an applicant submits the initial form.
  • Your Javascript can then trigger an event when one of those messages is received.

To listen for these messages, you would need Javascript code on your container page that goes something like this:

		
		window.addEventListener('message',function(message){
	if(message.data.type == 'populi.application.start'){
    	alert('Do it!');
	}
});


	
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.