Commit aee535fb authored by Alper Akgun's avatar Alper Akgun

Merge branch 'docs-aajgun-recording-assignment-tracking-shared-example' into 'master'

Docs for recording and assignment tracking shared example

See merge request gitlab-org/gitlab!66011
parents 3cacfeb6 f4ce8c95
...@@ -513,6 +513,11 @@ expect(experiment(:example)).to track(:my_event, value: 1, property: '_property_ ...@@ -513,6 +513,11 @@ expect(experiment(:example)).to track(:my_event, value: 1, property: '_property_
experiment(:example, :variant_name, foo: :bar).track(:my_event, value: 1, property: '_property_') experiment(:example, :variant_name, foo: :bar).track(:my_event, value: 1, property: '_property_')
``` ```
### Recording and assignment tracking
To test assignment tracking and the `record!` method, you can use or adopt the following
shared example: [tracks assignment and records the subject](https://gitlab.com/gitlab-org/gitlab/blob/master/spec/support/shared_examples/lib/gitlab/experimentation_shared_examples.rb).
## Experiments in the client layer ## Experiments in the client layer
This is in flux as of GitLab 13.10, and can't be documented just yet. This is in flux as of GitLab 13.10, and can't be documented just yet.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment