WordPress Integration
Integrating Analytika into WordPress takes less than two minutes. No heavy plugins are required!
Method 1: Using a Header/Footer Plugin (Recommended)
- Log into your WordPress Admin Dashboard.
- Go to Plugins > Add New and search for “WPCode” or “Insert Headers and Footers”.
- Install and activate the plugin.
- Go to Code Snippets > Header & Footer.
- Paste your Analytika tracking script into the Header section:
<script defer src="https://analytika.me/a.js" data-website-id="YOUR-WEBSITE-ID"></script> - Click Save Changes.
Method 2: Editing functions.php
If you prefer not to use plugins and are comfortable editing code, you can inject the script directly into your theme’s functions.php.
function add_analytika_script() {
echo '<script defer src="https://analytika.me/a.js" data-website-id="YOUR-WEBSITE-ID"></script>';
}
add_action('wp_head', 'add_analytika_script');