WordPress.org

Forums

Having trouble installing Adwords Conversion Tracking script (5 posts)

  1. spd1snd
    Member
    Posted 6 years ago #

    I'm trying to install some conversion tracking scripts on a few thank-you pages on my blog. I've tried inserting the script using the HTML editor and also by using the Website Optimizer Plugin hack -- no luck getting the page verified by Google.

    So, has anyone got this working? Any tips?

  2. iridiax
    Member
    Posted 6 years ago #

    Put the script in a custom page template.

  3. spd1snd
    Member
    Posted 6 years ago #

    Great idea -- I created a custom thank page template and inserted the code. All is working now. :)

    Thanks for the great idea!

  4. mmuise
    Member
    Posted 6 years ago #

    I had a custom page template created, inserted the script, but Adwords is still coming back with "Verification Failed".

    Aside from creating the template and inserting the script, is there anything else I have to do?

    This is the code for the PHP template:

    <center>
    <div style="width:690px; padding: 20px; border: 1px solid #999999; margin: 0px auto; margin-top: 20px auto">
    <?php
    /*
    Template Name: Empty Page
    */
    ?>
    <?php if (have_posts()) : while (have_posts()) : the_post();?>
    <?php the_content(); ?>
    <?php endwhile; endif; ?>
    </div>
    </center>

    <center>
    Home | About | Contact Us
    </center>

    And this is the thank you page: http://marmosetguide.com/?page_id=28

    Thanks for any help you can provide.

  5. wkriski@hotmail.com
    Member
    Posted 6 years ago #

    Ok I got it to work without the optimizer plugin or creating templates.
    I went into my footer.php file and put this in:
    <?php
    if (is_page('thanks-for-joining'))
    { include ("conversion_free.html"); }
    elseif (is_page('thanks-for-joining-silver-level-membership'))
    { include ("conversion_silver.html"); }
    ?>

    create an html text file for each conversion script (paste from google site) and give it a unique filename. save it where your themes are.
    Add as many elseif's as you need. I used the permalink name of page, you can also use the page id as well.

Topic Closed

This topic has been closed to new replies.

About this Topic