joomla php 文件中的 Google adwords 转化跟踪集成

发布于 2024-11-14 16:42:03 字数 1737 浏览 3 评论 0原文

我正在尝试将 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&amp;guid=ON&amp;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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟若柳尘 2024-11-21 16:42:03

它有一个 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文