Jump to content

Archived

This topic is now archived and is closed to further replies.

flekvtah

Insert google tracking pixel in head of page

Recommended Posts

flekvtah    0
flekvtah

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
greenfly    230
greenfly

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. 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
flekvtah    0
flekvtah

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
James B    436
James B

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. 


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
flekvtah    0
flekvtah

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
James B    436
James B

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.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
flekvtah    0
flekvtah

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
James B    436
James B

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


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

×