I'm trying to make use of the Form Capture functionality from the Dynamics Marketing module for our simple WordPress-based site. I've managed to insert the relevant <script> and <div> tags into the page dynamically (i.e. they are added by WordPress on the fly using the "Inseart Headers and Footers" addon). It's CRUCIAL that those are added dynamically, as the same WordPress site is handling two language versions, and depending on which URL is used a different page is shown along with different tracking scripts.
Alas, despite the correct <div> and <script> tags being on the final page, when I attempted to use the "form capture" feature I got the error:
"The target page doesn't include the required website tracking script. Please correct this and try again."
I suspect the feature only opens the HTML and checks if the relevant sections are there and doesn't actually run any JS that might be on the form. If that's the case, then do I need to rework my existing solution to use the underlying PHP to insert page elements server-side or is there perhaps another workaround?
*This post is locked for comments