{"id":500,"date":"2020-02-28T16:09:54","date_gmt":"2020-02-28T16:09:54","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/knowledge-base\/plumrocket-live-feed-v1-x-developers-guide-and-api-reference"},"modified":"2021-09-27T09:06:19","modified_gmt":"2021-09-27T13:06:19","slug":"plumrocket-live-feed-v1-x-developers-guide-and-api-reference","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide","title":{"rendered":"Magento 1 Live Feed v1.x Developer Guide &#038; API Reference"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"using-plumrocket-magento-live-feed-and-faves-extensions-with-third-party-module-addthis\">Using Plumrocket Magento Live Feed and Faves extensions with third-party module AddThis<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If at some point you will need to track the activity using <a href=\"\/magento-1-live-feed\">Live Feed extension<\/a> and <a href=\"\/magento-1-faves\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Faves extension<\/a> together with <a href=\"http:\/\/www.addthis.com\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">third-party module AddThis<\/a> &#8211; minor modifications to the code are required to be made. You will need to open the according template that you use, and once you see this part of java script code that was added by AddThis extension:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-xml\" data-line=\"\">&lt;script type=&quot;text\/javascript&quot; src=&quot;\/\/s7.addthis.com\/js\/300\/addthis_widget.js&quot;&gt;&lt;\/script&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">please add the following code:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><div class=\"example-block\">\n    <p class=\"example-block-title\"><strong>Code Example<\/strong><\/p>\n\n    <div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\" data-line=\"\">&lt;?php\n    $faveButtonsHeader = $this-&gt;getLayout()-&gt;createBlock(&#039;fave\/buttons_head&#039;);\n    if ($faveModuleEnabled = !empty($faveButtonsHeader)) {\n        $faveButtonsHeader\n            -&gt;setPageType(&#039;product&#039;)\n            -&gt;addButton(&#039;google_plus_button&#039;)\n            -&gt;addButton(&#039;tweet_button&#039;)\n            -&gt;addButton(&#039;fb_like&#039;)\n            \/\/-&gt;addButton(&#039;pin_it_button&#039;)\n            -&gt;toHtml();\n    ?&gt;\n        &lt;script type=&quot;text\/javascript&quot;&gt;\n            addthis.addEventListener(&#039;addthis.menu.share&#039;, function(evt) {\n                var u = evt.data.url;\n                var p = u.indexOf(&#039;#&#039;);\n                if (p != -1) {\n                    u = u.substr(0, p);\n                }\n    \n                switch (evt.data.service) {\n                    case &#039;facebook_lile&#039;:\n                    case &#039;facebook&#039;:\n                        plumrocketFaveObserveEvent(u, &#039;fb_like&#039;);\n                        break;\n                    case &#039;tweet&#039;:\n                    case &#039;twitter&#039;:\n                        plumrocketFaveObserveEvent(u, &#039;tweet_button&#039;);\n                        break;\n                    case &#039;google_plusone_share&#039;:\n                    case &#039;google&#039;:\n                        plumrocketFaveObserveEvent(u, &#039;google_plus_button&#039;);\n                        break;\n                }\n    \n            });\n        &lt;\/script&gt;\n    &lt;?php } ?&gt;<\/code><\/pre><\/div>\n<\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using Plumrocket Magento Live Feed and Faves extensions with third-party module AddThis If at some point you will need to track the activity using Live Feed extension and Faves extension together with third-party module AddThis &#8211; minor modifications to the code are required to be made. You will need to open the according template that &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento 1 Live Feed v1.x Developer Guide &#038; API Reference&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[237],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-magento-1-live-feed-v1","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Magento Live Feed v1.x Developer Guide &amp; API Reference - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Using Plumrocket Magento Live Feed and Faves extensions with third-party module AddThis If at some point you will need to track the activity using Live\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 1 Live Feed v1.x Developer Guide &amp; API Reference - Plumrocket Documentation\" \/>\n<meta property=\"og:description\" content=\"Using Plumrocket Magento Live Feed and Faves extensions with third-party module AddThis If at some point you will need to track the activity using Live\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T16:09:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-27T13:06:19+00:00\" \/>\n<meta name=\"author\" content=\"Plumrocket\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento Live Feed v1.x Developer Guide & API Reference - Plumrocket Documentation","description":"Using Plumrocket Magento Live Feed and Faves extensions with third-party module AddThis If at some point you will need to track the activity using Live","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:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide","og_locale":"en_US","og_type":"article","og_title":"Magento 1 Live Feed v1.x Developer Guide & API Reference - Plumrocket Documentation","og_description":"Using Plumrocket Magento Live Feed and Faves extensions with third-party module AddThis If at some point you will need to track the activity using Live","og_url":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide","og_site_name":"Plumrocket Documentation","article_published_time":"2020-02-28T16:09:54+00:00","article_modified_time":"2021-09-27T13:06:19+00:00","author":"Plumrocket","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide#article","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide"},"author":{"name":"Plumrocket","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"headline":"Magento 1 Live Feed v1.x Developer Guide &#038; API Reference","datePublished":"2020-02-28T16:09:54+00:00","dateModified":"2021-09-27T13:06:19+00:00","mainEntityOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide"},"wordCount":89,"commentCount":0,"articleSection":["v1"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide","url":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide","name":"Magento 1 Live Feed v1.x Developer Guide & API Reference - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2020-02-28T16:09:54+00:00","dateModified":"2021-09-27T13:06:19+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"Using Plumrocket Magento Live Feed and Faves extensions with third-party module AddThis If at some point you will need to track the activity using Live","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1\/devguide#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento Extensions","item":"https:\/\/plumrocket.com\/magento-1-extensions"},{"@type":"ListItem","position":2,"name":"Magento Live Feed","item":"https:\/\/plumrocket.com\/magento-1-live-feed"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed"},{"@type":"ListItem","position":4,"name":"v1","item":"https:\/\/plumrocket.com\/docs\/magento-1-live-feed\/v1"},{"@type":"ListItem","position":5,"name":"Developer Guide"}]},{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20","name":"Plumrocket","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/85ed2f38dbe6a031f443b1949101e9b31bbd6985eae2cac6695629e7ad280aee?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/85ed2f38dbe6a031f443b1949101e9b31bbd6985eae2cac6695629e7ad280aee?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/85ed2f38dbe6a031f443b1949101e9b31bbd6985eae2cac6695629e7ad280aee?s=96&d=mm&r=g","caption":"Plumrocket"},"sameAs":["https:\/\/plumrocket.com\/docs"]}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":3,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":24559,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/500\/revisions\/24559"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}