Skip to content

Commit

Permalink
+ added linkedinclick event
Browse files Browse the repository at this point in the history
  • Loading branch information
BE-CH committed Sep 29, 2022
1 parent d4b1aa1 commit 0f59711
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import Head from 'next/head';
import styles from '../styles/Home.module.css';

export default function Home() {
async function linkedinclick() {
if (window.plausible) {
window.plausible('LinkedInClick'); // Send LinkedIn click event
}
}

return (
<div className={styles.container}>
<Head>
Expand Down Expand Up @@ -114,7 +120,12 @@ export default function Home() {
<div className={styles.findMyWork}>
<p>
You can find more of my work on{' '}
<a rel="noopener noreferrer" href="https://www.linkedin.com/in/mikkellbech/" target="_blank">
<a
onClick={() => linkedinclick()}
rel="noopener noreferrer"
href="https://www.linkedin.com/in/mikkellbech/"
target="_blank"
>
LinkedIn
</a>
.
Expand All @@ -131,7 +142,12 @@ export default function Home() {
<br></br>
<p className={styles.cardLink}>
LinkedIn:{' '}
<a rel="noopener noreferrer" href="https://www.linkedin.com/in/mikkellbech/" target="_blank">
<a
onClick={() => linkedinclick()}
rel="noopener noreferrer"
href="https://www.linkedin.com/in/mikkellbech/"
target="_blank"
>
@mikkellbech
</a>
</p>
Expand Down

0 comments on commit 0f59711

Please sign in to comment.