Installing Shareaholic on Simplero

IN THIS ARTICLE

The following tutorial will help you install Shareaholic on Simplero:

simplero_logo.png

If you have not already signed up for Shareaholic, check out the Getting Started with Shareaholic Guide before following the instructions below.

Install Shareaholic Setup Code (Shareaholic.js)

  1. Log into your Simplero account.

  2. Under Settings, click on Tracking:
    simplero-install-step-1-1.png

  3. Paste your site's Shareaholic setup HTML code into the box titled Global Tracking Code:
    simplero-install-step-2-1.png

    Your site's Shareaholic setup code can be found under Site Settings -> Installation tab on Shareaholic.com: 
    shareaholic-simplero-install-code.png

  4. Congratulations - Shareaholic is now installed on your website!
    celebrate-together.jpg

Install Shareaholic Content Meta Tags (more info)

The following adds author name, article published at timestamp, and keywords Shareaholic meta tag to your Blog pages. It also marks non-article pages (for example your blog index page) to be not recommendable.

<!-- Shareaholic Content Tags -->
{% if post.poster.name != blank %}
  <meta name='shareaholic:article_author_name' content='{{ post.poster.name }}' />
{% endif %}

{% if post.published_at != blank %}
  <meta name='shareaholic:article_published_time' content='{{ post.published_at | date: "%Y-%m-%dT%H:%M:%S" }}' />
{% endif %}

<meta name='shareaholic:keywords' content='type:{{ meta_data.type }}' />
<meta name='shareaholic:keywords' content='type:blog' />

{% if meta_data.type != "article" %}
  <meta name='shareaholic:article_visibility' content='private' />
{% endif %}

{% if post.categories != empty %}
  {% for category in post.categories %}
    <meta name='shareaholic:keywords' content='cat:{{ category.label | downcase }}' />
  {% endfor %}
{% endif %}
<!-- Shareaholic Content Tags -->

In this example, we added the above code to the "blog_post_meta.liquid" file of the theme (located under Snippets):

simplero-shareaholic-content-meta-tags.jpg

To edit your Simplero theme:

  1. Under Settings, click on Themes:
    simplero-shareaholic-content-meta-tags-edit-theme-1.jpg
  2. Click on Customize theme -> Edit code
    simplero-shareaholic-content-meta-tags-edit-theme-2.jpg

How-to install an In-page Shareaholic App

Shareaholic In-page Apps are special apps that let you place them exactly where you want in your website layout or template at the location where the app should be displayed. In-Page Share Buttons, In-Page Related Content and In-Page Follow Buttons are examples of Shareaholic In-Page apps.

If you have not created an In-page Shareaholic App, check out the Installing an In-page Shareaholic App Guide before following the instructions below.

To add an In-page Shareaholic App in your template:

  1. Click on Edit template for the page type:
    simplero-edit-blog-template-share-buttons.jpg
  2. Add a new Section:
    simplero-edit-blog-template-share-buttons-2.jpg
  3. Select type Text:
    simplero-edit-blog-template-share-buttons-3.jpg
  4. Click on the Source Code icon:
    simplero-edit-blog-template-share-buttons-4.jpg
  5. Enter Shareaholic's In-page app code here:
    simplero-edit-blog-template-share-buttons-5.jpg

    Alternatively, instead of adding a section of type Text, you can also add a section of type Script and enter Shareaholic's In-page app code here. It says "JavaScript" but it's fine to add HTML as well:
    simplero-edit-blog-template-share-buttons-7.jpg


  6. Save your changes and you're done! The In-page apps that you've added to the template will now render on the page:
    simplero-edit-blog-template-share-buttons-6.jpg
Was this article helpful?
1 out of 1 found this helpful