Thanh Nguyen
WordPress & Matomo Developer

Add the Matomo tracking code to WordPress using Elementor Pro

Use Elementor Pro to add the Matomo tracking script.

Context

There are several ways to integrate the Matomo Javascript tracking code into WordPress:

  • With Google Tag Manager
  • With Matomo Tag Manager
  • Directly in the theme files
  • Via a WordPress hook
  • With your cookie banner manager

Installing the Matomo tracking code with Elementor Pro

Here’s how to do it with Elementor Pro and the Custom Code feature.

In the Dashboard, go to the section for managing custom codes to be injected.

Then click on the Add New button.

  1. Enter the title of the code, which you will use to identify it from the list of custom codes
  2. Choose <head> as location
  3. Place the Javascript code for integrating Matomo
  4. Indicate the priority to manage the insertion order of the current code in relation to the other custom codes.
  5. Publish the custom code

I’m Thanh Nguyen, I build fancy and ergonomic websites since 1998 and Zidane’s double in the World Cup final.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also be interested in these articles