Skip to main content

Tutorial: Plum Analytics Integration

Role: Journal Manager / Site Administrator
Time: 15โ€“30 minutes
OJS Version: 3.5+

Plum Analytics (part of Elsevier) provides article-level metrics โ€” usage, captures, mentions, social media activity, and citations โ€” displayed via PlumX Widgets. This tutorial covers how to add PlumX Widgets to your OJS article pages.


Before You Startโ€‹

  • You have Journal Manager or Site Administrator access in OJS.
  • Your articles have DOIs registered with CrossRef (PlumX widgets use DOIs to identify articles). See Enable DOIs with CrossRef.
  • Your institution or journal has a Plum Analytics subscription, or you are using the free PlumX widget tier.
Free vs Paid

The basic PlumX Widget is free to embed and shows a subset of metrics. Full Plum Analytics dashboards require an Elsevier subscription.


Option A โ€” Custom HTML Block (Easiest)โ€‹

For journals without a dedicated OJS plugin:

Step 1 โ€” Get the PlumX Widget Scriptโ€‹

  1. Go to plumanalytics.com/learn/about-metrics/.
  2. Navigate to the PlumX Widgets section.
  3. Copy the standard widget embed code. It looks like:
<script type="text/javascript" src="//cdn.plu.mx/widget-popup.js"></script>
<a href="https://plu.mx/plum/a/?doi=YOUR_DOI"
class="plumx-plum-print-popup"
data-site="plum"
data-hide-when-empty="true">
</a>

Step 2 โ€” Embed via Custom Header Pluginโ€‹

  1. Go to Settings โ†’ Website โ†’ Plugins โ†’ Installed Plugins.
  2. Enable Custom Header Plugin.
  3. Click Settings next to the Custom Header Plugin.
  4. Paste the PlumX widget script in the header field.
  5. Save.

The widget script loads on every page. Replace YOUR_DOI with the article DOI in templates, or use the approach in Option B below.


Option B โ€” Template Override (Advanced)โ€‹

For Site Administrators who can modify OJS template files:

  1. Locate the article detail template: templates/frontend/pages/article.tpl (or copy to your custom theme's templates directory).
  2. Add the PlumX widget code inside the metrics/statistics section, substituting {$article->getStoredPubId('doi')} for the DOI.
  3. Clear the template cache: Administration โ†’ Clear Template Cache.

Step 3 โ€” Test the Widgetโ€‹

  1. Navigate to a published article that has a registered DOI.
  2. The PlumX badge should appear showing usage, captures, and citations.
  3. Click the badge to expand the full metrics popup.

Troubleshootingโ€‹

ProblemSolution
Widget shows but no dataThe DOI may not yet be indexed by Plum; allow 1โ€“7 days for new DOIs
Widget does not appearCheck that the script is loading (browser developer tools โ†’ Network tab)
DOI not foundVerify the DOI is correctly registered and resolves at doi.org

Next Stepsโ€‹