• Resolved julinformatique

    (@julinformatique)


    In the instructions you say to add the following javascript before </head> :

    However the plugin via the Sender_Automated_Emails.php file automatically writes the script

        echo "
            <script>
              (function (s, e, n, d, er) {
                s['Sender'] = er;
                s[er] = s[er] || function () {
                  (s[er].q = s[er].q || []).push(arguments)
                }, s[er].l = 1 * new Date();
                var a = e.createElement(n),
                    m = e.getElementsByTagName(n)[0];
                a.async = 1;
                a.src = d;
                m.parentNode.insertBefore(a, m)
              })(window, document, 'script', 'https://cdn.sender.net/accounts_resources/universal.js', 'sender');
              sender('{$key}');
            </script>
            ";

    So this is a duplicate of the instructions. Furthermore, displaying the div with the script already injected into the </head> tag does not work. We therefore recommend removing the echo in Sender_Automated_Emails.php and adding the javascript directly to a widget

Viewing 1 replies (of 1 total)
  • Plugin Author Sender.net

    (@sendernet)

    Hi julinformatique,

    Yes indeed there is no need to implement again the script when you are using the plugin. We have just recently updated how the form is been displayed in page block, page builders and widget.

    Let us know if work properly for your case.

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘bug: double javascript’ is closed to new replies.