Ticket #161 (closed Bug: fixed)

Opened 2 years ago

Last modified 6 weeks ago

Find out changes to make Piwik easy to integrate in third party CMS, blogs, Ecommerce cms

Reported by: matt Owned by:
Priority: major Milestone: Piwik 0.7 - DigitalVibes
Component: Core Keywords:
Cc: Sensitive: no

Description (last modified by matt) (diff)

Piwik provides a great API to request raw data. We now have to provide such an API to request the generated HTML out of piwik:

  • Provide an API to fetch piwik HTML
    hideLogin()
    hideSites()
    hideLoggedUser()
    setLanguage( $lg )
    
    getBody() // returns <body>XXX</body>
    getHead() // returns <head>XXX</head>
    getJavascriptIncludes()
    getCssIncludes()
    
  • make sure the CSS doesn't change the <body> so it doesnt change the app design
  • make sure piwik works when getting the pages in SSL  https://
  • the generated URLs could use a prefix or different values in order to handle the existing application path.

For example if the cms is at /dev/cms/ and piwik at /stats/piwik/ the piwik generated HTML should prefix all URL with /dev/cms/XYZ or /dev/cms/boot?mod=LoadApp&action=piwik

  • Provide an API to log a user in
    login(username, password)
    logout()
    isUserConnected(username)
    
  • refs #24 Plugins should have easy access to their own configuration file
  • refs #168 make it easy for plugins to install piwik from outside

Change History

Changed 2 years ago by matt

  • description modified (diff)
  • milestone changed from RobotRock to Stable release

Changed 23 months ago by matt

  • description modified (diff)

Changed 20 months ago by matt

Piwik will be integrated directly in most CMS, blog. These third party softwares have often their own plugin installation process. So, we have to provide an API that can automatically install Piwik.

What does the Piwik install process?

  • Create some config files
  • Create databases
  • Create sites => already available with the API
  • Create users => already available with the API

I think we have to provide the API with 2 new functions :

createTables($tablePrefix, $databaseParameters)
createConfigFiles($listOfParameters)

Another solution is to merge these 2 functions in only one :

createTablesAndConfigFiles($tablePrefix, $listOfParameters)

Changed 19 months ago by matt

  • summary changed from Make Piwik easy to integrate in third party CMS, blogs, Ecommerce cms to Find out what to do to make Piwik easy to integrate in third party CMS, blogs, Ecommerce cms
  • milestone changed from Stable release to Surviving The Wild

Changed 19 months ago by matt

  • summary changed from Find out what to do to make Piwik easy to integrate in third party CMS, blogs, Ecommerce cms to Find out changes to make to make Piwik easy to integrate in third party CMS, blogs, Ecommerce cms

Changed 16 months ago by vipsoft

  • summary changed from Find out changes to make to make Piwik easy to integrate in third party CMS, blogs, Ecommerce cms to Find out changes to make Piwik easy to integrate in third party CMS, blogs, Ecommerce cms

Changed 13 months ago by alivenk

Changed 8 months ago by vipsoft

  • sensitive unset

See also kay's typo3 integration in comment:ticket:991:7

Changed 5 months ago by matt

  • milestone changed from 4 - Piwik 0.9 - Surviving The Wild to Features requests - after Piwik 1.0

Moving to post Piwik 1.0. It seems this is not a high requested feature, as Piwik got integrated with Typo3, simplescripts, softaculous, etc. without such API. I'd be interested to know how they deal with this?

We can always move it to 1.0 later if we get interesting requests.

Changed 6 weeks ago by matt

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from Features requests - after Piwik 1.0 to 1 - Piwik 0.7 - DigitalVibes

Several users are integrating Piwik successfuly using the various APIs: users, websites, fetch JS code, set/get user languages, etc. We will deal with any specific requests as they arrive.

Note: See TracTickets for help on using tickets.