Commit ebc6ad98 authored by Simon Knox's avatar Simon Knox

Merge branch '351915-fix-experiment-tracking' into 'master'

Add experiment context to click_video_link action in video experiment

See merge request gitlab-org/gitlab!84026
parents 043a8f97 4e7b04b9
......@@ -104,6 +104,7 @@ export default {
data-track-action="click_video_link"
:data-track-label="linkTitle"
data-track-property="Growth::Conversion::Experiment::LearnGitLab"
data-track-experiment="video_tutorials_continuous_onboarding"
/>
</template>
</gitlab-experiment>
......
......@@ -166,6 +166,13 @@ describe('Learn GitLab Section Link', () => {
expect(trackingSpy).toHaveBeenCalledWith('_category_', 'click_video_link', {
label: 'Add code owners',
property: 'Growth::Conversion::Experiment::LearnGitLab',
context: {
data: {
experiment: 'video_tutorials_continuous_onboarding',
variant: 'candidate',
},
schema: 'iglu:com.gitlab/gitlab_experiment/jsonschema/1-0-0',
},
});
unmockTracking();
......
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