GoDaddy Website Builder offers tools for building websites with customisable navigation.

Integrating Matomo with your GoDaddy Website platform enriches insights into visitor interactions, content performance, and website/app performance. This helps optimise content effectiveness, conversion drivers, visitor experiences and more! Before tracking, ensure compliance with data protection regulations by obtaining user consent where required.

Requirements

Before proceeding, ensure you have the following in place:

  • New Users: Create your Matomo account (Cloud or On-Premise).
  • Current Users: You have superuser access to add a new measurable to an existing Matomo instance.
  • A GoDaddy Website Builder admin account with configured webpages.
  • Choose your installation method: Matomo Tag Manager or Matomo Javascript tracking code.

Install with Matomo Tag Manager

Matomo Tag Manager (MTM) simplifies tracking by managing tags without directly modifying the website code. The default Matomo installation includes an auto-generated Tag Manager container with the key components required to start tracking:

  1. The Matomo Configuration Variable must include your Matomo URL and Site ID (for the GoDaddy website).
  2. The Matomo Analytics Tag should already be configured for default tracking and linked to the Matomo Configuration Variable and Pageview Trigger.
  3. Publish the container.

Find the Tag Manager tracking code 

GoDaddy embeds your webpage within an iframe inside its builder and it can cause issues with how Matomo tracks page titles and URLs. To ensure Matomo captures the correct title and actual page URL, you will need to modify the Tag Manager tracking code before placing it in your website’s code.

  1. In your Tag Manager container dashboard, navigate to Install Code
  2. Copy the code snippet and paste to a text editor.
  3. Modify the script to include _paq.push commands for setDocumentTitle and setCustomUrl to capture the document title and URL, as illustrated in the example below.
<!-- Matomo Tag Manager -->
<script> 
    var _paq = window._paq = window._paq || []; 
    _paq.push(['setDocumentTitle', window.parent.document.title]); 
    _paq.push(['setCustomUrl', window.parent.location]); 

    var _mtm = window._mtm = window._mtm || []; 
    _mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'}); 
    (function() { 
      var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; 
      g.async=true; g.src='https://cdn.matomo.cloud/yoursubdomain.matomo.cloud/container_REPLACE.js'; 
      s.parentNode.insertBefore(g,s); 
    })(); 
  </script> 
<!-- End Matomo Tag Manager -->

Note: If copying the above example code, ensure your Matomo Instance URL and Tag Manager container ID is correctly referenced in the code.

Install using the Matomo JavaScript code 

If you are not using Tag Manager, then the Matomo JS tracking code should be added to your GoDaddy webpages.

Find the Javascript tracking code

  1. Navigate to Matomo settings Settings Cog Icon > Measurables > Tracking Code
  2. Select your GoDaddy website and copy the code snippet.
  3. Paste the code to a text editor and modify the script to include _paq.push commands for setDocumentTitle and setCustomUrl to capture the document title and URL, as illustrated in the example below. 
<!-- Matomo -->
<script>
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
   _paq.push(['setDocumentTitle', window.parent.document.title]); 
    _paq.push(['setCustomUrl', window.parent.location]);
   _paq.push(['trackPageView']);
   _paq.push(['enableLinkTracking']);
  (function() {
    var u="https://yoursubdomain.matomo.cloud/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '11']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src='https://cdn.matomo.cloud/yoursubdomain.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Code -->

Note: If copying the above example code, ensure your Matomo Instance URL and Matomo Site ID is correctly referenced in the code.

Embed the Matomo tracking code in GoDaddy Website Builder 

GoDaddy does not support site-wide script injection, so manually add the Matomo code to every webpage you want to track.

  1. Open the GoDaddy Website Builder and access the site editor. 
  2. In the Site Navigation panel, click on the page where Matomo tracking should be added. 
  3. Select Add Section > Files & Web and choose HTML
  4. Click on the option to embed custom code. 
  5. In the Custom Code textbox, paste your modified Matomo tracking code. 
  6. Click Publish to save the changes.

godaddy matomo integration

Validate the Integration Configuration

Validate the integration by verifying that tracking is active and data is being sent to Matomo as expected. When testing, make sure tracking is not blocked by consent settings, ad blockers, or browser privacy features.

  1. Open your GoDaddy website and visit the page containing the tracking code to test if Matomo captures your visit. 
  2. Navigate to your Matomo dashboard and view the Visits in real-time widget to verify your website visit appears in the log.
  3. Use the browser’s developer tools > Network tab and filter for matomo.php, which indicates tracking requests are being sent. 
  4. For integrations using the JavaScript tracking, check references to the Matomo instance URL and Site ID are correct.
  5. For integrations using Tag Manager, confirm the Matomo Configuration Variable is correctly defined. Use the Preview and Debug tool to ensure the trigger fires as expected and activates the tag.

Troubleshooting

If no tracking data appears in Matomo, use the following resources to troubleshoot:

Next steps 

For reporting and advanced tracking configurations, explore related topics:

Discover additional resources in the knowledge base, developer guides and community forums

Happy Analytics!

Disclaimer: The use of any third-party tools (plugins, extensions, platforms, APIs, widgets, etc.) is at your own risk. Matomo does not own, control, maintain or support any third-party tools that integrate with our product. We recommend checking your privacy setup is correctly configured across your environment when using any third party tools.

Previous FAQ: How do I install the Matomo tracking code on Drupal?