WordPress.org

Support

Support » How-To and Troubleshooting » Having trouble installing Adwords Conversion Tracking script

Having trouble installing Adwords Conversion Tracking script

  • spd1snd

    @spd1snd

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • iridiax

    @iridiax

    Put the script in a custom page template.

    spd1snd

    @spd1snd

    Great idea — I created a custom thank page template and inserted the code. All is working now. 🙂

    Thanks for the great idea!

    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.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Having trouble installing Adwords Conversion Tracking script’ is closed to new replies.