• Hello.

    I’m trying to execute the wpmautic_send() function when a user accepts cookies but I get a “WPMautic: mt not defined. Did you load mtc.js ?” error in the console. I’m a total beginner with javascript and wonder what I’m doing wrong.

    Here is the code I’m executing when a user accepts cookies:

    <script type="text/javascript" src="https://mywebsite.com/mautic/mtc.js"></script>
    
    <script type="text/javascript">
    wpmautic_send();
    </script>

    When I enter the mtc.js file url directly into the browser, the file contents load ok, so the file is there.

    I appreciate any help since I can’t find anything on Google.

    • This topic was modified 5 years, 1 month ago by songee.
    • This topic was modified 5 years, 1 month ago by songee.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wpmautic_send() does not execute’ is closed to new replies.