I am having some trouble with creating Flexmonster Object dynamically.
this is how it goes,
the problem is the index.html cannot receive the post data from page.open() request
or the phantomjs itself cannot include the flexmonster.js directly and references the built-in library sources.
Thank you for your question. Please try our PhantomJS example: https://www.flexmonster.com/base/#phantomjs. It also uses PHP to store Flexmonster’s reports on the server side without user’s interaction.
Please let us know if the suggested example was helpful for you.