{"id":3204,"date":"2020-07-20T12:47:05","date_gmt":"2020-07-20T12:47:05","guid":{"rendered":"https:\/\/www.leadshook.com\/help\/?p=3204"},"modified":"2024-02-14T11:40:46","modified_gmt":"2024-02-14T11:40:46","slug":"how-to-trigger-events-based-on-a-given-answer","status":"publish","type":"post","link":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/","title":{"rendered":"How to Fire Pixels and Events Based Specific Conditions"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>LeadsHook provides a great UI for creating your Decision Trees. There are countless features that makes server side scripting easy. <\/li>\n\n\n\n<li>Additionally, power users might be glad to know that it&#8217;s also possible to go low level and use any HTML\/CSS\/JS that you might like.<\/li>\n\n\n\n<li>In this example we will be showing you how to create a script that fires an event based on the answer a user has provided.<\/li>\n<\/ul>\n\n\n\n<p><strong>Step 1:<\/strong> First drag a question node onto the canvas. It will open for editing automatically.<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Give it a title, In this example we will be specifying the question as &#8220;Are you male or female?&#8221;.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Select the type of node you want. Any type that specifies a one word answer will work for this example. So lets try using a multiple choice node type. Its located up the top right hand corner.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-10.png\" data-rel=\"lightbox-gallery-hDHQexj2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-10.png\" alt=\"\" class=\"wp-image-3211\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 4:<\/strong> Next assign a custom field and provide answers. The blue &#8220;Add Answer Custom Fields&#8221; button in the bottom left is where you do that. For example:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-7.png\" data-rel=\"lightbox-gallery-hDHQexj2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-7.png\" alt=\"\" class=\"wp-image-3205\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 5:<\/strong> Now we need to add the script. In the bottom right hand corner you will see the node level script button. Click on that and setup your script like so:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-8.png\" data-rel=\"lightbox-gallery-hDHQexj2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-8.png\" alt=\"\" class=\"wp-image-3206\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Its important that we set the event to fire on &#8216;exit&#8217; of the node. Because on &#8216;enter&#8217; the answer will be blank.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>For you convenience here is the script to copy\/paste<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script&gt;\n  \n  if('{_c_answer}'==\"Male\"){\n  \talert(\"You selected Male!\");\n  }\n  else{\n  \talert(\"You selected Female!\");\n  \t}  \n  \n  \n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<p>The {_c_answer} custom field will evaluate as the choice the user has taken. So you need it to equal an answer. In this case its &#8220;Male&#8221;.<\/p>\n\n\n\n<p>Simply replace the debugging code ( alert or log ), with the code you want to fire. This can be any valid JavaScript code.<\/p>\n\n\n\n<p>For example &#8211; here&#8217;s how you would fire a FB standard event if the answer is &#8220;Male&#8221;. No tracking occurs if the answer is anything else.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-11.png\" data-rel=\"lightbox-gallery-hDHQexj2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-11.png\" alt=\"\" class=\"wp-image-3215\"\/><\/a><\/figure>\n\n\n\n<p> <\/p>\n\n\n\n<p>For your convenience here is the code to copy\/paste:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script&gt;\n\n  if('{_c_answer}'==\"Male\"){\n    \n    \/\/Fire custom FB Event\n    fbq('track', 'ViewContent', {\n     content_name: '{_c_dt}',\n     content_category: '{_c_node}',\n     content_ids: &#91;'{_c_question}'],\n     content_type: '{_c_answer}'\n    });\n  }\n  else{\n  \t\/\/Nothing\n  \t}  \n\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<p><strong>Step 6:<\/strong> Remember to publish and access via direct link\/embed ( because scripts don&#8217;t fire on preview ). And you are Done! <\/p>\n\n\n\n<p>You can see this working here:<\/p>\n\n\n\n<p><a href=\"https:\/\/test2.leadshook.io\/survey\/1m7WmqBo7Sf12N4BucO9SBVROUStCxj3B10d6IPg\">https:\/\/test2.leadshook.io\/survey\/1m7WmqBo7Sf12N4BucO9SBVROUStCxj3B10d6IPg<\/a><\/p>\n\n\n\n<p>As requested by our Facebook group, here&#8217;s a complex example with multiple if\/else statements combined with answers stored in previous nodes.<\/p>\n\n\n\n<p><strong>Multiple nodes look like this:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/08\/image-41.png\" alt=\"\" class=\"wp-image-3303\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Note that each node stores the answer in a custom field. LH custom fields can be used almost anywhere ( even in scripts! )<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script&gt; \nif('{_c_answer}'==\"Male\" &amp;&amp; '{age}' &lt; 50 ){\n\n    \/\/if Male and less than fifty\n    console.log( \"Male and under fifty\");\n  \n    \/\/Fire custom FB Event\n    fbq('track', 'ViewContent', {\n     content_name: '{_c_dt}',\n     content_category: '{_c_node}',\n     content_ids: &#91;'{_c_question}'],\n     content_type: '{_c_answer}'\n    });\n  }\nelse if('{_c_answer}'==\"Female\" &amp;&amp; '{age}' &lt; 50 ){\n    \/\/if Female and less than fifty\n    console.log(\"Female and under fifty\");\n  \n    \/\/fire event here\n}\nelse{\n    \/\/everyone over fifty of any gender\n    console.log(\"everyone over fifty any gender\");\n}\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<p>You can see the debug log in the browser console prove its working. <\/p>\n\n\n\n<p>Like in this example here: <a href=\"https:\/\/test2.leadshook.io\/survey\/GgMMxMLDMpuzcv2n43zJjVqj1qgXiOVuBJfFcvsW\">https:\/\/test2.leadshook.io\/survey\/GgMMxMLDMpuzcv2n43zJjVqj1qgXiOVuBJfFcvsW<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Step 1: First drag a question node onto the canvas. It will open for editing automatically. Step 2: Give it a title, In this example we will be specifying the question as &#8220;Are you male or female?&#8221;. Step 3: Select the type of node you want. Any type that specifies a one word answer [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,259,620,239],"tags":[139,264,711,100,721,414,226,103,169,86,390,567,111],"class_list":["post-3204","post","type-post","status-publish","format-standard","hentry","category-leadshook","category-nodes","category-scripts","category-tracking","tag-answer","tag-custom-fields","tag-event","tag-facebook","tag-fire","tag-ga","tag-google","tag-gtm","tag-logic","tag-node","tag-pixel","tag-script","tag-tracking"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Fire Pixels and Events Based Specific Conditions - LeadsHook Knowledge Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fire Pixels and Events Based Specific Conditions - LeadsHook Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"Introduction: Step 1: First drag a question node onto the canvas. It will open for editing automatically. Step 2: Give it a title, In this example we will be specifying the question as &#8220;Are you male or female?&#8221;. Step 3: Select the type of node you want. Any type that specifies a one word answer [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/\" \/>\n<meta property=\"og:site_name\" content=\"LeadsHook Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/leadshook\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-20T12:47:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-14T11:40:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-10.png\" \/>\n<meta name=\"author\" content=\"Nik T\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@leadshook\" \/>\n<meta name=\"twitter:site\" content=\"@leadshook\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nik T\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/\"},\"author\":{\"name\":\"Nik T\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/person\\\/4bfe37d814563cc729828b7055313f4d\"},\"headline\":\"How to Fire Pixels and Events Based Specific Conditions\",\"datePublished\":\"2020-07-20T12:47:05+00:00\",\"dateModified\":\"2024-02-14T11:40:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/\"},\"wordCount\":445,\"publisher\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/image-10.png\",\"keywords\":[\"answer\",\"custom fields\",\"event\",\"facebook\",\"fire\",\"GA\",\"Google\",\"gtm\",\"logic\",\"node\",\"pixel\",\"script\",\"tracking\"],\"articleSection\":[\"LeadsHook\",\"Nodes\",\"Scripts\",\"Tracking\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/\",\"name\":\"How to Fire Pixels and Events Based Specific Conditions - LeadsHook Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/image-10.png\",\"datePublished\":\"2020-07-20T12:47:05+00:00\",\"dateModified\":\"2024-02-14T11:40:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/image-10.png\",\"contentUrl\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/image-10.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-trigger-events-based-on-a-given-answer\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fire Pixels and Events Based Specific Conditions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\",\"name\":\"LeadsHook Knowledge Base\",\"description\":\"LeadsHook Training &amp; Technical Help\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\",\"name\":\"LeadsHook\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/leadshook-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/leadshook-logo.png\",\"width\":350,\"height\":83,\"caption\":\"LeadsHook\"},\"image\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/leadshook\\\/\",\"https:\\\/\\\/x.com\\\/leadshook\",\"https:\\\/\\\/www.linkedin.com\\\/showcase\\\/leadshook\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/person\\\/4bfe37d814563cc729828b7055313f4d\",\"name\":\"Nik T\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g\",\"caption\":\"Nik T\"},\"sameAs\":[\"http:\\\/\\\/www.LeadsHook.com\"],\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/author\\\/nik\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Fire Pixels and Events Based Specific Conditions - LeadsHook Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/","og_locale":"en_US","og_type":"article","og_title":"How to Fire Pixels and Events Based Specific Conditions - LeadsHook Knowledge Base","og_description":"Introduction: Step 1: First drag a question node onto the canvas. It will open for editing automatically. Step 2: Give it a title, In this example we will be specifying the question as &#8220;Are you male or female?&#8221;. Step 3: Select the type of node you want. Any type that specifies a one word answer [&hellip;]","og_url":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/","og_site_name":"LeadsHook Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/leadshook\/","article_published_time":"2020-07-20T12:47:05+00:00","article_modified_time":"2024-02-14T11:40:46+00:00","og_image":[{"url":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-10.png","type":"","width":"","height":""}],"author":"Nik T","twitter_card":"summary_large_image","twitter_creator":"@leadshook","twitter_site":"@leadshook","twitter_misc":{"Written by":"Nik T","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/#article","isPartOf":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/"},"author":{"name":"Nik T","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/4bfe37d814563cc729828b7055313f4d"},"headline":"How to Fire Pixels and Events Based Specific Conditions","datePublished":"2020-07-20T12:47:05+00:00","dateModified":"2024-02-14T11:40:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/"},"wordCount":445,"publisher":{"@id":"https:\/\/www.leadshook.com\/help\/#organization"},"image":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/#primaryimage"},"thumbnailUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-10.png","keywords":["answer","custom fields","event","facebook","fire","GA","Google","gtm","logic","node","pixel","script","tracking"],"articleSection":["LeadsHook","Nodes","Scripts","Tracking"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/","url":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/","name":"How to Fire Pixels and Events Based Specific Conditions - LeadsHook Knowledge Base","isPartOf":{"@id":"https:\/\/www.leadshook.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/#primaryimage"},"image":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/#primaryimage"},"thumbnailUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-10.png","datePublished":"2020-07-20T12:47:05+00:00","dateModified":"2024-02-14T11:40:46+00:00","breadcrumb":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/#primaryimage","url":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-10.png","contentUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/07\/image-10.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.leadshook.com\/help\/how-to-trigger-events-based-on-a-given-answer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.leadshook.com\/help\/"},{"@type":"ListItem","position":2,"name":"How to Fire Pixels and Events Based Specific Conditions"}]},{"@type":"WebSite","@id":"https:\/\/www.leadshook.com\/help\/#website","url":"https:\/\/www.leadshook.com\/help\/","name":"LeadsHook Knowledge Base","description":"LeadsHook Training &amp; Technical Help","publisher":{"@id":"https:\/\/www.leadshook.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.leadshook.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.leadshook.com\/help\/#organization","name":"LeadsHook","url":"https:\/\/www.leadshook.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png","contentUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png","width":350,"height":83,"caption":"LeadsHook"},"image":{"@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/leadshook\/","https:\/\/x.com\/leadshook","https:\/\/www.linkedin.com\/showcase\/leadshook\/"]},{"@type":"Person","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/4bfe37d814563cc729828b7055313f4d","name":"Nik T","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g","caption":"Nik T"},"sameAs":["http:\/\/www.LeadsHook.com"],"url":"https:\/\/www.leadshook.com\/help\/author\/nik\/"}]}},"_links":{"self":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/3204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/comments?post=3204"}],"version-history":[{"count":16,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/3204\/revisions"}],"predecessor-version":[{"id":7056,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/3204\/revisions\/7056"}],"wp:attachment":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/media?parent=3204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/categories?post=3204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/tags?post=3204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}