Commit f116fe11 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '349799-cta-tracking-bug' into 'master'

Three CTA tracking bug

See merge request gitlab-org/gitlab!85091
parents cc0fc09c 0ad40d4a
......@@ -56,7 +56,20 @@ export default {
GlModal: GlModalDirective,
},
mixins: [Tracking.mixin()],
inject: ['user', 'small', 'ctaTracking'],
inject: {
user: {
default: {},
},
small: {
default: false,
},
ctaTracking: {
default: {
action: 'click_button',
label: PQL_BUTTON_TEXT,
},
},
},
data() {
return {
isLoading: false,
......
import Vue from 'vue';
import { s__ } from '~/locale';
import SecurityDiscoverApp from 'ee/vue_shared/discover/card_security_discover_app.vue';
import apolloProvider from 'ee/subscriptions/buy_addons_shared/graphql';
......@@ -49,6 +50,11 @@ export default () => {
companyName,
glmContent,
},
ctaTracking: {
action: 'click_button',
label: s__('PQL|Contact sales'),
experiment: 'pql_three_cta_test',
},
},
render(createElement) {
return createElement('security-discover-app', {
......
......@@ -35,7 +35,6 @@ describe('Card security discover app', () => {
lastName: 'Doe',
companyName: 'ACME',
},
ctaTracking: {},
},
});
};
......
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