Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-09-14 19:05:25 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-14 19:05:25 +0400
commite127384e57c076a96462da2f984919abadbcb85e (patch)
tree6b4847bdff5a7c1d4d0c9f14d5da0f2e81f6ce7b /misc
parent78f9254cc62af38e7fdb2725bb32f71c2f766168 (diff)
refs #4996 we have to add build a fully qualified URL of the content piece in case we detect the URL of an image, video or audio, pdf, ... automatically. Otherwise we cannot display a preview in the UI and one would not know which URL was actually meant. Thinking about using //domain/path instead of http://domain/path as it would track different content pieces for http and https otherwise
Diffstat (limited to 'misc')
-rw-r--r--misc/internal-docs/content-tracking.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/misc/internal-docs/content-tracking.md b/misc/internal-docs/content-tracking.md
index d2174492e2..186d8345d1 100644
--- a/misc/internal-docs/content-tracking.md
+++ b/misc/internal-docs/content-tracking.md
@@ -38,13 +38,13 @@ You can use either the attribute `data-track-content` or the CSS class `piwikTra
Examples:
```
<img src="img-en.jpg" data-track-content/>
-// content name = img-en.jpg
-// content piece = img-en.jpg
+// content name = absolutePath(img-en.jpg)
+// content piece = absoluteUrl(img-en.jpg)
// content target = ""
<img src="img-en.jpg" class="piwikTrackContent"/>
-// content name = img-en.jpg
-// content piece = img-en.jpg
+// content name = absolutePath(img-en.jpg)
+// content piece = absoluteUrl(img-en.jpg)
// content target = ""
```
@@ -61,7 +61,7 @@ If we do not find any specific content piece element, we will use the content bl
### How do we detect the content piece?
* The simplest scenario is to provide an HTML attribute `data-content-piece="foo"` including a value anywhere within the content block or in the content block element itself.
-* If there is no such attribute we will check whether the content piece element is a media (audio, video, image) and we will try to detect the URL to the media automatically. For instance using the `src` attribute.
+* If there is no such attribute we will check whether the content piece element is a media (audio, video, image) and we will try to detect the URL to the media automatically. For instance using the `src` attribute. If a found media URL does not include a domain or is not an absolute URL we will make sure to have a fully qualified URL.
* In case of video and audio elements, when there are multiple sources defined, we will choose the URL of the first source
* If we haven't found anything we will fall back to use the value "Unknown". In such a case you should set the attribute `data-content-piece` telling us explicitly what the content is.
@@ -78,8 +78,8 @@ This time we can also automatically detect the content target since we have set
```
<a href="http://www.example.com" data-track-content><img src="img-en.jpg" data-content-piece/></a>
<a href="http://www.example.com" data-track-content><img src="img-en.jpg" class="piwikContentPiece"/></a>
-// content name = img-en.jpg
-// content piece = img-en.jpg
+// content name = absolutePath(img-en.jpg)
+// content piece = absoluteUrl(img-en.jpg)
// content target = http://www.example.com
```
@@ -119,7 +119,7 @@ Examples:
```
<img src="img-en.jpg" data-track-content data-content-name="Image1"/>
// content name = Image1
-// content piece = img-en.jpg
+// content piece = absoluteUrl(img-en.jpg)
// content target = ""
```
@@ -127,8 +127,8 @@ This example would be the way to go by defining a `data-content-name` attribute
```
<img src="img-en.jpg" data-track-content/>
-// content name = img-en.jpg
-// content piece = img-en.jpg
+// content name = absolutePath(img-en.jpg)
+// content piece = absoluteUrl(img-en.jpg)
// content target = ""
```
@@ -432,12 +432,12 @@ Nothing special here I think. We would probably automatically detect the type of
* Would content impressions be tracked in overlay session?
* Overlay session should not trigger a content impression
* Cache allowed site urls for redirects
-* Run JS tests ms phone
* Show images on hover in report
* When a user clicks on an interaction, we should check whether we have already tracked the impression as the content is visible now. If not tracked before, we should track the impression as well
* There can be a scroll or timer event that detects the same content became visible as well. This would not be a problem since we do not track same content block twice
* Maybe v2
* Content piece undefined vs Unknown?
+* Make JS tests work if piwik is installed in a path such as localhost/piwik
## V2:
* "note: as a user, I see that piwik.php redirects is the default "click tracking" solution, but I want to be able to disable this piwik.php redirect and instead use the link tracking 500ms solution."