0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added Plausible events when copying the signup form embed code

fixes https://github.com/TryGhost/Team/issues/3389
This commit is contained in:
Simon Backx 2023-06-08 14:52:19 +02:00
parent 9d93d21a2d
commit c5fbd8bae6

View file

@ -1,4 +1,5 @@
import Component from '@glimmer/component';
import trackEvent from '../../../utils/analytics';
import {action} from '@ember/object';
import {inject} from 'ghost-admin/decorators/inject';
import {inject as service} from '@ember/service';
@ -147,6 +148,8 @@ export default class SignupFormEmbedModal extends Component {
const el = document.getElementById('gh-signup-form-embed-code-input');
el.select();
document.execCommand('copy');
trackEvent('Copied Embeddable Signup Form Code', {style: this.style, labels: this.labels.length});
}
/**