Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mattab opened this issue Mar 25, 2008 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Mar 25, 2008

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 XXX
getHead() // returns XXX
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 #5444 Plugins should have easy access to their own configuration file
- refs #5588 make it easy for plugins to install piwik from outside
- see also notes on [phpmyvisites integration](http://www.phpmyvisites.us/documentation/Features_planned#Be_able_to_integrate_easily_phpMyVisites_in_a_third_party_software)

@mattab
Copy link
Member Author

mattab commented Jan 30, 2009

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)
```

@robocoder
Copy link
Contributor

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

@mattab
Copy link
Member Author

mattab commented Mar 29, 2010

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.

@mattab
Copy link
Member Author

mattab commented Jul 29, 2010

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.

@mattab mattab added this to the Piwik 0.7 - DigitalVibes milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants