Add code to track Google Adwords conversions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • criscokid
    Senior Member
    • Jun 2003
    • 315
    • 3.6.x

    Add code to track Google Adwords conversions

    I'm running a Google Adwords campaign to increase the number of registered users on my forums.

    Google does conversion tracking and provides code that is specifically for 'new signup conversions' (http://adwords.google.com/select/convtracking) - this code needs to be placed on the 'thank you for registering page' anywhere between the body tags.

    I'd appreciate it if someone could advise me what template I should include this in for it to work with vBulletin.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    This should work:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> STANDARD_ERROR

    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    <if condition="$show['search_noindex']"><meta name="robots" content="noindex,follow" /></if>
    $headinclude
    	<title>$pagetitle</title>
    $headinsert
    </head>
    <body>
    $header
    <if condition="$navbar">
    $navbar
    <else />
    <br /><br /><br />
    </if>
    
    [color=red]<if condition="THIS_SCRIPT == 'register'">
    	[color=blue]BANNER CODE HERE[/color]
    </if>[/color]
    
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
    <tr>
    	<td class="tcat">$vbphrase[vbulletin_message]</td>
    </tr>
    <tr>

    Comment

    • forum_maniac
      Member
      • Jan 2006
      • 36

      #3
      Different from 3.0?

      Hi Jake,

      in a 3.0 forum you recommended putting the script in the registeremail phrase. Is this no longer possible in 3.5.4?

      Comment

      • Colin F
        Senior Member
        • May 2004
        • 17689

        #4
        Either would work.
        If you're adding it to a phrase,make sure to not add the red code above.
        Best Regards
        Colin Frei

        Please don't contact me per PM.

        Comment

        • forum_maniac
          Member
          • Jan 2006
          • 36

          #5
          Thanks! I ended up adding it to the phrase "registration_complete" which is used after the user confirms his/her e-mail address. I use e-mail verification and some users never make it to that last step, so counting them as a conversion immediately after the sign-up page would overstate conversions.

          Thanks again!

          Comment

          • Michael Dengler
            Senior Member
            • Feb 2004
            • 285
            • 3.0.3

            #6
            The only way to test that the google java code is working correctly is to click your ad and register. If it's working correctly you should see the google message "Google Site Stats - send feedback". If you simply register without clicking an ad first the google message won't appear. That's the way it's supposed to work.

            Comment

            • Chad
              Senior Member
              • Oct 2004
              • 589
              • 3.7.x

              #7
              I just added my code in registration_complete phrase also. Does this look accurate?

              Code:
              Thank you, <strong>{1}</strong>. Your registration is now complete.<br />
              <br />
              You may now proceed to edit your <a href="profile.php?{2}do=editprofile"><strong>Profile</strong></a> in order to fill in additional personal details about yourself, or you could modify your <a href="profile.php?{2}do=editoptions"><strong>Options</strong></a> to customize your browsing experience of this site. If you would rather do these things later, you can do so by following the links around the site to your <a href="usercp.php?{2}"><strong>User Control Panel</strong></a>.<br />
              <br />
              Alternatively, you can simply go back to the <a href="{3}"><strong>Forums</strong></a> and start posting in threads.
              <br />
              <!-- Google Code for signup Conversion Page -->
              <script language="JavaScript" type="text/javascript">
              <!--
              var google_conversion_id = xxx;
              var google_conversion_language = "en_US";
              var google_conversion_format = "1";
              var google_conversion_color = "666666";
              if (1) {
                var google_conversion_value = 1;
              }
              var google_conversion_label = "signup";
              //-->
              </script>
              <script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">
              </script>
              <noscript>
              <img height=1 width=1 border=0 src="http://www.googleadservices.com/pagead/conversion/xxx/?value=1&label=signup&script=0">
              </noscript>

              Also, anyone way to record actual sign ups in numbers instead of just conversation rate percentage?
              [ Evidence & Prophecies Fulfilled : click ]
              .:. Unanswered Prayers? /read this\

              Comment

              • Chad
                Senior Member
                • Oct 2004
                • 589
                • 3.7.x

                #8
                Could someone please help on this?
                [ Evidence & Prophecies Fulfilled : click ]
                .:. Unanswered Prayers? /read this\

                Comment

                • Jake Bunce
                  Senior Member
                  • Dec 2000
                  • 46598
                  • 3.6.x

                  #9
                  That code looks fine at first glance.

                  vBulletin already has a registration counter. Look at the stats box near the bottom of the index page.

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...