PUQ Mautic Skip to main content

Description

Code Snippets addon WHMCS

Order now | Download | FAQ

PUQ Code Snippets — WHMCS Addon

PUQ Code Snippets is an addon module for WHMCS that lets you inject custom HTML, CSS, and JavaScript code into the client area and admin area pages — without editing any template files. Manage unlimited snippets with a built-in CodeMirror code editor, advanced page/user/product targeting, scheduling, version history with one-click rollback, and an emergency kill switch.


Key Features

  • Unlimited Code Snippets — create as many snippets as you need, each with its own settings
  • CodeMirror Editor — syntax-highlighted code editor with HTML/CSS/JS support, code folding, search, auto-close tags and brackets
  • Three Injection Positions — insert code inside <head>, after opening <body>, or before closing </body>
  • Area Targeting — target Client Area, Admin Area, or both
  • Page Targeting — target specific pages with checkboxes for 35+ client area pages and 40+ admin area pages
  • Custom URL Patterns — target any page by URL pattern matching (if URL contains the pattern, the snippet fires)
  • User Targeting — show snippets to all visitors, logged-in clients only, guests only, or specific client groups
  • Product/Service Targeting — show or hide snippets based on client's active products/services
  • Scheduling — set start and end dates for time-limited snippets (promotions, announcements)
  • Priority System — control the order in which snippets are rendered
  • Version History — complete log of all changes with side-by-side diff view
  • One-Click Rollback — restore any previous version of a snippet instantly
  • Kill Switch — emergency disable all snippets instantly via database toggle, flag file, or secret URL
  • Import / Export — export all snippets to JSON, import on another WHMCS instance
  • Dashboard — overview with key metrics, charts by area and position, recent changes log
  • License system — online/offline license verification with graceful degradation
  • English language interface

Use Cases

  • Analytics & Tracking — Google Analytics, GTM, Meta Pixel, Hotjar, etc.
  • Chat Widgets — Tawk.to, LiveChat, Crisp, Intercom, etc.
  • Custom CSS — style overrides, theme tweaks, branding adjustments
  • Banners & Announcements — promotional banners, maintenance notices, holiday messages
  • Custom JavaScript — form validation, UI enhancements, integrations
  • SEO Tags — meta tags, Open Graph, structured data
  • Cookie Consent — GDPR/cookie consent banners
  • A/B Testing — inject different code for different user segments

System Requirements

Requirement Minimum
WHMCS 8.x, 9.x
PHP 8.1, 8.2+
ionCube Loader v13 or newer (v14, v15)