“ wpcf7mailsent”未在AMP(加速的移动页面)上触发(wordpress)

时间:2019-02-26 14:27:54

标签: wordpress google-analytics google-adwords amp-html

“ wpcf7mailsent”单击提交按钮时未在主页上触发我正在使用ampforwp插件,这是我的代码。单击提交按钮时应触发。

{
"vars": {
    "account": "UA-60835381-1"  //Replace this with your Tracking ID
},
"triggers": {
    "trackPageview": {
        "on": "visible",
        "request": "pageview",
    }, "vars": { "id1": "#wpcf7mailsent", "id2": ".wpcf7mailsent"},


"triggers": {
  "anchorClicks": {
    "on": "click",
    "selector": "a, ${id1}, ${id2}",
    "request": "event",
    "vars": {
      "eventId": 128,

    }
  }
}
    }
}

0 个答案:

没有答案