Title: tracking code incorectly inserting
Last modified: August 22, 2016

---

# tracking code incorectly inserting

 *  [gingerling](https://wordpress.org/support/users/gingerling/)
 * (@gingerling)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/tracking-code-incorectly-inserting/)
 * Hi, I have used this plugin for a while on various sites. One of my new sites
   was using WP 4, and the plugin did not work as usual. The code seemed to be incorrect
 * One part was:
 *  (function() {
    var u=((“https:” == document.location.protocol) ? “https” : “
   http”) + “://artsandcraftschurch.org/wp-admin/” etc …
 * rather than…
 *  (function() {
    var u=((“https:” == document.location.protocol) ? “https” : “
   http”) + “://artsandcraftschurch.org/piwik/” etc ….
 * As soon as I manually inserted the correct code piwik started collecting data.
   Anyone know what the cause of this is?
 * [https://wordpress.org/plugins/wp-piwik/](https://wordpress.org/plugins/wp-piwik/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/tracking-code-incorectly-inserting/#post-5279185)
 * Can you check the code shown by Piwik itself? Does ist show the correct or the
   wrong URL?
 * Are the URLs configured well? Is the trusted hostname set correctly in Piwik,
   too?

Viewing 1 replies (of 1 total)

The topic ‘tracking code incorectly inserting’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/tracking-code-incorectly-inserting/#post-5279185)
 * Status: not resolved