Installation Guidelines
WordPress
How to add Faurya to your website using WordPress.
Add Faurya to your WordPress site
Follow these steps to integrate Faurya analytics into your WordPress site.
Method 1: Using the Faurya plugin (Recommended)
- Log in to your WordPress admin dashboard.
- Navigate to Plugins > Add, search for "Faurya" and install the plugin.
- Open the plugin settings page (under Settings > Faurya in the sidebar).
- Enter your Faurya ID (e.g.
your_website_id) from your Faurya website settings, then save.
After a few minutes, you should start seeing pageviews from your WordPress site in your Faurya dashboard.
Method 2: Manually adding the script (Advanced)
This method requires basic knowledge of PHP and WordPress theme structure. Always back up your theme files before making changes. Changes might be overwritten by theme updates if you are not using a child theme.
- In your WordPress admin dashboard, go to Appearance > Theme File Editor.
- Select your active theme.
- Find and open the
header.phpfile (Theme Header). - Paste your Faurya tracking script just before the closing
</head>tag:
<script
defer
data-website-id="YOUR_WEBSITE_ID"
data-domain="yourdomain.com"
src="https://faurya.com/js/script.js"
></script>Replace
yourdomain.comwith your website's root domain.
- Click Update File.
Verify installation
After implementing either method:
- Visit your live website.
- Check your Faurya dashboard for incoming data. It might take a few minutes for the first pageviews to appear.
For advanced configuration options like localhost tracking, custom API endpoints, or cross-domain setup, see the script configuration reference.