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:
parent
9d93d21a2d
commit
c5fbd8bae6
1 changed files with 3 additions and 0 deletions
|
@ -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});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue