Tinylytics and Kudos
Any one using tinylytics.app with the Kudos option enabled?
I am sure in my index or entries file its in the wrong place (Magazine) but tried it in several locations.
To show one kudos button on the page create an element on the page with a class of .tinylytics_kudos. That allows the script to locate it and show a relevant kudos button and count. Here is a good example of what it should like:
<button class="tinylytics_kudos"></button>
To show multiple kudos buttons on the same page, for example on an index page full of posts, use similar markup as above, with a few tweaks.
<button class="tinylytics_kudos" data-path="/the-path/to/your-post" ></button>
Note the extra data-path="" attribute. If you set this, it will make sure to only grab the correct Kudos count for the path you entered here. If you leave this out, it'll use the current page path: just like the single kudos button above.
Note that paths need to be correct and prepended with a forward slash (if none is set): "/". If you leave it out, then kudos might not be recorded correctly.
Where do you want the kudos button to appear? On the post page only, or on your site's index page?
Answered a year ago · Edit answerYou'll want to add something like this:
<button class="tinylytics_kudos" data-path="{{{entry.url}}}" ></button>
to the template file entry_line.html
Answered a year ago · Edit answerAll set I added it to the entry and found the correct placement - thank you
Answered a year ago · Edit answer