How to add MicroMetrics with the WordPress plugin

If you have a WordPress website, you can copy/paste your MicroMetrics tracking code into the header.php or footer.php theme files or use our official MicroMetrics plugin. WordPress.

How to install MicroMetrics in WordPress

  1. Log in to your WordPress website.
  2. Go to Plugins, Add New.
  3. In the search engine enter micrometrics.
  4. Click Install Now, then Activate.
  5. That’s it!

Download MicroMetrics for WordPress here.

Setting up automatic events in WordPress

The MicroMetrics plugin for WordPress incorporates several automatic events, which only need to be triggered from the settings, outbound click tracking, search tracking and tracking 404 errors.

Once the plugin is installed and activated, in MicroMetrics > General you will find the available options.

MicroMetrics automatic events in WordPress

Setting up manual events in WordPress

The MicroMetrics plugin for WordPress also includes a simple event generator that allows you to measure “click” actions without having to touch the code.

Once the plugin is installed and activated, in MicroMetrics > Events you will find the tool to generate your own events.

To register an event correctly you must complete the following fields:

MicroMetrics manual events in WordPress

  • Selector (Required). The type of selector (#id or .class) on which you want to measure.
  • Attribute (Required). The name of the selector (#id or .class).
  • Name (Required). The name of the event to display in the MicroMetrics report.
  • Value (Optional). The quantitative value of the event. To apply decimals you must use the dot (.) as a separator.
  • Currency (Optional). The type of currency, if it has a value assigned.

You can add as many events as you like, but remember that a single javascript error caused by another plugin or theme can cause all javascript to malfunction on a page. Periodically check the browser console for javascript errors.