Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Book a Demo
  • Product Updates
  • Contact Us
  • Home
  • API & Webhooks
  • API V2

How to track Views and Readings through API

Monitor engagement on questions and categories programmatically

Written by Diego Selzlein

Updated at September 29th, 2025, by Amanda Helpjuice

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Managing Users Permissions & Accessibility Content Management Analytics Video Tutorials
  • Article Editor
  • Swifty AI
  • Languages & Translations
  • Settings
    User Settings User Behavior Knowledge Base Settings Custom Domain
  • Authentication
  • Customization
    Customization Guides
  • API & Webhooks
    API V3 API V2
  • Billing / Subscription
+ More

Table of Contents

Endpoints Parameters Viewing Analytics Best Practices

Helpjuice does not have dedicated API endpoints for incrementing views and readings under the "/api" section. However, if you are using our API to show content outside of Helpjuice you can user the same endpoints that we use to keep tracking analytics.

In this article, you’ll learn:

  • Which API endpoints track views, readings, and time spent
  • How to provide required parameters for analytics
  • Best practices to accurately measure engagement

Endpoints

The endpoints are:

Endpoint Description
POST /questions/question_ID/analytics/DATE/views
 
Increment question views for the given date
POST /questions/question_ID/analytics/DATE/readings
 
Increment question readings for the given date
 
POST /questions/question_ID/analytics/date/seconds_spent?t=seconds-past Increment time spent in a question
POST /categories/category_ID/analytics/date/views
 
Increment category views for the given date
 

Parameters

Parameter Type Description
question_id
 
Integer The ID of the question/article for which you want to track analytics
date Date (YYYY-MM-DD) The date on which analytics will be affected. This needs to be from yesterday to tomorrow. Helpjuice does not accept dates far in the past or the future. When an invalid date is provided, we'll use Today.
seconds-past Integer The amount of seconds you want to increase the Time Spent metric by. The limit is 120s and we recommend stop tracking this metric after the user stayed for over a few minutes in the page. Someone might have forgotten it open and left, if you keep tracking the numbers will be very high.
category_ID Integer The ID of the category you want to track analytics for. Categories can only track views.

Viewing Analytics

  1. Go to your Analytics section
  2. Navigate to the Articles or Categories section.
  3. Export data as needed for reporting purposes.

Best Practices

  • Monitor analytics directly through the Helpjuice dashboard.
  • Avoid trying to manually increment metrics via unsupported endpoints.
  • Regularly review popular articles to identify content gaps.
api integration analytics tracking

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Tracking Analytics with Google Analytics 4 (GA4)
  • How To Retrieve Answers Through API

Copyright © 2025 - Helpjuice

Helpjuice, Inc. is a registered US Corporation, EIN # 45-2275731

Download W9
  • Help
  • Features
  • Pricing
  • About
  • Careers
  • Customers
  • Blog
  • Case Studies
  • Resources
  • Knowledge Base Examples
  • Privacy Policy
  • Terms of Service

Why is the knowledge base important?

With a knowledge base, you can allow your customers to self-help themselves, thus reducing your customer support by up to 60%. Furthermore, you can also have your team get instant answers to the questions they need without having to email themselves all using knowledge base software.

What is the purpose of a knowledge base?

The purpose of knowledge base software is to allow you to host your knowledge base/corporate wiki in one centralized 'hub'. Both your customers, and employees can now access information within seconds!

Made with from Miami, Bosnia, Morocco & Brasil

+1 (833) 387 3877 support@helpjuice.com
Expand