WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] Cannot add new website (8 posts)

  1. pauli_1254
    Member
    Posted 1 year ago #

    Hi I am totally lost,

    I installed Piwik on one of my wordpress sites a few months ago. So today I logged into piwik and tried to enter anther website.

    So first I go to Settings and add my new wordpress website url.

    I then go to add that url and install the Piwik plugin.

    Then I go to Piwik settings in the plugin and enter the Piwik URL (REST API): as http://www.mydomain.com/analytics/piwik/

    Then I enter the Auth token: Which I got from clicking on API in my original Piwik login panel

    I then get the this An error occured: Please check URL and auth token. You need at least view access to one site. [Support]

    my URL + token_auth are correctly entered in WP-Piwik

    http://wordpress.org/extend/plugins/wp-piwik/

  2. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Looks like WP-Piwik is not able to connect to Piwik.

    Is the Piwik URL you use in blog 2 the same URL you use in blog 1?
    (e.g.: are both mydomain.com/analytics/piwik or are you using mydomain1.com/analytics/piwik and mydomain2.com/analytics/piwik)

    Did you try to define a user agent if the default user agent is empty?
    (See expert settings: use an own user agent instead of PHP default.)

    Try to run WP-Piwik's test script.
    (see http://wordpress.org/support/topic/please-check-url-and-auth-token-you-need-at-least-view-access-to-one-site)

  3. pauli_1254
    Member
    Posted 1 year ago #

    Hi braekling thanks for replying,

    Here is an image of exactly what I am doing when I try to add the new site
    http://tinypic.com/view.php?pic=1exhfr&s=5

    I can run the test script ok. I clicked on support and ran from there

    Also on the main PIWIK page I am getting this

    Auto site configuration is enabled.
    Tracking code insertion is disabled.

  4. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Please try to define a user agent (instead of PHP default, e.g. the default setting "WP-Piwik").

    If this does not solve your issue, please post the test script's output here. (Please use the code tags.)

  5. pauli_1254
    Member
    Posted 1 year ago #

    Hi braekling,

    I defined the user agent to the default "WP-Piwik" but still the same error. Here is my test script;

    *** Test 1/2: SitesManager.getSitesWithAtLeastViewAccess ***
    Using: cURL
    SSL peer verification: enabled
    User Agent: WP-Piwik
    Call: www.bestacnetreatment4u.com/analytics/piwik/?module=API&method=SitesManager.getSitesWithAtLeastViewAccess&format=XML&token_auth= + TOKEN
    Result:
    HTTP/1.1 200 OK
    Server: cloudflare-nginx
    Date: Sun, 05 May 2013 19:18:14 GMT
    Content-Type: text/xml; charset=utf-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Set-Cookie: PIWIK_SESSID=c85c59c98e7092ae6a521c9b2bb03a7d; path=/; HttpOnly
    Vary: Accept-Encoding,User-Agent
    Set-Cookie: __cfduid=dd148b5635bf85701ecb6d6411bc1c6641367781494; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.bestacnetreatment4u.com
    CF-RAY: 69fc68271da0104
    
    <?xml version="1.0" encoding="utf-8" ?>
    <result>
    	<row>
    		<idsite>1</idsite>
    		<name>Best Acne Treatment4u</name>
    		<main_url>http://www.bestacnetreatment4u.com</main_url>
    		<ts_created>2013-03-09 10:25:26</ts_created>
    		<ecommerce>0</ecommerce>
    		<sitesearch>1</sitesearch>
    		<sitesearch_keyword_parameters />
    		<sitesearch_category_parameters />
    		<timezone>Europe/Dublin</timezone>
    		<currency>USD</currency>
    		<excluded_ips />
    		<excluded_parameters />
    		<excluded_user_agents />
    		<group />
    		<keep_url_fragment>0</keep_url_fragment>
    	</row>
    	<row>
    		<idsite>3</idsite>
    		<name>Weight Loss</name>
    		<main_url>http://howtoloseweightfasttt.com</main_url>
    		<ts_created>2013-04-24 22:29:16</ts_created>
    		<ecommerce>0</ecommerce>
    		<sitesearch>1</sitesearch>
    		<sitesearch_keyword_parameters>q,query,s,search,searchword,k,keyword</sitesearch_keyword_parameters>
    		<sitesearch_category_parameters />
    		<timezone>Europe/Dublin</timezone>
    		<currency>USD</currency>
    		<excluded_ips />
    		<excluded_parameters />
    		<excluded_user_agents />
    		<group />
    		<keep_url_fragment>0</keep_url_fragment>
    	</row>
    </result>
    Time: 0.23s
    
    *** Test 2/2: SitesManager.getSitesIdFromSiteUrl ***
    Using: cURL
    SSL peer verification: enabled
    User Agent: WP-Piwik
    Call: www.bestacnetreatment4u.com/analytics/piwik/?module=API&method=SitesManager.getSitesIdFromSiteUrl&url=http%3A%2F%2Fhowtoloseweightfasttt.com&format=XML&token_auth= + TOKEN
    Result:
    HTTP/1.1 404 Not Found
    Server: cloudflare-nginx
    Date: Sun, 05 May 2013 19:18:14 GMT
    Content-Type: text/html; charset=UTF-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    X-Pingback: http://www.bestacnetreatment4u.com/xmlrpc.php
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Pragma: no-cache
    Vary: Accept-Encoding,User-Agent
    Set-Cookie: __cfduid=dd148b5635bf85701ecb6d6411bc1c6641367781494; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.bestacnetreatment4u.com
    CF-RAY: 69fc683e9b80104
    
    <!DOCTYPE html>
    <html lang="en-US">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Nothing found for Analytics Piwik ?module=API&method=SitesManager GetSitesIdFromSiteUrl&url=http%3A%2F%2Fhowtoloseweightfasttt Com&format=XML&token_auth=e1894dfaf516120c743e85b3099cf62e</title>
    <link rel="stylesheet" href="http://www.bestacnetreatment4u.com/wp-content/themes/Avenue/style.css" type="text/css"/>
    <link rel="stylesheet" href="http://www.bestacnetreatment4u.com/wp-content/themes/Avenue/js/colorbox/colorbox.css" type="text/css"/>
    <link rel="alternate" type="application/rss+xml" title="BestAcneTreatment4u &raquo; Feed" href="http://www.bestacnetreatment4u.com/feed"/>
    <link rel="alternate" type="application/rss+xml" title="BestAcneTreatment4u &raquo; Comments Feed" href="http://www.bestacnetreatment4u.com/comments/feed"/>
    <link rel='stylesheet' id='contact-form-7-css' href='http://www.bestacnetreatment4u.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=3.4' type='text/css' media='all'/>
    <script type='text/javascript' src='http://www.bestacnetreatment4u.com/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script>
    <script type='text/javascript' src='http://www.bestacnetreatment4u.com/wp-content/themes/Avenue/js/jcarousellite_1.0.1.pack.js?ver=26'></script>
    <script type='text/javascript' src='http://www.bestacnetreatment4u.com/wp-content/themes/Avenue/js/jquery.nivo.slider.pack.js?ver=26'></script>
    <script type='text/javascript' src='http://www.bestacnetreatment4u.com/wp-content/themes/Avenue/js/colorbox/jquery.colorbox-min.js?ver=26'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var AvenueVars = {"ajaxUrl":"http:\/\/www.bestacnetreatment4u.com\/wp-admin\/admin-ajax.php"};
    /* ]]> */
    </script>
    <script type='text/javascript' src='http://www.bestacnetreatment4u.com/wp-content/themes/Avenue/js/scripts.js?ver=26'></script>
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.bestacnetreatment4u.com/wp-includes/wlwmanifest.xml"/>
    
    <script type='text/javascript'>
    jQuery(window).load(function() {
    	// Implementation of Nivo Slider
        jQuery('#slider').nivoSlider({
    		effect: 'random',
    		pauseTime: '3000',
            controlNavThumbs: true,
            controlNavThumbsFromRel: true,
            directionNav: false,
            directionNavHide: false,
            captionOpacity: false
    	});
    
    	jQuery('.nivo-control').each(function() {
    		jQuery('<div class="overlay">').appendTo(this);
    	});
    });
    </script>
    <style type='text/css'>body{background:#F6F6F6 url('http://www.bestacnetreatment4u.com/wp-content/themes/Avenue/images/patterns/pattern6.png') repeat;}.arrows{color:#4fad16;}.block-arrows,.block-arrows a{color:#4fad16;}.meta-arrow{font-size:16px;color:#4fad16;}.tweets a,.textwidget a{color:#4fad16;}</style>
    </head>
    <body class="error404"><script type="text/javascript">
    //<![CDATA[
    new Image().src = "/cdn-cgi/ping?cf[location]=404&cf[js]=1";
    //]]>
    </script>
    <noscript>
    <img src="/cdn-cgi/ping?cf[location]=404&cf[js]=0" alt=""/>
    </noscript>
    <a name='top'></a>
    
    <div id="wrapper">
    
    <div id="wrapper-content">
    
    <div id="header">
    
    <div id="header-middle">
    <div id="logo">
    <a href='http://www.bestacnetreatment4u.com'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/03/logo.jpg" alt="BestAcneTreatment4u"/></a>
    </div>
    </div>
    
    <div id="wrapper-navigation">
    <div id="navigation">
    <div class="menu-main-container"><ul id="menu-main" class="menu"><li id="menu-item-1691" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1691"><a href="http://www.bestacnetreatment4u.com/">Home</a></li>
    <li id="menu-item-1629" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1629"><a href="http://www.bestacnetreatment4u.com/what-causes-acne">What Causes Acne</a></li>
    <li id="menu-item-1630" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1630"><a href="http://www.bestacnetreatment4u.com/acne-treatment-options">Acne Treatment Options</a></li>
    <li id="menu-item-1633" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1633"><a href="http://www.bestacnetreatment4u.com/category/product-reviews">Product Reviews</a></li>
    <li id="menu-item-1637" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1637"><a href="http://www.bestacnetreatment4u.com/category/blog">Blog</a></li>
    </ul></div> </div>
    </div>
    
    </div>
    
    <div id="main">
    <div class="post-heading page">
    <h1>Page Not Found</h1>
    </div>
    <div class="entry404">
    <img src="http://www.bestacnetreatment4u.com/wp-content/themes/Avenue/images/404.png" alt="404"/>
    <div class="text404">
    <p>Sorry, the page you are looking for could not be found. Try using the search box below!</p>
    <form method="get" id="searchform" action="http://www.bestacnetreatment4u.com/">
    <input type="text" name="s" id="s" value="Search here.." onfocus='if (this.value == "Search here..") { this.value = ""; }' onblur='if (this.value == "") { this.value = "Search here.."; }'/>
    <input type="image" src="http://www.bestacnetreatment4u.com/wp-content/themes/Avenue/images/search-button.png" value="" id="search-button">
    </form> </div>
    </div>
    </div>
    
    <div id="sidebar">
    <div class="widget"> <div class="textwidget"></div>
    </div><div class="widget"> <div class="textwidget"></div>
    </div><div class="widget">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/how-to-remove-acne-scars-naturally' title='How to Remove Acne Scars Naturally'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/04/natural-treatment1-50x50.jpg" alt="How to Remove Acne Scars Naturally" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/how-to-remove-acne-scars-naturally' title='How to Remove Acne Scars Naturally'>How to Remove Acne Scars Naturally</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/how-to-remove-acne-scars-naturally#respond" title="Comment on How to Remove Acne Scars Naturally">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/pronexin-acne-treatment' title='Pronexin Acne Treatment'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/04/pronexin-review-pic1-50x50.jpg" alt="Pronexin Acne Treatment" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/pronexin-acne-treatment' title='Pronexin Acne Treatment'>Pronexin Acne Treatment</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/pronexin-acne-treatment#respond" title="Comment on Pronexin Acne Treatment">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/aloe-vera-acne' title='The Best Aloe Vera Acne Mask'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/04/girl-in-bath-50x50.jpg" alt="The Best Aloe Vera Acne Mask" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/aloe-vera-acne' title='The Best Aloe Vera Acne Mask'>The Best Aloe Vera Acne Mask</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/aloe-vera-acne#respond" title="Comment on The Best Aloe Vera Acne Mask">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/the-best-makeup-for-acne-prone-skin' title='The Best Makeup for Acne Prone Skin'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/03/makeup-50x50.jpg" alt="The Best Makeup for Acne Prone Skin" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/the-best-makeup-for-acne-prone-skin' title='The Best Makeup for Acne Prone Skin'>The Best Makeup for Acne Prone Skin</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/the-best-makeup-for-acne-prone-skin#respond" title="Comment on The Best Makeup for Acne Prone Skin">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/the-ultimate-guide-to-dry-acne-prone-skin' title='The Ultimate Guide to Dry Acne Prone Skin'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/03/skin-50x50.jpg" alt="The Ultimate Guide to Dry Acne Prone Skin" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/the-ultimate-guide-to-dry-acne-prone-skin' title='The Ultimate Guide to Dry Acne Prone Skin'>The Ultimate Guide to Dry Acne Prone Skin</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/the-ultimate-guide-to-dry-acne-prone-skin#respond" title="Comment on The Ultimate Guide to Dry Acne Prone Skin">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/how-to-reduce-sebum-production-by-over-50' title='How to Reduce Sebum Production by over 50%'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/03/questions-50x50.jpg" alt="How to Reduce Sebum Production by over 50%" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/how-to-reduce-sebum-production-by-over-50' title='How to Reduce Sebum Production by over 50%'>How to Reduce Sebum Production by over 50%</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/how-to-reduce-sebum-production-by-over-50#respond" title="Comment on How to Reduce Sebum Production by over 50%">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/how-your-diet-may-be-causing-your-acne' title='How Your Diet May Be Causing Your Acne'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/03/girl-eating-chocolate-50x50.jpg" alt="How Your Diet May Be Causing Your Acne" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/how-your-diet-may-be-causing-your-acne' title='How Your Diet May Be Causing Your Acne'>How Your Diet May Be Causing Your Acne</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/how-your-diet-may-be-causing-your-acne#respond" title="Comment on How Your Diet May Be Causing Your Acne">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/exposed-skin-care-review' title='Exposed Skin Care Review'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/02/exposed-skin-care-review-50x50.jpg" alt="Exposed Skin Care Review" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/exposed-skin-care-review' title='Exposed Skin Care Review'>Exposed Skin Care Review</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/exposed-skin-care-review#respond" title="Comment on Exposed Skin Care Review">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/zenmed-review' title='Zenmed Review'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/03/zenmed-50x50.jpg" alt="Zenmed Review" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/zenmed-review' title='Zenmed Review'>Zenmed Review</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/zenmed-review#respond" title="Comment on Zenmed Review">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/clearpores-review' title='ClearPores Review'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/03/clearpores-reviews-50x50.jpg" alt="ClearPores Review" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/clearpores-review' title='ClearPores Review'>ClearPores Review</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/clearpores-review#respond" title="Comment on ClearPores Review">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/types-of-acne' title='Types of Acne'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2013/02/facial-acne-50x50.jpg" alt="Types of Acne" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/types-of-acne' title='Types of Acne'>Types of Acne</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/types-of-acne#respond" title="Comment on Types of Acne">No Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/how-to-get-rid-of-acne-fast' title='How to Get Rid of Acne Fast'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2012/11/girl_with_mirror-50x50.jpg" alt="How to Get Rid of Acne Fast" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/how-to-get-rid-of-acne-fast' title='How to Get Rid of Acne Fast'>How to Get Rid of Acne Fast</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/how-to-get-rid-of-acne-fast#comments" title="Comment on How to Get Rid of Acne Fast">2 Comments</a></span>
    </div>
    <div class="block-item-small">
    <div class="block-image"><a href='http://www.bestacnetreatment4u.com/vitamin-d-for-acne' title='Vitamin D for Acne'><img src="http://www.bestacnetreatment4u.com/wp-content/uploads/2012/08/sun_vitamind-50x50.jpg" alt="Vitamin D for Acne" width='50' height='50'/></a></div>
    <h2><a href='http://www.bestacnetreatment4u.com/vitamin-d-for-acne' title='Vitamin D for Acne'>Vitamin D for Acne</a></h2>
    <span class="block-meta">, <a href="http://www.bestacnetreatment4u.com/vitamin-d-for-acne#comments" title="Comment on Vitamin D for Acne">1 Comment</a></span>
    </div>
    
    </div><div class="widget"><h3 class="widget-title">Find us on Facebook</h3> <iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FBestacnetreatment4u%2F469890459696054&width=292&colorscheme=light&show_faces=true&stream=false&header=false&height=260" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height: 260px;" allowTransparency="true"></iframe>
    </div>
    </div>
    
    </div>
    
    <div id="wrapper-footer">
    <div id="footer">
    <div class="widget"> <div class="textwidget"></div>
    </div>
    <div id="footer-bottom">
    <p class="left">Copyright © 2011 - Avenue. All rights reserved.</p>
    <p class="right"><a href="http://wordpress.org">Powered by WordPress</a><a href='#top' class='backToTop'>Back to Top</a></p>
    </div>
    </div>
    </div>
    </div>
    
    <p align="center" style="clear:both;">
    <a href="http://www.bestacnetreatment4u.com/contact-us"><font color="4EAD15"><b>Contact</b></font></a></P>
    <script type='text/javascript' src='http://www.bestacnetreatment4u.com/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.32.0-2013.04.03'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var _wpcf7 = {"loaderUrl":"http:\/\/www.bestacnetreatment4u.com\/wp-content\/plugins\/contact-form-7\/images\/ajax-loader.gif","sending":"Sending ...","cached":"1"};
    /* ]]> */
    </script>
    <script type='text/javascript' src='http://www.bestacnetreatment4u.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=3.4'></script>
    </body>
    
    <script type="text/javascript">
      var _paq = _paq || [];
      _paq.push(['setRequestMethod', 'POST']);
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.bestacnetreatment4u.com/analytics/piwik//";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', 1]);
        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.js'; s.parentNode.insertBefore(g,s);
      })();
    
    </script>
    <noscript><p><img src="http://www.bestacnetreatment4u.com/analytics/piwik/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript>
    
    </html>
    
    Time: 0.55s
  6. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Have a look at test 2. You get a 404 (not found) error if you call /analytics/piwik/?module=API&method=SitesManager.getSitesIdFromSiteUrl&url=SITE_URL_HERE&format=XML&token_auth=AUTH_TOKEN_HERE

    • Can you try to request this URL manually (using your browser)?
    • You have to fix this 404 issue. I bet you are using a rewrite rule which catches this request.
  7. kiwiben
    Member
    Posted 1 year ago #

    I have exactly the same issue - first installation works fine, second installation generates same messages as above.
    You say that <you have to fix this 404 issue>? I'm not a web developer, how would I fix the 404 issue?
    Thank you.

  8. pauli_1254
    Member
    Posted 1 year ago #

    I fixed this, it is an issue with hostagor. For adding a new website to Piwik. I add the new site on my piwik first. Then I copy the piwik tracking code for the new site. Then I go to my footer.php file on my cpanel. and enter the code after the </body> and before the </html>

    Then go to this post "How do I configure Piwik when mod_security is enabled?"
    http://piwik.org/faq/troubleshooting/#faq_100

    make the edit and save changes to footer.php and vistit the new site and you will see that visit in your Piwik tracking.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.