Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Eclipse16V on August 31, 2011, 03:48:45 PM

Title: Piwik Analytics Version 1.0.2
Post by: Eclipse16V on August 31, 2011, 03:48:45 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3115)


Piwik Analytics Version 1.0.2
Free Version


Homepage: SID Giessen (http://www.sid-giessen.de) - Author: Eclipse16V - Support: Support Site (http://forum.sid-giessen.de) - Mods: Mod List (http://sid-giessen.de/index.php?route=product/category&path=39_44_46)



Compatible
Compatible with the following versions:

Modification Information
With this modification, you can quickly and easily install one Piwik Analytics code into the existing SMF. The only thing you need this modification, your Piwik ID and the URL of the website is running on your Piwik. These data simply type in the ACP by SMF one under Settings and you will start your records.
This Piwik Analytics Version 1.0.2 is the FREE VERSION of the Mod. The PRO VERSION you can find on SID Giessen (http://sid-giessen.de/index.php?route=product/category&path=39_44_46).

Languages supported
For this mod already following translations are included in this package:
English, German
All languages are also included in the UTF-8.
New translations are gratefully welcomed.

Changelog



Free Version                                                     Pro Version

Version 1.0.2 - 17.12.2012

  • Now runs with SMF 2.0.3 and SMF 1.1.17

Version 1.0.1 - 28.09.2011

  • Now runs with SMF 2.0 - 2.0.99
  • Now runs with SMF 1.1.7 - 1.1.99

Version 1.0 - 18.06.2011

  • Released

Version 1.0.3 - 17.12.2012

  • Now runs with SMF 2.0.3 and SMF 1.1.17

Version 1.0.2 - 13.01.2012

  • Now runs with SMF 2.0.2 and SMF 1.1.16

Version 1.0.1 - 22.09.2011

  • Now runs with SMF 2.0.1 and SMF 1.1.15

Version 1.0 - 18.06.2011

  • Released
Title: Re: Piwik Analytics Version 1.0.1
Post by: elkingrey on November 23, 2011, 05:34:24 PM
I've installed the mod and added the ID and URL to my features and options. But nothing is showing up on Piwik. Any ideas?
Title: Re: Piwik Analytics Version 1.0.1
Post by: Biology Forums on November 23, 2011, 06:42:19 PM
What's Piwik?
Title: Re: Piwik Analytics Version 1.0.1
Post by: Kendall on January 30, 2012, 11:30:32 AM
Hello,
Excuse my bad English that is not my native language.
I've installed the mod and added the ID and URL to my features and options. But nothing is showing up on Piwik.
What he misses me?

Regards
Title: Re: Piwik Analytics Version 1.0.1
Post by: Eclipse16V on January 30, 2012, 02:33:05 PM
Piwik was installed earlier?
I mean the script of http://piwik.org
Title: Re: Piwik Analytics Version 1.0.1
Post by: Kendall on January 31, 2012, 04:18:02 AM
Hello,
Excuse my imprecision, the version of piwik is: 1.0.1
the version of smf is 2.0.2
it seems that the installation is made, since one recovers the files indicate modified.
However anything in the administration of smf appears to use the collection of infos.
How to proceed?
Title: Re: Piwik Analytics Version 1.0.1
Post by: Eclipse16V on January 31, 2012, 01:07:21 PM
I doesn´t test it with Piwik 1.0.1
Tested with Piwik 1.5 and 1.6.
Title: Re: Piwik Analytics Version 1.0.1
Post by: Drover on March 06, 2012, 09:14:24 AM
What is a Piwik ID?  I checked the help button and it says: "Use this box has the ID that Piwik get this home in your Piwik Analytics. This consists only of numbers, such as for example 1 or 13 or 87".  That doesn't even make sense.

What does this mean?  Where do I get a Piwik ID?
Title: Re: Piwik Analytics Version 1.0.1
Post by: Eclipse16V on March 06, 2012, 09:51:05 AM
The Piwik ID can you find in your Piwik on your homepage.

http://piwik.org/docs/tracking-api/
http://piwik.org
Title: Re: Piwik Analytics Version 1.0.1
Post by: maestrosite.ru on March 17, 2012, 02:21:31 PM
This mod add <p><img .../></p> in HEAD-section.
And made pages invalid, you can check pages with installed mod - link on each page: http://validator.w3.org/check?uri=referer.
Title: Re: Piwik Analytics Version 1.7.1
Post by: MESWEB on April 23, 2012, 02:59:21 AM
This is harmless, and its actually valid HTML5 but the validator doesn't recognize it yet. It will not cause any operational issues with your site or the plugin and will allow users without JavaScript to view your images.
Title: Re: Piwik Analytics Version 1.0.1
Post by: WIW-Master on May 02, 2012, 04:06:03 PM
Hello,

I installed the Piwik Mod 1.0.1 in my forums. On TEST with SMF 2.0.2 everything works fine and I see all the stats in my Piwik installation.

ON PROD with SMF 1.1.16 I set it up with an different ID and nothing is shown in my Piwik Stats  :(

I use the newest Piwik version 1.7.1. Does the Mod 1.0.1 not work with Piwik 1.7.1on SMF 1.1.16 or where ist the Problem?

Thanks in advance
Tom
Title: Re: Piwik Analytics Version 1.0.1
Post by: MESWEB on May 21, 2012, 03:05:24 AM
I have SMF 2.0.2 + Piwik to record the action on my forum. Yesterday a guest registered and put the two posts - a bit of time he had to take. But Piwik not register any actions of IP guest. Piwik is operating normally and record my every visit, and the other guests. What is the reason Ghost Guest?
Title: Re: Piwik Analytics Version 1.0.1
Post by: Eclipse16V on May 21, 2012, 03:40:49 AM
It may be that the user via the write cookie data is forbidden. Otherwise I can not imagine now, when it comes to other users or guests. The function offers Piwik.
Title: Re: Piwik Analytics Version 1.0.1
Post by: MESWEB on May 21, 2012, 03:52:43 AM
Is ther any way to change this?? I want see all actions in my forum.
Title: Re: Piwik Analytics Version 1.0.1
Post by: Eclipse16V on May 21, 2012, 04:05:55 AM
So far I do not know. As one would have to contact times of Piwik and ask there. This is an advantage to Piwik against Google Analytics.
Title: Re: Piwik Analytics Version 1.0.1
Post by: kokett on October 22, 2012, 02:05:54 AM
Hello,

will internal search tracking of piwik 1.9 be available? What's the difference between free and pro version?
Title: Re: Piwik Analytics Version 1.0.1
Post by: Galatea on November 04, 2012, 01:46:34 AM
Agreed, internal site search would be good. The quickest way to use it is not really viable for SMF users, as it expects the search results to be sent via GET and SMF sends them via POST. Would have to do some fancy capturing of results on the search results page in order for it to work.
Title: Re: Piwik Analytics Version 1.0.2
Post by: scotty.at on February 08, 2013, 04:36:42 PM
Quote from: maestrosite.ru on March 17, 2012, 02:21:31 PM
This mod add <p><img .../></p> in HEAD-section.
And made pages invalid, you can check pages with installed mod

This can be fixed verry easy. Just replace the HEAD with a BODY in the stripos call. With this the tracking code will be inserted before the closing BODY tag.

Quote from: Galatea on November 04, 2012, 01:46:34 AM
Agreed, internal site search would be good. The quickest way to use it is not really viable for SMF users, as it expects the search results to be sent via GET and SMF sends them via POST. Would have to do some fancy capturing of results on the search results page in order for it to work.

I coded a little addition to the sourcecode and get now the internal search tracked. Change the ob_piwik_analytics() function to the following code and you will get two things:Limitations/Notes:
// Piwik Analytics Integration
function ob_piwik_analytics($buffer)
{
   global $modSettings;
   
   if (!empty($modSettings['PiwikAnalyticsID']) && !isset($_REQUEST['xml'])) {
      if(isset($_REQUEST['action']) && $_REQUEST['action'] == 'search2') {
         $piwik_search = addslashes($_REQUEST['search']);
         $piwik_track = 'piwikTracker.trackSiteSearch("' . $piwik_search . '", false, false);';
      } else {
         $piwik_track = 'piwikTracker.trackPageView();';
      }
      $piwik_code = '
   <!-- ' . $piwik_track . ' -->
   <script type="text/javascript">
      var pkBaseURL = (("https:" == document.location.protocol) ? "https://' . $modSettings['PiwikAnalyticsURL'] . '" : "http://' . $modSettings['PiwikAnalyticsURL'] . '");
      document.write(unescape("%3Cscript src=\'" + pkBaseURL + "piwik.js\' type=\'text/javascript\'%3E%3C/script%3E"));
      </script><script type="text/javascript">
      try {
      var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", ' . $modSettings['PiwikAnalyticsID'] . ');
      ' . $piwik_track . '
      piwikTracker.enableLinkTracking();
      } catch( err ) {}
   </script><noscript><p><img src="http://' . $modSettings['PiwikAnalyticsURL'] . 'piwik.php?idsite=' . $modSettings['PiwikAnalyticsID'] . '" style="border:0" alt="" /></p></noscript>';
     
      // add in the analytics code at the very end of the body section
      $buffer = substr_replace($buffer, $piwik_code . "\n" . '</body>', stripos($buffer, '</body>'), 7);
   }
   
   // All done
   return $buffer;
}
Title: Re: Piwik Analytics Version 1.0.2
Post by: I Use Dial on June 17, 2013, 08:17:54 PM
Is it possible to change the path to the tracking script?  I can't find any such option in the Admin section.

The standard is example.com/piwik/piwik.js, which this plugin uses, but this will be blocked by tools such as Ghostery. Piwik also supports using example.com/piwik/js/, which will not be blocked, by default, by Ghostery, though users can block */piwik/js/ with tools like AdBlock Plus or by adding it to Ghostery, but that's getting to so few users it's not worth bothering.

I have seen this option available in other plugins, such as the Piwik plugin for WordPress, which has it as an option in the plugin settings.
Title: Re: Piwik Analytics Version 1.0.2
Post by: rootuid on December 08, 2014, 05:16:43 PM
Where the heck do I configure the settings ? I've search everywhere in the admin panel but can't see anything. Any help much appreciated. Thanks
Title: Re: Piwik Analytics Version 1.0.2
Post by: rootuid on January 29, 2015, 04:35:19 PM
still searching ! Anyone know the answer ?

These are the files modified by the package

add_remove_hooks.php (1758 bytes)
ReadMe.txt (2673 bytes)
Redirect.txt (538 bytes)
languages.xml (1228 bytes)
languages_help.xml (1779 bytes)
languages_help_utf-8.xml (1802 bytes)
languages_utf-8.xml (1251 bytes)
package-info.xml (3146 bytes)
Piwik_Analytics_1_1_7.xml (3825 bytes)
Piwik_Analytics_2_0_RC1.xml (3811 bytes)
Piwik_Analytics_2_0_RC4.xml (2098 bytes)


I think this is package is dead and it's time to retire it.
Title: Re: Piwik Analytics Version 1.0.2
Post by: Dwev on January 27, 2018, 02:21:59 PM
Quote from: rootuid on December 08, 2014, 05:16:43 PM
Where the heck do I configure the settings ? I've search everywhere in the admin panel but can't see anything. Any help much appreciated. Thanks

The location you were looking for is: Configuration > Features and Options > General

Probably too late for you, but might help someone else...