Jump to content


Photo
- - - - -

Insert google tracking pixel in head of page


  • Please log in to reply
7 replies to this topic

#1 flekvtah

flekvtah

    Member

  • Members
  • 27 posts
  • Country: Country Flag

Posted 10 January 2014 - 04:06 PM

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



#2 greenfly

greenfly

    Advocate

  • Members

  • 3268 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 10 January 2014 - 04:29 PM

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. 



#3 flekvtah

flekvtah

    Member

  • Members
  • 27 posts
  • Country: Country Flag

Posted 10 January 2014 - 04:32 PM

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



#4 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 10 January 2014 - 11:55 PM

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. 



#5 flekvtah

flekvtah

    Member

  • Members
  • 27 posts
  • Country: Country Flag

Posted 13 January 2014 - 03:24 PM

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 

Please Login or Register to see this Hidden Content

.

 

<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="

Please Login or Register to see this Hidden Content

" /></noscript>



#6 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 13 January 2014 - 10:55 PM

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.



#7 flekvtah

flekvtah

    Member

  • Members
  • 27 posts
  • Country: Country Flag

Posted 14 January 2014 - 03:15 PM

I will take a look at that.

Thanks for getting back to me on this.



#8 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 14 January 2014 - 11:18 PM

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