html 用于Gravity Forms提交的虚拟网页浏览的Google Analytics跟踪代码,不会将用户发送到新网页。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 用于Gravity Forms提交的虚拟网页浏览的Google Analytics跟踪代码,不会将用户发送到新网页。相关的知识,希望对你有一定的参考价值。

<!-- 
The js code snippet below should be placed in the confirmation text for a Gravity Form that does not send to a thank you
page on submission, such as a sidebar or footer email newsletter signup form.

* This snippet will work for forms that submit via both ajax and non-ajax.
* This snippet will work with plugins such as Google Analytics for WordPress by MonsterInsights.
* This snippet will work for Universal Analytics, but not Classic Analytics.

You can read more about tracking pageviews at https://developers.google.com/analytics/devguides/collection/analyticsjs/pages.
-->

<!-- Make sure to turn off auto-formatting within the Gravity Forms confirmation edit screen -->
<script type="text/javascript">
	var ga = window[window['GoogleAnalyticsObject'] || 'ga'];
	if ( typeof ga == 'function' ) {
		// Change '/newsletter-signup-confirmation/' to a URL that makes sense for your virtual pageview
		ga( 'send', 'pageview', '/newsletter-signup-confirmation/' );
	}
</script>

以上是关于html 用于Gravity Forms提交的虚拟网页浏览的Google Analytics跟踪代码,不会将用户发送到新网页。的主要内容,如果未能解决你的问题,请参考以下文章

scss 用于Gravity Forms的CSS3切换开关

Gravity Forms 来自字段的动态确认

html Gravity Wiz // Gravity Forms // GF 1.8.21单选按钮和复选框输入ID更改

html Gravity Wiz // Gravity Forms // GF 1.8.21单选按钮和复选框输入ID更改

jQuery + Gravity Forms:对错误的验证执行 jQuery

使用 Paypal 帐户在 Wordpress Gravity Forms 上使用 Paypal 支付