如何从脚本中运行Surveymonkey脚本?

时间:2018-07-14 13:53:21

标签: javascript popup surveymonkey

我正在使用beeker.io的退出意图脚本,并希望使用它运行调查猴子反馈表。目前,它已设置为在脚本中显示html,但是我将如何显示Survey Monkey嵌入代码呢?

使用javascript完成新手操作。

用于控制用于更改弹出窗口选项的代码是:

<script type="text/javascript">

        bioEp.init({
            width: 394, 
            height: 298,
            html: '<img src="/images/popup/ifyouleavemenow.png" alt="Get 5% off this rug with voucher code: IFYOULEAVEMENOW" /></a>', //html markup
            delay: 10, //delay in seconds before script in initiated
            cookieExp: 0 //how many days betweeen popping up again to same user 0 makes it work every time
        });
    </script>

我要显示的代码是:

<script>
(function(t,e,s,n){
var o,a,c;
t.SMCX=t.SMCX||[],e.getElementById(n)||(o=e.getElementsByTagName(s),a=o[o.length-1],c=e.createElement(s),c.type="text/javascript",c.async=!0,c.id=n,c.src=["https:"===location.protocol?"https://":"http://","widget.surveymonkey.com/collect/website/js/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx_XXX_XXXXX.js"].join(""),a.parentNode.insertBefore(c,a))})
(window,document,"script","smcx-sdk");
</script>

0 个答案:

没有答案