How to add Adwords Conversion Code to one page?

Hi there,

I am building a site at http://peoplecentral.flickdigital.co/

I have been given a Google Adwords Conversion code to add to this page:

http://peoplecentral.flickdigital.co/contact-us/

I have only added codes on all pages using “Header & Footer Scripts” or a similar plugin. How can I add code to just this page?

Thanks in advance!

Hi There,

Thanks for writing in!

Please edit the page in cornerstone and click on the JS Icon in the left. Paste your Js code there, it will load only on that page only.

Hope this helps.

Thanks

Thanks - this is great. It says in the notes, no need to add script tags. Should I edit the code below (secure note), and if so to what?

Thanks in advance

Hello @freedomdesign,

Thanks for updating the thread. :slight_smile:

I suggest you to take child theme route to implement Google Adwords conversion code. Please page the following code in child theme function.php file. Before that please refer following resources to download and install Child Theme.

https://theme.co/apex/child-themes

You can take a look at following post to locate Page ID. Though the article talks about post id but essentially logic remains the same.

function my_custom_tracking_code() {
  if( is_page(185) ) {?>
    <!--replace this line with your Google adwords conversion code -->
<?php
  }
}
add_action('wp_head','my_custom_tracking_code');

You just need to replace 185 from above code with the page id of Contact us page. And <!--replace this line with your Google adwords conversion code --> with conversion code.

Please let us know how it goes.

Thanks.

Perfect - thank you!

You’re welcome.

Edited - found solution to test, will repost if solution doesn’t work.

Thank you.

Let us know how it goes!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.