Update Post Analytics - Dashboard Installer

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000109092

The Install New Updates module on the admin dashboard lists one-time platform installers that still have pending steps on the site. Clicking the green Check For Updates button refreshes the list — an installer only appears when the site actually has something left to install, and it disappears from the list once its steps are complete.

What Update Post Analytics Does

This installer adds two database columns that let click analytics be tracked at the level of individual posts. It only adds columns to the tracking table; it does not change or remove any of the existing click data.

Both columns are added to the users_clicks table (where the platform records click activity):

  • post_id: a numeric column (BIGINT, defaulting to 0) that links a recorded click to the specific post that was viewed.
  • is_single_post: a small flag column (TINYINT, defaulting to 0) that records whether the linked post_id refers to a single post (1) or a group post (0).

Why It Appears

The installer checks the users_clicks table for both columns and appears whenever either post_id or is_single_post is missing. If both columns already exist, the installer does not appear.

This is a legacy condition. Databases created before per-post click tracking became standard will see the installer offered, while newer sites already have both columns in place. Seeing it does not mean anything is broken; it means the database predates this structure update.

Why It Matters

These two columns are what let a click be attributed to a specific post and identified as a single or group post. Without them, click records cannot be tied to individual posts, so post-level analytics have nowhere to store that relationship. Adding them brings the database in line with what post analytics expects. Skipping the installer will not break the existing click data, but it leaves the database missing the columns that per-post analytics rely on.

How to Run It

  1. From the admin dashboard, find the Install New Updates module and click Check For Updates.
  2. If the site has pending steps, Update Post Analytics appears in the list. Click Install.
  3. After it completes, click Check For Updates again. The entry disappears once both columns exist.

If Update Post Analytics does not appear in the list, the website is already up to date, so there is nothing to do.

After Running

Nothing changes visibly on the website. The existing click records are preserved; only the two new tracking columns are added to the table. There is nothing to reconfigure afterward.

The installer re-checks the columns before making changes and only adds the ones that are still missing, so it is safe to run even if part of the update was already applied earlier. If both columns already exist, it reports that the columns are already installed and makes no changes.