{"id":16168,"date":"2011-12-23T13:23:03","date_gmt":"2011-12-23T13:23:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/kissherder\/"},"modified":"2012-11-18T12:08:53","modified_gmt":"2012-11-18T12:08:53","slug":"kissherder","status":"closed","type":"plugin","link":"https:\/\/lt.wordpress.org\/plugins\/kissherder\/","author":318752,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.1","tested":"3.3.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"KissHerder","header_author":"Tristan Kromer, Peter Backx","header_description":"","assets_banners_color":"","last_updated":"2012-11-18 12:08:53","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/grasshopperherder.com\/","header_plugin_uri":"http:\/\/grasshopperherder.com\/","header_author_uri":"http:\/\/grasshopperherder.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2402,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[39235,8901,3283],"plugin_category":[],"plugin_contributors":[89572,89571],"plugin_business_model":[],"class_list":["post-16168","plugin","type-plugin","status-closed","hentry","plugin_tags-kiss","plugin_tags-kissmetrics","plugin_tags-metrics","plugin_contributors-pbackx","plugin_contributors-trikro","plugin_committers-pbackx","plugin_committers-trikro"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/kissherder.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The KissHerder plugin allows you to easily add your KissMetrics code. You can also track user interaction such as commenting, tweeting, shares, etc.<\/p>\n\n<!--section=installation-->\n<p>Install through the admin interface, or manually in wp-content\/plugins\/kissherder<\/p>\n\n<p>Once KissHerder is enabled, you should configure your KissMetrics API key.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>What event names should I use?<\/dt>\n<dd><p>KissMetrics allows you complete free choice in events. See the following page for a little more information:\nhttp:\/\/support.kissmetrics.com\/apis\/api-tips<\/p><\/dd>\n<dt>How do I track Facebook events?<\/dt>\n<dd><p>The Facebook social plugins emit a number of events. Most importantly the \"edge.create\" event which is triggerd when a user clicks a like button on your page.\nAssuming you have an XFBML like button somewhere on your page you can use the following snippet:<\/p>\n\n<pre><code>&lt;script type=\"text\/javascript\"&gt;\n    FB.Event.subscribe('edge.create', function(response) {\n      _kmq.push(['record', 'Facebook like']);\n    });\n&lt;\/script&gt;\n<\/code><\/pre>\n\n<p>You should paste this code just below wherever you include the button.<\/p>\n\n<p>You can use an XFBML like button on this page:\nhttp:\/\/developers.facebook.com\/docs\/reference\/plugins\/like\/<\/p>\n\n<p>Other events are documented here:\nhttp:\/\/developers.facebook.com\/docs\/reference\/javascript\/FB.Event.subscribe\/<\/p><\/dd>\n<dt>How do I track Twitter follows?<\/dt>\n<dd><p>Tracking Twitter events is very similar to Facebook tracking. Include the following snippet just below any Twitter follow code:<\/p>\n\n<pre><code>&lt;script type=\"text\/javascript\"&gt;\n    twttr.events.bind('follow', function(event) {\n      _kmq.push(['record', 'Twitter follow']);\n    });\n&lt;\/script&gt;\n<\/code><\/pre>\n\n<p>If you want to track tweets, use this:<\/p>\n\n<pre><code>&lt;script type=\"text\/javascript\"&gt;\n    twttr.events.bind('tweet', function(event) {\n      _kmq.push(['record', 'Tweeted']);\n    });\n&lt;\/script&gt;\n<\/code><\/pre>\n\n<p>A full list of events you can track is in the Twitter dev docs:\nhttps:\/\/dev.twitter.com\/docs\/intents\/events<\/p><\/dd>\n<dt>How do I track Google +1 (plusone)?<\/dt>\n<dd><p>It's easiest to add the tracking when you create your button:\nhttp:\/\/www.google.com\/webmasters\/+1\/button\/<\/p>\n\n<p>Click on \"Advanced Options\" and enter \"plusone_vote\" into the \"JS Callback Function\" field.<\/p>\n\n<p>Below the +1 code, include the following snippet:<\/p>\n\n<pre><code>&lt;script type=\"text\/javascript\"&gt;\n  function plusone_vote( obj ) {\n    _kmq.push(['record', 'Plus 1 vote']);\n  }\n&lt;\/script&gt;\n<\/code><\/pre><\/dd>\n<dt>How do I track LinkedIn shares?<\/dt>\n<dd><p>This currently requires an undocumented feature, so keep in mind that this might change in the future.\nStart by creating your button on the LinkedIn dev pages https:\/\/developer.linkedin.com\/plugins\/share-button\nInside the \"IN\/Share\" tag section you need to add the \"data-onSuccess\" callback function. Here's an example:<\/p>\n\n<pre><code>&lt;script src=\"http:\/\/platform.linkedin.com\/in.js\" type=\"text\/javascript\"&gt;&lt;\/script&gt;\n&lt;script type=\"IN\/Share\" data-url=\"http:\/\/www.streamhead.com\/\" data-counter=\"right\" data-onSuccess=\"linkedin_share\"&gt;&lt;\/script&gt;\n&lt;script type=\"text\/javascript\"&gt;\nfunction linkedin_share() {\n  _kmq.push(['record', 'Shared on LinkedIn']);\n}\n&lt;\/script&gt;\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>Version 1.1<\/h4>\n\n<ul>\n<li>Include KM JavaScript in the header instead of the footer.<\/li>\n<\/ul>\n\n<h4>Version 1.0<\/h4>\n\n<ul>\n<li>Initial version.<\/li>\n<\/ul>","raw_excerpt":"The KissHerder plugin allows you to easily add your KissMetrics code. You can also track user interaction such as commenting, tweeting, shares, etc.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16168"}],"author":[{"embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pbackx"}],"wp:attachment":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16168"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16168"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16168"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16168"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16168"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}