{"id":1793,"date":"2017-11-30T08:27:06","date_gmt":"2017-11-30T07:27:06","guid":{"rendered":"https:\/\/bacasable.webanalyste.com\/?p=1793"},"modified":"2026-06-10T14:09:11","modified_gmt":"2026-06-10T13:09:11","slug":"pixel-fb-pageview","status":"publish","type":"post","link":"https:\/\/bacasable.webanalyste.com\/fr\/pixel-fb-pageview\/","title":{"rendered":"Tags Facebook"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developers.facebook.com\/docs\/meta-pixel\/reference\">https:\/\/developers.facebook.com\/docs\/meta-pixel\/reference<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Main tag + pageView<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!-- Facebook Pixel Code --&gt;\n&lt;script&gt;\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=&#91;];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)&#91;0];\n  s.parentNode.insertBefore(t,s)}(window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n  fbq('init', '<strong>123456789<\/strong>');\n  fbq('track', 'PageView');\n&lt;\/script&gt;\n&lt;noscript&gt;\n  &lt;img height=\"1\" width=\"1\" style=\"display:none\" \n       src=\"https:\/\/www.facebook.com\/tr?id={your-pixel-id-goes-here}&amp;ev=PageView&amp;noscript=1\"\/&gt;\n&lt;\/noscript&gt;\n&lt;!-- End Facebook Pixel Code --&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u00c9v\u00e8nements standards<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Pensez \u00e0 encapsuler les bouts de code dans des balises &lt;script> &#8230; &lt;\/script><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fbq(\n  'track', '<strong>Lead<\/strong>', {\n    content_name: 'Auto Insurance',\n    content_category: 'Quote',\n    value: 40.00,\n    currency: 'USD'\n  }\n);\n\nfbq(\n  'track', '<strong>ViewContent<\/strong>', { \n    content_type: 'product',\n    content_ids: &#91;'1234'],\n    content_name: 'ABC Leather Sandal',\n    content_category: 'Shoes',\n    value: 0.50,\n    currency: 'USD'\n  }\n);\n\nfbq(\n  'track', '<strong>Search<\/strong>', { \n    search_string: 'leather sandals',\n    content_category: 'Product Search',\n    content_ids: &#91;'1234', '2424', '1318', '6832'],\n    value: 0.50,\n    currency: 'USD'\n  }\n);\n\nfbq('track', 'AddToCart', {\n\ncontent_name: leather sandals,\ncontent_ids: &#91;'1234'],\ncontent_type: 'product',    \nvalue: 50.00,\ncurrency: 'USD'\n\nfbq(\n  'track', '<strong>Purchase<\/strong>', { \n    content_type: 'product',\n    contents: &#91;\n      { 'id': '1234', 'quantity': 2, },\n      { 'id': '4642', 'quantity': 1, }\n    ],\n    value: 25.00,\n    currency: 'USD'\n  }\n);\n\nfbq(\n  'trackCustom', '<strong>CUSTOM-EVENT-NAME<\/strong>', {\n    custom_parameter: 'ABC',\n    value: 10.00,\n    currency: 'USD'\n  }\n);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/developers.facebook.com\/docs\/meta-pixel\/reference Main tag + pageView \u00c9v\u00e8nements standards Pensez \u00e0 encapsuler les bouts de code dans des balises &lt;script> &#8230; &lt;\/script><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[216],"tags":[],"class_list":["post-1793","post","type-post","status-publish","format-standard","hentry","category-blog-tags"],"_links":{"self":[{"href":"https:\/\/bacasable.webanalyste.com\/fr\/wp-json\/wp\/v2\/posts\/1793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bacasable.webanalyste.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bacasable.webanalyste.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bacasable.webanalyste.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bacasable.webanalyste.com\/fr\/wp-json\/wp\/v2\/comments?post=1793"}],"version-history":[{"count":31,"href":"https:\/\/bacasable.webanalyste.com\/fr\/wp-json\/wp\/v2\/posts\/1793\/revisions"}],"predecessor-version":[{"id":27656,"href":"https:\/\/bacasable.webanalyste.com\/fr\/wp-json\/wp\/v2\/posts\/1793\/revisions\/27656"}],"wp:attachment":[{"href":"https:\/\/bacasable.webanalyste.com\/fr\/wp-json\/wp\/v2\/media?parent=1793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bacasable.webanalyste.com\/fr\/wp-json\/wp\/v2\/categories?post=1793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bacasable.webanalyste.com\/fr\/wp-json\/wp\/v2\/tags?post=1793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}