Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
15e18dbe
Unverified
Commit
15e18dbe
authored
4 years ago
by
Bekerle, Patrizio
Browse files
Options
Downloads
Patches
Plain Diff
Add analytics-event documentation
parent
b3df8164
No related branches found
No related tags found
No related merge requests found
Pipeline
#16862
passed
4 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
packages/matomo/README.md
+14
-0
14 additions, 0 deletions
packages/matomo/README.md
with
15 additions
and
0 deletions
README.md
+
1
−
0
View file @
15e18dbe
...
@@ -38,6 +38,7 @@ the version number in its `package.json` is higher than the version number on np
...
@@ -38,6 +38,7 @@ the version number in its `package.json` is higher than the version number on np
|
`entry-point-url`
| Entry point url for all api requests |
|
`entry-point-url`
| Entry point url for all api requests |
|
`requested-login-status`
| Used by the login buttons to trigger a login in auth components |
|
`requested-login-status`
| Used by the login buttons to trigger a login in auth components |
|
`initial-file-handling-state`
| Used by the file-handling component to sync file source/sink at first time open |
|
`initial-file-handling-state`
| Used by the file-handling component to sync file source/sink at first time open |
|
`analytics-event`
| Used to send analytics events to the Matomo component |
## Reserved events
## Reserved events
...
...
This diff is collapsed.
Click to expand it.
packages/matomo/README.md
+
14
−
0
View file @
15e18dbe
...
@@ -23,6 +23,20 @@ npm i @dbp-toolkit/matomo
...
@@ -23,6 +23,20 @@ npm i @dbp-toolkit/matomo
-
example auth property:
`{'login-status': 'logged-in'}`
-
example auth property:
`{'login-status': 'logged-in'}`
-
note: most often this should be an attribute that is not set directly, but subscribed at a provider
-
note: most often this should be an attribute that is not set directly, but subscribed at a provider
### Emitted attributes
The component emits a
`dbp-set-property`
event for the
`analytics-event`
attribute.
It looks like this:
```
json
{
"category"
:
"the category of the event"
,
"action"
:
"the action of the event"
,
"name"
:
"the name of the event"
,
"value"
:
"the value of the event"
}
```
## Tracking actions
## Tracking actions
```
html
```
html
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment