I work with custom-built websites, and even though the Matomo code is correctly uploaded in the header of the pages, the Tag Manager preview mode cannot be opened. I’ve tried everything, and it’s really hard to debug any issues without seeing the preview mode or the triggers that are fired.
Hi @vranez . I’m sorry to hear that you’re experiencing this problem. As you said that you’ve tried everything, I’m assuming that you didn’t see any JS errors in your browser’s dev console? Did checking the box in dev console to disable the cache and hard refreshing the page make any difference? I’ve had times where my browser had cached the page and the MTM preview debugger didn’t display until I did that. I’m guessing that you confirmed that the mtmPreviewMode={container_id}&mtmSetDebugFlag=1
query parameters are set when you load your site in preview mode? Also, does your site allow third-party cookies? When I test locally, I see two mtmPreviewMode
cookie entries, which I believe are required to run MTM preview mode.
If those don’t work, this Matomo.org FAQ has a few other recommendations. I hope that helps and you’re able to resolve your issue.
Hi Jacob, thanks for the reply. Everything is working fine now.