Anthony191276
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [Pixel Cat - Conversion Pixel Manager] Pixel On Blog HomepageHi Kellen
It doesn’t seem to be working…I uploaded it as an extra file in the Facebook conversion pixel section of website backend..
Here is what it looks like- can you take a look to see if you think this looks correct?
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
{\rtf1\ansi\ansicpg1252\cocoartf1347\cocoasubrtf570 {\fonttbl\f0\froman\fcharset0 Times-Roman;} {\colortbl;\red255\green255\blue255;\red52\green52\blue52;} \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \deftab720 \pard\pardeftab720 \f0\fs30 \cf2 \expnd0\expndtw0\kerning0 function fb_pxl_insert_code_on_blog() \{\ if ( is_home() ) \{\ $fb_pxl_code = "\ <!-- Facebook Pixel Code -->\ <script>\ !function(f,b,e,v,n,t,s)\{if(f.fbq)return;n=f.fbq=function()\{n.callMethod?\ n.callMethod.apply(n,arguments):n.queue.push(arguments)\};if(!f._fbq)f._fbq=n;\ n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;\ t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)\}(window,\ document,'script','//connect.facebook.net/en_US/fbevents.js');\ \ fbq('init', '827830000658295');\ fbq('track', 'PageView');\ </script>\ <noscript><img height="1" width="1" style="display:none"\ src="https://www.facebook.com/tr?id=827830000658295&ev=PageView&noscript=1"\ /></noscript>\ <!-- End Facebook Pixel Code -->";\ echo $fb_pxl_code;\ \}\ \}\ add_action( 'wp_head', 'fb_pxl_insert_code_on_blog' );\ ?>\ \ }
Forum: Plugins
In reply to: [Pixel Cat - Conversion Pixel Manager] Pixel On Blog Homepagethank you!
Viewing 2 replies - 1 through 2 (of 2 total)