Title: Tracking code not applied
Last modified: August 9, 2019

---

# Tracking code not applied

 *  Resolved [phomlish](https://wordpress.org/support/users/phomlish/)
 * (@phomlish)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-not-applied/)
 * What would cause the tracking code to not appear?
 * I’ve tried default and use js/index.php.
    I’ve tried header and footer.
 * Thanks,
    Paul
    -  This topic was modified 6 years, 9 months ago by [phomlish](https://wordpress.org/support/users/phomlish/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftracking-code-not-applied%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-not-applied/#post-11841224)
 * Following your link, I can see the tracking code. Did you resolve this on your
   own? Or did you just add the tracking code manually?
 * If you still can not see the code when it should be added by the plugin:
 * First, please check the filter settings. In WP-Matomo’s settings, you can disable
   the tracking for logged-in users with specific roles. If you are using these 
   filters, you should log out to check if the tracking code is added.
 * Second, check your themes php code. Make sure it is using the `wp_head` and `
   wp_footer` functions, because the tracking code is added via these functions.
 *  Thread Starter [phomlish](https://wordpress.org/support/users/phomlish/)
 * (@phomlish)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-not-applied/#post-11873971)
 * Totally my mistake but perhaps these notes will help someone. I do this in thanks
   to your hard work as a contribution.
 * I originally setup Matomo on my web server as internal only using a self signed
   CA and certificate requiring a client certificate. Then I removed the client 
   certificate requirement and thought I was done.
 * **TLDR; added external DNS, obtained a letsencrypt certificate.**
 * I looked while not logged in and saw this in the javascript console:
 * (index):376 GET [https://matomo.homlish.net/matomo.js](https://matomo.homlish.net/matomo.js)
   net::ERR_CERT_AUTHORITY_INVALID
 * Duh, I didn’t add the entry for external DNS. I added it with go daddy DNS manager.
 * Still got the error so I used [https://www.ssllabs.com/ssltest/](https://www.ssllabs.com/ssltest/)
   to test the ssl. Sure enough, it is still the old certificate using the self 
   signed CA. I grabbed a real one from letsencrypt and it started working.
 * Thanks again,
    Paul
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-not-applied/#post-11874037)
 * Thanks a lot for your feedback! Hope this will help others as well.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Tracking code not applied’ is closed to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-not-applied/#post-11874037)
 * Status: resolved