[READ-ONLY] Mirror of https://github.com/danielroe/dwaring87-webdev-wedding. Marissa & David's Wedding Website!
0

Configure Feed

Select the types of activity you want to include in your feed.

Add Plausible Events

+8 -3
+3 -1
.env.example
··· 1 1 DIRECTUS_URL= 2 2 DIRECTUS_TOKEN= 3 3 RSVP=true 4 - GA_ID=G-xxxxxxxxxx 4 + GA_ID=G-xxxxxxxxxx 5 + PLAUSIBLE_DOMAIN= 6 + PLAUSIBLE_HOST=
+1
components/RSVP/Edit.vue
··· 80 80 81 81 if ( !success ) { 82 82 errors.push(`Could not update Guest <strong><em>${name}</em></strong>.`); 83 + useTrackEvent('RSVP Error', { props: { code: props.invitation.invite_code, guest: name } }); 83 84 gtag('event', 'rsvp_error', {invite: props.invitation.invite_code, guest: name}); 84 85 } 85 86 }
+1
components/RSVP/Lookup.vue
··· 33 33 } 34 34 else { 35 35 error.value = `Invitation Not Found.<br /><br />The invite code <strong><code>${invite_code.value}</code></strong> does not exist. Double check and make sure the spelling is correct.<br /><br />If you don't know your invite code, reach out to us directly or email us at <a style="text-decoration: underline" href="mailto:${email.value}?subject=[Contact] RSVP Help">${email.value}</a>.`; 36 + useTrackEvent('RSVP Not Found', { props: { code: invite_code.value } }); 36 37 } 37 38 } 38 39 }
+2 -2
nuxt.config.ts
··· 13 13 }, 14 14 15 15 plausible: { 16 - domain: 'killarneybicycletours.com', 17 - apiHost: 'https://a.davidwaring.net', 16 + domain: process.env.PLAUSIBLE_DOMAIN, 17 + apiHost: process.env.PLAUSIBLE_HOST, 18 18 autoPageviews: true, 19 19 hashMode: true, 20 20 trackLocalhost: true
+1
pages/rsvp.vue
··· 8 8 history.replaceState(history.state, null, '?invite=' + i.invite_code); 9 9 window.scrollTo(0, 0); 10 10 useHead({ title: `RSVP - ${i.name}` }); 11 + useTrackEvent('RSVP', { props: { code: i.invite_code, name: i.name } }); 11 12 gtag('event', 'rsvp', {code: i.invite_code, name: i.name}); 12 13 } 13 14