Piwik Analytics Version 1.0.2

Started by Eclipse16V, August 31, 2011, 03:48:45 PM

Previous topic - Next topic

Eclipse16V

Link to Mod


Piwik Analytics Version 1.0.2
Free Version


Homepage: SID Giessen - Author: Eclipse16V - Support: Support Site - Mods: Mod List



Compatible
Compatible with the following versions:

  • SMF 1.1.7
  • SMF 1.1.8
  • SMF 1.1.9
  • SMF 1.1.10
  • SMF 1.1.11
  • SMF 1.1.12
  • SMF 1.1.13
  • SMF 1.1.14
  • SMF 1.1.15
  • SMF 1.1.16
  • SMF 1.1.17
  • SMF 1.1.18
  • SMF 2.0 RC1
  • SMF 2.0 RC1-1
  • SMF 2.0 RC1.2
  • SMF 2.0 RC2
  • SMF 2.0 RC3
  • SMF 2.0 RC4
  • SMF 2.0 RC5
  • SMF 2.0
  • SMF 2.0.1
  • SMF 2.0.2
  • SMF 2.0.3
  • SMF 2.0.4

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.

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
I worked with:
SMF 2 in German

Shop:
SID Giessen

elkingrey

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?


Kendall

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

Eclipse16V

Piwik was installed earlier?
I mean the script of http://piwik.org
I worked with:
SMF 2 in German

Shop:
SID Giessen

Kendall

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?

Eclipse16V

I doesn´t test it with Piwik 1.0.1
Tested with Piwik 1.5 and 1.6.
I worked with:
SMF 2 in German

Shop:
SID Giessen

Drover

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?

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

maestrosite.ru

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.
First of all, sorry for my english. По-русски у меня получается значительно лучше.

Проблема на форуме? Сначала посмотрите лог ошибок вашего форума и лог ошибок сайта (error_log)

You can try other modifications - see demo

MESWEB

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.

WIW-Master

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

MESWEB

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?

Eclipse16V

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.
I worked with:
SMF 2 in German

Shop:
SID Giessen

MESWEB

Is ther any way to change this?? I want see all actions in my forum.

Eclipse16V

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.
I worked with:
SMF 2 in German

Shop:
SID Giessen

kokett

Hello,

will internal search tracking of piwik 1.9 be available? What's the difference between free and pro version?

Galatea

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.

scotty.at

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:

       
  • Tracking code inserted before the closing </BODY> tag
  • Tracking of internal search terms (no categories)
Limitations/Notes:

  • Search tracking works only if user has javascript enabled
  • Piwik recommends not to track a page view if site search is tracked
    therefore trackSiteSearch OR trackPageView depending on action

// 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;
}

I Use Dial

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 [nofollow], which this plugin uses, but this will be blocked by tools such as Ghostery. Piwik also supports using example.com/piwik/js/ [nofollow], 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.

rootuid

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

rootuid

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.

Dwev

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...

Advertisement: