Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7d51d6e0
Commit
7d51d6e0
authored
Aug 11, 2021
by
Axel Garcia
Committed by
Savas Vedova
Aug 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load experiments via tracking options on runtime
parent
fd6e567e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
app/assets/javascripts/vue_shared/new_namespace/components/welcome.vue
...vascripts/vue_shared/new_namespace/components/welcome.vue
+1
-11
doc/development/snowplow/index.md
doc/development/snowplow/index.md
+3
-1
No files found.
app/assets/javascripts/vue_shared/new_namespace/components/welcome.vue
View file @
7d51d6e0
<
script
>
import
{
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
Vue
from
'
vue
'
;
import
Tracking
from
'
~/tracking
'
;
export
default
{
directives
:
{
SafeHtml
,
},
mixins
:
[
Tracking
.
mixin
()],
props
:
{
title
:
{
type
:
String
,
...
...
@@ -17,16 +17,6 @@ export default {
required
:
true
,
},
},
created
()
{
const
trackingMixin
=
Tracking
.
mixin
();
const
trackingInstance
=
new
Vue
({
...
trackingMixin
,
render
()
{
return
null
;
},
});
this
.
track
=
trackingInstance
.
track
;
},
};
</
script
>
<
template
>
...
...
doc/development/snowplow/index.md
View file @
7d51d6e0
...
...
@@ -279,7 +279,8 @@ export default {
```
The event data can be provided with a
`tracking`
object, declared in the
`data`
function,
or as a
`computed property`
.
or as a
`computed property`
. A
`tracking`
object is convenient when the default
event properties are dynamic or provided at runtime.
```
javascript
export
default
{
...
...
@@ -292,6 +293,7 @@ export default {
// category: '',
// property: '',
// value: '',
// experiment: '',
// extra: {},
},
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment