{"id":11112294,"date":"2019-01-21T10:53:37","date_gmt":"2019-01-21T10:53:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/facebook-pixel-with-gtm\/"},"modified":"2019-01-21T10:53:37","modified_gmt":"2019-01-21T10:53:37","slug":"facebook-pixel-with-gtm","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/facebook-pixel-with-gtm\/","title":{"rendered":"FaceBook Pixel with GTM"},"content":{"rendered":"<p>Hello There<\/p>\n<p>I am trying over and over again to send data layer info using GTM to facebook pixel.<br \/>\nBut for some reason, I keep getting nothing.<br \/>\nI create a variable http:\/\/prntscr.com\/ma09y7 on GTM<br \/>\nHere is my data layer from woocommerce: <\/p>\n<p>pagePostType: &#8220;product&#8221;,<br \/>\n\tpagePostType2: &#8220;single-product&#8221;,<br \/>\n\tpagePostAuthor: &#8220;no one&#8221;,<br \/>\n\tproductIsVariable: 0,<br \/>\n\tecommerce: {<br \/>\n\t\tdetail: {<br \/>\n\t\t\tproducts: [<br \/>\n\t\t\t\t{<br \/>\n\t\t\t\t\t&#8220;name: &#8220;OXO \u05de\u05d2\u05e9 \u05e7\u05e8\u05d7 \u05db\u05e4\u05d5\u05dc \u05e7\u05d5\u05d1\u05d9\u05d5\u05ea \u05e7\u05d8\u05e0\u05d5\u05ea&#8221;,<br \/>\n\t\t\t\t\t&#8220;id: 3748,<br \/>\n\t\t\t\t\t&#8220;price: &#8220;69&#8221;,<br \/>\n\t\t\t\t\t&#8220;category: &#8220;\u05d1\u05e8 \u05d5\u05d9\u05d9\u05df&#8221;,<br \/>\n\t\t\t\t\t&#8220;stocklevel: null<br \/>\n\t\t\t\t}<br \/>\n\t\t\t]<br \/>\n\t\t},<br \/>\n\t\timpressions: [],<br \/>\n\t\tcurrencyCode: &#8220;ILS&#8221;<br \/>\n\t}<br \/>\n}<\/p>\n<p>Here is my GTM facebook pixel view content tag:<\/p>\n<p>&lt;script&gt;<br \/>\n  fbq(&#8216;track&#8217;, &#8216;ViewContent&#8217;, {<br \/>\n    currency: &#8216;ILS&#8217;,<br \/>\n    content_ids: &#8216;{{Product ID}}&#8217;,<br \/>\n    content_type: &#8216;Product&#8217;,<br \/>\n  });<br \/>\n&lt;\/script&gt;<\/p>\n<p>Here is the result I get:<br \/>\nhttp:\/\/prntscr.com\/ma0bi5<\/p>\n<p>No matter what I tried it doesn&#8217;t work, Also tried on the variable to do products.id and still nothing.<br \/>\nWhat I am doing wrong?<br \/>\nPlease help me solve this.<\/p>\n<p>Thanks in advance<\/p>\n","protected":false},"template":"","class_list":["post-11112294","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11112294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11112294\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11112294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}