WordPress
Install Trakily on WordPress with the free WPCode plugin, without editing your theme.
The examples use placeholders. In the app, Settings → Tracking shows the same snippet with your website id (it starts with pls_) and domain already filled in, so copy it from there.
Install
- 1
Install the free WPCode plugin: Plugins → Add New, search for “WPCode”, then install and activate it.
- 2
Go to Code Snippets → Header & Footer and paste the script into the Header box.
- 3
Click Save Changes. No theme edits are needed, and the snippet survives theme updates.
<script defer data-website-id="pls_…" data-domain="example.com" src="https://trakily.com/js/script.js" ></script>
Caching plugins
If you use a page cache (WP Rocket, W3 Total Cache, LiteSpeed and similar), clear it after saving so cached pages include the script. Options that delay or combine JavaScript can also hold the script back until the first interaction; exclude /js/script.js from them if your numbers look low.
Check the install
Open your live site in a normal browser window, then go to Settings → Tracking in Trakily. The status line switches from Waiting for the first event… to Receiving events within a few seconds of your visit.
Still waiting? Add data-debug="true" to the script tag and open the browser console: every event is logged with a [trakily] prefix, and if tracking is disabled the log says why (missing attributes, localhost, iframe, bot or trakily_ignore). The Quickstart lists the common causes.