Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter chelovek

    (@chelovek)

    I am using REST MODE. Could you please explain more about ” Are you using WP-Piwik in network mode? “? Didn`t understand.

    Thread Starter chelovek

    (@chelovek)

    Ok, here is the result:

    SERVER RESPONSE: HTTP/1.1 200 OK
    Date:
        Sun, 22 Jun 2014 15:51:49 GMT
    Server:
        LiteSpeed
    Connection:
        Keep-Alive
    Keep-Alive:
        timeout=5, max=100
    X-Powered-By:
        PHP/5.3.28
    Set-Cookie:
        popover_view_4721c91e4074095d276cfbb7ed556ae5=1; expires=Thu, 04-Jun-2015 21:11:49 GMT; path=/
    Cache-Control:
        public, max-age=604800
    Expires:
        Sun, 29 Jun 2014 15:51:49 GMT
    Content-Type:
        image/gif
    Vary:
        User-Agent

    Thread Starter chelovek

    (@chelovek)

    WordPress htaccess
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    There is none htaccess in plugin folder and wp-content.

    Here are the permissions: 0755 for wp-content and plugins. For piwik.php located in wp-piwik folder is 0644.

    Thread Starter chelovek

    (@chelovek)

    Ok, I see. I have set Piwik to show today by default.

    First tracking option works fine, without any problems, but I need to use piwik.php proxy.

    Here is what I see in my browser Tab, when I try to load piwik.php (wp-content/plugins/wp-piwik/piwik.php):
    https://oi59.tinypic.com/21o6joj.jpg

    I tried another thing to check, if this problem is not caused by server:
    I uplodaded piwik.php script from developers to root domain, configured it. Then I added javascript code to my page footer with main piwik details and it worked, Piwik shows stats.

    I am trying to figure out, what`s blocking that connection between your plugin proxy and piwik analytic. All I done, is ticked box to Use proxy script and add javascript to footer. And why when I navigate to piwik.php I see gif… Mystic for me. Maybe I need to edit some permissions through ftp? Any Ideas?

    Thread Starter chelovek

    (@chelovek)

    Yep:

    <!-- Piwik -->
    <script type="text/javascript">
      var _paq = _paq || [];
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u=(("https:" == document.location.protocol) ? "https" : "http") + "://MYDOMAIN.COM/wp-content/plugins/wp-piwik/";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', 2]);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
        g.defer=true; g.async=true; g.src=u+'piwik.php'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <!-- End Piwik Code -->

    When I navigate to wp-content/plugins/wp-piwik/piwik.php, I see GIF Image 1×1 in center.

    I tried Default tracking, but seems, that it doesn`t send data to main PIWIK, I can see that data in WP-PIWIK only.

    Thread Starter chelovek

    (@chelovek)

    Oh, sorry. Code is added on auto. I see it in source, but it doesn`t send any stats to piwik.

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