Code Monkey home page Code Monkey logo

typo3.piwik's Introduction

typo3.piwik's People

Contributors

astehlik avatar fladi avatar ipf avatar kaystrobach avatar madaxel avatar schubidu avatar tomtom-berlin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

typo3.piwik's Issues

New options in Piwik Tracking Template

Piwik has new optional options for his tracking-code.

_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
paq.push(["setCookieDomain", ".example.com, http"]);
paq.push(["setDomains", [".example.com, http","*.example.com"]]);

Autoloader in TYPO3 7.5

I've installed the master branch in TYPO3 7.5 and get an error

PHP Fatal error: Class 'Tx_Piwik_PiwikApi_PiwikTracker' not found in typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4348

If I add
require_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('piwik').'Classes/PiwikApi/PiwikTracker.php');
in ext_localconf.php like it is done for Footer.php
everything works like it should.

I thing this is just a workaround and not a real fix.

Greets
Markus

invalid markup inside <noscript>-Tag

Hi,

the -Tag ends up with invalid markup because the ampersand sign of the src attribute of the tracking pixel isn't masked as entity. I did a little change to footer.php as a workaround (line numbers 131-135:

131    if (strlen($this->piwikOptions['trackGoal'])) {
132       $template = str_replace('###TRACKING_IMAGE_URL###', str_replace('&','&amp;', $this->piwikTracker->getUrlTrackGoal($this->piwikOptions['trackGoal'])), $template);
133    } else {
134        $template = str_replace('###TRACKING_IMAGE_URL###', str_replace('&','&amp;', $this->piwikTracker->getUrlTrackPageView()), $template);
135    }

The second str_replace(...) instruction does the trick.
HTH
Thomas.

New release?

There have been some bugfixes since the 3.1.0 release. Can we expect a new release sometime soon?

double slash in image url

I think in getBaseUrl() we should change self::$URL .= '/piwik.php'; ==> self::$URL .= 'piwik.php';
The slash is already in piwik_host and causes double slashes in the fallback image url.

Support for multiple trackers

With older Piwik versions it was possible to use multiple tracking codes in one page.

This does not seem to work any more. When trying to call trackPageView multiple times you get a JavaScript error.

There is a possiblity to provide an addtional tracking URL and website ID to track the same page to multiple trackers:

https://developer.matomo.org/guides/tracking-javascript-guide#multiple-piwik-trackers

Feel free to cherry-pick a solution for this from:
Intera@c99ce4e

Make it (feel) compatible to TYPO3 v6.2

Right now ext_emconf.php states compatibility wirth TYPO3 CMS 4.5.0-6.0.99

This is a bit annoying on 6.2 LTS instances, as the extension seems to work nicely... :-)

Tracking failure messages due to IP address in noscript fallback

With newer Matomo versions you will likely get some tracking error messages because the IP address is submitted as a parameter which requires a valid API token:

https://matomo.org/faq/how-to/faq_30835/

You see a failed tracking request with this error message when you use specific tracking parameters as part of the HTTP tracking API without authenticating the request correctly. Some parameters that require authentication are for example cip (forcing a specific IP address), or cdt (overrides the datetime of the request).

The updated version of the Matomo PHP API fixes this problem by only submitting the IP address if an API token is available.

Feel fee to cherr-pick an updated version of the API from:
Intera@775f252

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.