Matomo Tracker Stopped Sending Requests

So, I set up Matomo yesterday and got everything working. The tracker was sending requests and logging data.
However, I needed to add a custom dimension and somehow, during that process, the tracker stopped sending requests. (No POST to matomo.php in the network logs)
The only change I am aware of making on the frontend was adding a line that declared a global variable for the custom dimension to track.
Does anyone know what might have caused this?

Tell us a little bit more…

  • Which version of Matomo do you use?
  • Do you use MTM?
  • What is your tracking code?
  • What events do you track?
  • Where in your code did you add the global variable?
  • How do you track the new custom dimension?
Which version of Matomo do you use?

4.4.1
Do you use MTM?
Yes
What is your tracking code?
I just used the autogenerated code from the tag manager install page.
What events do you track?
I use the Matomo analytics tag which is triggered by DOM Ready
Where in your code did you add the global variable?
Before the matomo tracking code. in a seperate script tag.
How do you track the new custom dimension?
The new custom dimension is tracked using my matomo configuration variable which is tied to a Javascript Variable variable

Can you share the tracking code you use (copy-paste) and also the JavaScript variable config set in MTM (screenshot)?
Also do you have an error in the browser console?
Also can you check what happens with the MTM preview mode (image) ?

Tracking Code:

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

MTM Preview Link: https://www.hpn.com/?mtmPreviewMode=EmX6uYg4
IDK how to interpret the results
Tag and variables attached below

I can see requests to matomo.php on your site, so I’m not sure what’s wrong.

Maybe the DNT parameter?