Comments (5)
@eskfung The link on our support page points to our new PHP library, but still documents the old PHP interface. I'm thinking we could update the main PHP docs page to use our new PHP library, but have a link to an archived version of the docs that shows the old specs. Thoughts?
from km-support.
@percyhanna 👍, gotta get familiar with the new PHP interface. Will try to get this finished by the end of the week.
from km-support.
@DataTables thank you for the feedback! I am reusing the examples included in the kissmetrics-php README, so please let us know if that is not sufficient.
from km-support.
I have two suggestions to improve the documentation shown there if I may:
- Include instructions on how to include the library files. Its a simple
require
statement in PHP, but at the moment you need to include the files individually and in a particular order. I've just sent a pull request which makes is a single one line include, but I would still recommend including that in the documentation -require( 'KISSMetrics/KM.php' );
if you accept my pull request. - The line
>alias('old-anonymous-cookie')
appears to be meaningless. The string value given has no particular value - what we need is the anonymous cookie value. I've used the following for that (although I'm not 100% certain that this is the correct way to do it):
if ( isset( $_COOKIE['km_ai'] ) ) {
$km->alias( $_COOKIE['km_ai'] );
}
The server-side libraries are presumably used primarily for triggering events on the sever-side only so hopefully this will make it a little bit easier for people new to KISSMetrics such as myself to get going with it if they are using PHP.
from km-support.
@DataTables thanks for the suggestions, I think those seem quite reasonable. @eskfung could you take a look at updating the examples as well?
from km-support.
Related Issues (20)
- 2 Quick issues HOT 3
- Broken URL HOT 5
- Revenue tab is gone. The Revenue report is under the Reports tab now. HOT 1
- Offset and limit parameter not work HOT 4
- Querying metrics HOT 3
- People Report has no results HOT 2
- Add libraries
- Common Methods - Missing the alias method HOT 1
- people_v3_search custom date ranges not working HOT 6
- Link tracking in pages/posts HOT 7
- De-duplication: clobber or merge? HOT 6
- Consider ways to minify asset pipeline. HOT 4
- Screenshots need updating
- Clean up sidenav
- Broken Link on Qualaroo Page HOT 1
- You can include up to 10 property columns? HOT 1
- No link to download the JavaScript library HOT 5
- Revenue report has broken links HOT 1
- How much data will the iOS SDK store while offline? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from km-support.