Install privatestater.js

To integrate PrivateStater into your website, you need to install a small code snippet called privatestater.js.

Do not worry if you do not have coding experience or use a no-code platform such as WordPress. PrivateStater provides plugins.

Below are all installation methods, ordered from most recommended to least recommended.

1. Use a Plugin

If PrivateStater provides a plugin for the platform you use, just install it and paste your website name.

Platform Installation Method Repository
WordPress Download the latest version from the releases page, then install the ZIP file from Admin > Plugins privatestater-for-wordpress

2. Use an Agent Skill

If you already use an AI coding agent and it can access your codebase directly, this is the most recommended method.

PrivateStater provides both general-purpose skills and plugins specialized for specific software such as Cursor.

Platform Installation Method Repository
Any agent Follow the instructions in this document privatestater-skills
Cursor Paste the repository link into the plugin menu in Cursor settings privatestater-cursor-plugin

3. Use GTM

PrivateStater also supports Google Tag Manager.

Platform Installation Method Repository
Google Tag Manager Import it from the community templates, or download and import the latest release privatestater-for-gtm

Note: Google Tag Manager can create privacy concerns, so it is better to skip this option unless you already use it. Even if you already use GTM, I recommend moving away from it as soon as possible.

4. Manual Installation

If you cannot use the methods above, add the script directly to your code.

Add the following script to the <head> section of your website:

<script> window.PrivateStaterConfig = { prstSite: "YOUR_SITE_ID" }; </script>
<script src="https://privatestater.com/privatestater.js"></script>

Replace YOUR_SITE_ID with the Website ID created in the dashboard.