feat: bye analytics
This commit is contained in:
parent
94d58d0f0c
commit
2bf2fba325
20 changed files with 14 additions and 185 deletions
|
@ -32,17 +32,4 @@ description: How to contact me.
|
|||
<button type="submit">Send message</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
document.querySelector('[data-form="contact"]').addEventListener('submit', function(event) {
|
||||
if (typeof plausible === 'function') {
|
||||
plausible('Contact form submitted', {
|
||||
props: {
|
||||
name: this.name.value,
|
||||
email: this.email.value,
|
||||
message: this.message.value
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</div>
|
Reference in a new issue