The form is inside a NetSuite iframe, so to track it, we’ll need to add a postMessage. The problem is figuring out how to navigate in NetSuite and where we can insert custom codes.
To set this up in NetSuite, just go to Setup > Other Setup > Online Customer Form > Custom Code. Open the script file in a new window, then go to Media Item and click Edit. Here, you can add any custom code you’d like.
Now we can comfortably navigate NetSuite and add custom code when necessary.