1. You will need to set up a "New Tag" in GTM and then choose "Custom HTML":

2. Once you have the new tag open, add the following snippet of JavaScript to the HTML like seen below:

<script type="text/javascript">
window._mfq.push(["formSubmitSuccess", "#myForm"]);

3. After that, you have to add a "Trigger":

You can trigger the tag on anything you want, but if for example, you want the tag to be set whenever a visitor clicks a specific button, you can do that by clicking inside the "Triggering card" -> and then clicking the "+" sign in the upper right-hand corner:

Click inside the new "trigger card" that appears and then choose Page Load -> Some Page Views. Once you've chosen the trigger type you can set it up like this:

This will make it trigger on a specific page on your site. In this example, you define the URL you want the tag to trigger on.

4. When you've configured the trigger as shown above please "save" the trigger and the tag - and then click the "submit" button in the top right-hand corner.

Did this answer your question?