joomla php 文件中的 Google adwords 转化跟踪集成
我正在尝试将 Google 转化跟踪中的一段代码包含到我的基于 Jomla 的业务联系人中。一旦出现谢谢消息,代码就应该被集成,但不幸的是我对 javascript 和 php 非常缺乏经验。有人可以帮我将这两段代码结合起来吗?
非常感谢 James
Code Jomla
//<![CDATA[
<!--
window.addEvent('load', function() {
changeCaptcha(".$this->profile->id.",0);\n".($use_ajax?"resetSubmit(".$this->profile->id.");\n":"")."
if($(typeof SqueezeBox!='undefined' && 'system-message')) {
SqueezeBox.initialize();
SqueezeBox.open($('system-message'), {
handler: 'adopt',
size: {x: $('system-message').offsetWidth+30, y: $('system-message').offsetHeight+30}
});
}
});
//-->
//]]>
Code Google:
<!-- Google Code for Contact Form Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1033530737;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "A8yvCJrs4AIQtHey6hT";
var google_conversion_value = 0;
/* ]]> */
</script>
<script type="text/javascript"
src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt=""
src="http://www.googleadservices.com/pagead/conversion/1033530737/? label=A8yvCJrs4AIQtHey6hT&guid=ON&script=0"/>
</div>
</noscript>
I am trying to include a piece of code from Google Conversion Tracking into my business contact from which is based on Jomla. The code should be integrated once the Thank you message appears but unfortunately I am very unexperienced with javascript and php. Could someone please give me a hand having these two pieces of code combined?
Thank you very much, James
Code Jomla
//<![CDATA[
<!--
window.addEvent('load', function() {
changeCaptcha(".$this->profile->id.",0);\n".($use_ajax?"resetSubmit(".$this->profile->id.");\n":"")."
if($(typeof SqueezeBox!='undefined' && 'system-message')) {
SqueezeBox.initialize();
SqueezeBox.open($('system-message'), {
handler: 'adopt',
size: {x: $('system-message').offsetWidth+30, y: $('system-message').offsetHeight+30}
});
}
});
//-->
//]]>
Code Google:
<!-- Google Code for Contact Form Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1033530737;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "A8yvCJrs4AIQtHey6hT";
var google_conversion_value = 0;
/* ]]> */
</script>
<script type="text/javascript"
src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt=""
src="http://www.googleadservices.com/pagead/conversion/1033530737/? label=A8yvCJrs4AIQtHey6hT&guid=ON&script=0"/>
</div>
</noscript>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它有一个 joomla 插件,其中包含联系人默认页面上的转换代码: http://www.joomlaadwordsconversion.com/
It has a joomla plugin that includes the conversion code on the default page of the contact: http://www.joomlaadwordsconversion.com/