• 0

Insert google tracking pixel in head of page

Question

Posted · Report post

Hi there, wondering how to place google tracking pixel into the HEAD section of one of my pages.

Some things I have read suggest that I should have a box for Custom Tracking/Conversion Code, but I do not see one.

 

I would appreciated any help you can provide.

 

Thanks Amy

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

Posted · Report post

Hello @flekvtah 

 

You can add the code in your Site Options > Custom Code. 

 

You will see the box - Header code and then place the code in there. 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I think I need to add it to a specific page, not the entire site.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi,

 

I've never heard of a google tracking pixel, you can add the google tracking code to the header code box in the custom code panel, this will add the header script to every page on the site. This is needed in order to enable tracking on each and every page of your site, otherwise google will only be reporting statistic's on one page, not the entire site. 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi, this was the first time I had heard of this too.

My client has created an ad with google and wants to track how many people click on her ad and are taken to her contact page.

Google says we need to add the code below on that page.

 

We already have google analytics code on the site. I see this as something different.

 

Here are their instructions:

 

The FaceBook Instructions:

 

Copy the code below and paste it between <head> and </head> in the webpage where you want to track conversions. Learn how to change the value for your conversions in the Help Center.

 

<script type="text/javascript">

var fb_param = {};

fb_param.pixel_id = '6014260506244';

fb_param.value = '0.00';

fb_param.currency = 'USD';

(function(){

  var fpw = document.createElement('script');

  fpw.async = true;

  fpw.src = '//connect.facebook.net/en_US/fp.js';

  var ref = document.getElementsByTagName('script')[0];

  ref.parentNode.insertBefore(fpw, ref);

})();

</script>

<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=6014260506244&amp;value=0&amp;currency=USD" /></noscript>

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi there,

 

If they're asking to place in the <head> then this will be via the header box in the css control panel. In Wordpress the header.php is called and loaded on each page, even if that script isn't required on the other pages it will still load it so it's ready if placed in the header code box.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I will take a look at that.

Thanks for getting back to me on this.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

You're welcome, hope it works for you, keep us posted.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now