Install on WordPress

Use the Modovisa plugin or add the snippet manually to start tracking in real time.

The easiest way to add Modovisa to WordPress is our official plugin. Paste your Tracking Token into the plugin settings and you’re done. Admin pages (wp-admin) are automatically excluded from tracking.


Option 1 — Modovisa WordPress Plugin (Recommended)

  1. In your WordPress dashboard, go to Plugins → Add New.
  2. Search for “Modovisa Analytics” and install the plugin by Modovisa.
  3. Activate the plugin and open Settings → Modovisa Analytics.
  4. Paste your Tracking Token and click Save.

Alternative — Install the plugin by uploading the ZIP

If your site can’t install plugins directly from the directory, download the plugin ZIP from WordPress.org and upload it in your dashboard.

Download Modovisa Analytics WordPress.org extension page
  1. Download the ZIP from the button above (it will be named like modovisa-analytics.zip).
  2. In your WP Admin, go to Plugins → Add New → Upload Plugin.
  3. Choose the ZIP file and click Install Now, then Activate.
  4. Open Settings → Modovisa Analytics, paste your Tracking Token, and Save.

Option 2 — Manually via header.php

Go to Appearance → Theme File Editor, open header.php, and paste this just before the closing </head> tag:

<script>
!function(){
  var s=document.createElement("script");
  s.src="https://cdn.modovisa.com/modovisa.min.js";
  s.async=1;
  s.dataset.token="YOUR_TRACKING_TOKEN";
  document.head.appendChild(s);
}();
</script>
</head>
                    

Option 3 — Inject via functions.php (optional)

Add this to your theme’s functions.php to print the script in <head> without editing templates:

function add_modovisa_script_to_head() {
  ?>
  <script>
    !function(){
      var s=document.createElement("script");
      s.src="https://cdn.modovisa.com/modovisa.min.js";
      s.async=1;
      s.dataset.token="YOUR_TRACKING_TOKEN";
      document.head.appendChild(s);
    }();
  </script>
  <?php
}
add_action('wp_head', 'add_modovisa_script_to_head');
                    

Verify the installation

  • Open your site in a new tab, then DevTools → Network and search for modovisa.min.js.
  • Enable “Preserve log” and refresh. You should see the script load on public pages.
  • Visit the Modovisa dashboard → Live to see your visit in real time.