Commit 0ad40d4a authored by Alper Akgun's avatar Alper Akgun

Three CTA tracking bug

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