Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25

Help! Adwords tracking code below Google Analytics

This is a discussion on Help! Adwords tracking code below Google Analytics within the General Discussion forums, part of the vBSEO SEO Plugin category; I am using the Google Analytics feature of VBseo , which automatically inserts the Analytics code on every page. I ...

  1. #1
    Member Ramya108's Avatar
    Real Name
    Svetlana
    Join Date
    Jun 2009
    Posts
    51
    Liked
    0 times

    Exclamation Help! Adwords tracking code below Google Analytics

    I am using the Google Analytics feature of VBseo, which automatically inserts the Analytics code on every page. I saw that it adds the Analytics code just above the </body> tag.

    To track the number of registrations from my Adwords campaigns I need to insert the Google Adword tracking code below the Google Analytics code.

    How can I do that? Please help!

    P.S. I need to install the Adwords tracking code only on one page - "thank you for your registration" page (STANDARD_ERROR template)

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    You can manually edit STANDART_ERROR template and add the required code
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Member Ramya108's Avatar
    Real Name
    Svetlana
    Join Date
    Jun 2009
    Posts
    51
    Liked
    0 times
    I did it!
    I inserted the code before the final body tag in the template.
    But the Google Analytics code is still showing below the Adwords tracking code.

    What should I do?

  4. #4
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    You need to add it after $footer
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  5. #5
    Member Ramya108's Avatar
    Real Name
    Svetlana
    Join Date
    Jun 2009
    Posts
    51
    Liked
    0 times
    I did so!

    It looks like VBseo adds Google Analytics code not to the footer template, but before the final body tag.

    You know, I think I just have to switch off the Google Analytics feature and then manually add the Google Analytics code to the footer template.

    Then I will insert the Adwords code into the STANDART_ERROR template, below the footer.

    This is the only way, unless you tell me how to configure position of Google Analytics code in VBseo.

  6. #6
    Member Ramya108's Avatar
    Real Name
    Svetlana
    Join Date
    Jun 2009
    Posts
    51
    Liked
    0 times
    Here is how my template looks like (the end of it):

    <br />

    $footer
    <if condition="THIS_SCRIPT == 'register'">
    <!-- Google Code for Registriran-korisnik Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = 1032217794; var google_conversion_language = "hr"; var google_conversion_format = "1"; var google_conversion_color = "ffffff"; var google_conversion_label = "L-uvCL7WmgEQwsmZ7AM"; if (0.01) { var google_conversion_value = 0.01; } //--> </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/1032217794/?value=0.01&amp;label=L-uvCL7WmgEQwsmZ7AM&amp;guid=ON&amp;script=0"/> </noscript>


    </if>

    </body>
    </html>

  7. #7
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    You can create a plugin with global_complete hook and execution number 15 as follow

    PHP Code:
    $output str_replace('</body>''
    <if condition="THIS_SCRIPT == '
    register'">
    <!-- Google Code for Registriran-korisnik Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = 1032217794; var google_conversion_language = "hr"; var google_conversion_format = "1"; var google_conversion_color = "ffffff"; var google_conversion_label = "L-uvCL7WmgEQwsmZ7AM"; if (0.01) { var google_conversion_value = 0.01; } //--> </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/1032217794/?value=0.01&amp;label=L-uvCL7WmgEQwsmZ7AM&amp;guid=ON&amp;script=0"/> </noscript>
    </if>
    </body>'
    $output); 
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  8. #8
    Member Ramya108's Avatar
    Real Name
    Svetlana
    Join Date
    Jun 2009
    Posts
    51
    Liked
    0 times
    Please tell me what this plugin will do? Will it replace the Google Analytics code?

    Should I copy it as it is to the template?

    Thank you.

  9. #9
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    It will add:

    Code:
    <!-- Google Code for Registriran-korisnik Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = 1032217794; var google_conversion_language = "hr"; var google_conversion_format = "1"; var google_conversion_color = "ffffff"; var google_conversion_label = "L-uvCL7WmgEQwsmZ7AM"; if (0.01) { var google_conversion_value = 0.01; } //--> </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/1032217794/?value=0.01&amp;label=L-uvCL7WmgEQwsmZ7AM&amp;guid=ON&amp;script=0"/> </noscript>
    To your register template at above </body>
    The Forum Hosting - Forum Hosting from the Forum Experts

  10. #10
    Member Ramya108's Avatar
    Real Name
    Svetlana
    Join Date
    Jun 2009
    Posts
    51
    Liked
    0 times
    It's working - it was placed under the Google Analytics code. But please help me to fix this:
    Attached Thumbnails Attached Thumbnails registration.jpg  

  11. #11
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    Did you add it as a plugin ?
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  12. #12
    Member Ramya108's Avatar
    Real Name
    Svetlana
    Join Date
    Jun 2009
    Posts
    51
    Liked
    0 times
    No, I didn't. How do i add it as a plugin?

  13. #13
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    You need to add it via Products & Plugins. Within that main menu there is an option Add New Plugin. Follow the link , add the execution number to 15 , choose hook for global_complete and use the code i supplied
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  14. #14
    Member Ramya108's Avatar
    Real Name
    Svetlana
    Join Date
    Jun 2009
    Posts
    51
    Liked
    0 times
    I must be stupid, Mert, but which code do I copy into the new plugin? The whole of it or only the part of it? Also, what do I copy into the STANDART_ERROR template?
    (sorry, never worked with plugins). Thanks and kiss!

    $output = str_replace('</body>', '
    <if condition="THIS_SCRIPT == '
    register'">
    <!-- Google Code for Registriran-korisnik Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = 1032217794; var google_conversion_language = "hr"; var google_conversion_format = "1"; var google_conversion_color = "ffffff"; var google_conversion_label = "L-uvCL7WmgEQwsmZ7AM"; if (0.01) { var google_conversion_value = 0.01; } //--> </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/1032217794/?value=0.01&amp;label=L-uvCL7WmgEQwsmZ7AM&amp;guid=ON&amp;script=0"/> </noscript>
    </if>
    </body>'
    , $output);

  15. #15
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    Yes , you will post the whole part of that code.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Google Analytics: Tracking of Usernames
    By DBB in forum General Discussion
    Replies: 5
    Last Post: 08-17-2009, 10:49 PM
  2. Tracking members in Google Analytics
    By tavenger5 in forum Analysis: Traffic & SERPS
    Replies: 4
    Last Post: 01-30-2009, 02:38 PM
  3. Google Analytics Tracking Code Update
    By BamaStangGuy in forum vBSEO Features Archive
    Replies: 7
    Last Post: 01-03-2008, 01:31 PM
  4. Google Analytics not tracking after install
    By ehmax in forum Analysis: Traffic & SERPS
    Replies: 7
    Last Post: 03-31-2007, 04:09 PM

Posting Permissions

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