TeamMentor / TM_4_0_Design

Repo Holds TM 4.x issues
4 stars 3 forks source link

Add piwik stats for articles opened through TP #1100

Closed romichg closed 8 years ago

romichg commented 9 years ago

So we should use /teamMentor/open as the triger.

https://teammentor.net/teamMentor#load:ea854894-8e16-46c8-9c61-737ef46d7e82

So is it possible to use #load: as a trigger?

michaelhidalgo commented 9 years ago

I think option 2 it's not possible because the URL fragment '#' it is not sent to the server. So we don't have way to add a route for /teammentor#load:guid.

The fragment identifier functions differently than the rest of the URI: namely, its processing is exclusively client-side with no participation from the server — of course the server typically helps to determine the MIME type, and the MIME type determines the processing of fragments. When an agent (such as a Web browser) requests a resource from a Web server, the agent sends the URI to the server, but does not send the fragment. Instead, the agent waits for the server to send the resource, and then the agent processes the resource according to the document type and fragment value.[2]

michaelhidalgo commented 9 years ago

With PR https://github.com/TeamMentor/TM_Website/pull/42

michaelhidalgo commented 9 years ago

Branch name Issue_1100_Piwik

romichg commented 9 years ago

Some small issues

romichg commented 8 years ago

This is done.