0

谷歌广告建议在 head 标签内的网站中实现以下代码。并在有人点击时询问调用 gtag_report_conversion。但是我如何“调用”gtag_report_conversion?我不知道!我正在使用 wordpress>ELEMENTOR 页面构建器。

谢谢你。

<!-- Event snippet for WhatsApp_Clique conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url) {
  var callback = function () {
    if (typeof(url) != 'undefined') {
      window.location = url;
    }
  };
  gtag('event', 'conversion', {
      'send_to': 'HASH_REMOVED',
      'event_callback': callback
  });
  return false;
}
</script>
4

0 回答 0