SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Dec 2004
    Location
    Charlotte
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    wordpress and google conversion tracking

    Hi guys,

    I am trying to make google conversion tracking work with a wordpress blog that has a contact form in it. I am tracking leads and need to put the java conversion code on the thank you page.

    I tried to add the code into the code window on the thank you page post but I don't think it is working given that I don't see the little google stats image on the thank you page.

    I am using the dagon design plug in for the contact form and even tried to add the javascript directly to the plug in but that does not work either. I am no programmer and I guess I really don't know what I am doing.

    If somebody had the same problem and can give me some direction I would appreciate it. I tried to do a google search and a forum search but came up empty.

    Thanks!

  2. #2
    SitePoint Member
    Join Date
    Dec 2004
    Location
    Charlotte
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump

  3. #3
    SitePoint Guru
    Join Date
    Apr 2007
    Posts
    813
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what a bummer! you just need to copy paste given Javascript code to your HTML markup. It should be easily done, probably you may want to show some link to the problem?

  4. #4
    SitePoint Member
    Join Date
    Dec 2004
    Location
    Charlotte
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did paste the javascript code to my thank you page but it is not working, I am doing something wrong.

    I have a wordpress blog and I am tracking leads. Once people sign up they get redirected to a thank you page. On that page I tried to paste the code but it is not working. My understanding of the google conversion code is that it shows a little image that says "google site stats - send feedback".

    If that image is not showing, conversion tracking is not working (which indeed is not).

    What I did is paste the code in the content portion of the page with the WYSWYG editor disabled. I can see the code in the page source once I publish it and it looks like this:

    <div class="thecontent"><p>Thanks for submitting your information. I will contact you as soon as possible!<br />
    <!-- Google Code for lead Conversion Page --></p>
    <script language="JavaScript" type="text/javascript">
    <!--
    var google_conversion_id = *******;
    var google_conversion_language = "en_US";
    var google_conversion_format = "1";
    var google_conversion_color = "FFFFFF";
    if (1) {
    var google_conversion_value = 1;
    }
    var google_conversion_label = "lead";
    //-->
    </script>
    <script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">
    </script>

    <p><noscript><br />
    <img height=1 width=1 border=0 src="http://www.googleadservices.com/pagead/conversion/1064952852/imp.gif?value=1&#038;label=lead&#038;script=0"><br />
    </noscript></p>

    I know I am probably doing something really stupid....

    Thanks a lot!

  5. #5
    SitePoint Enthusiast
    Join Date
    Feb 2006
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most of the other codes like this I've always put in my footer. Have you tried putting the code in your footer? If you put it in your footer it will obviously be putting the code on every page in your blog so if that's not your intent then it might not work. Stats tracking codes are the ones I've put in my footer before.
    Apple Mac HQ - Apple/Mac News, Reviews, and More

  6. #6
    SitePoint Member
    Join Date
    Dec 2004
    Location
    Charlotte
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have the google analytics on the footer which is good for every page and that code works fine.

    In this case though, I need to code to be only on the thank you page, which is why I cannot really put it in the template files.

    It is funny how I got a plug in for the google web site optimizer (which uses code that is similar to conversion tracking) and I was able to set all that up fine and it works. But I cannot understand how to make this work. And I thought it should be much easier.

    If I put it in the content of the page using the code editor, why that's not working? I am at a loss...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •