Add events to the subscription forms

pull/3278/head
Kamran Ahmed 2 years ago
parent fd939f198a
commit aff7d8eece
  1. 1
      src/components/DownloadPopup.astro
  2. 2
      src/components/RoadmapHeader.astro
  3. 1
      src/components/SubscribePopup.astro

@ -34,6 +34,7 @@ import CaptchaFields from './Captcha/CaptchaFields.astro';
type='submit' type='submit'
name='submit' name='submit'
class='text-white bg-gradient-to-r from-amber-700 to-blue-800 hover:from-amber-800 hover:to-blue-900 font-regular rounded-md text-md px-5 py-2.5 w-full text-center mr-2' class='text-white bg-gradient-to-r from-amber-700 to-blue-800 hover:from-amber-800 hover:to-blue-900 font-regular rounded-md text-md px-5 py-2.5 w-full text-center mr-2'
onclick="window.fireEvent({ category: 'Subscription', action: 'Submitted Popup Form', label: 'Download Roadmap Popup' })"
> >
Send Link Send Link
</button> </button>

@ -51,6 +51,7 @@ const isRoadmapReady = !isUpcoming;
data-popup="download-popup" data-popup="download-popup"
class="inline-flex items-center justify-center bg-yellow-400 py-1.5 px-3 text-xs sm:text-sm font-medium rounded-md hover:bg-yellow-500" class="inline-flex items-center justify-center bg-yellow-400 py-1.5 px-3 text-xs sm:text-sm font-medium rounded-md hover:bg-yellow-500"
aria-label="Download Roadmap" aria-label="Download Roadmap"
onclick="window.fireEvent({ category: 'Subscription', action: 'Clicked Popup Opener', label: 'Download Roadmap Popup' })"
> >
<Icon icon="download" /> <Icon icon="download" />
<span class="hidden sm:inline ml-2">Download</span> <span class="hidden sm:inline ml-2">Download</span>
@ -61,6 +62,7 @@ const isRoadmapReady = !isUpcoming;
data-popup="subscribe-popup" data-popup="subscribe-popup"
class="inline-flex items-center justify-center bg-yellow-400 py-1.5 px-3 text-xs sm:text-sm font-medium rounded-md hover:bg-yellow-500" class="inline-flex items-center justify-center bg-yellow-400 py-1.5 px-3 text-xs sm:text-sm font-medium rounded-md hover:bg-yellow-500"
aria-label="Subscribe for Updates" aria-label="Subscribe for Updates"
onclick="window.fireEvent({ category: 'Subscription', action: 'Clicked Popup Opener', label: 'Subscribe Roadmap Popup' })"
> >
<Icon icon="email" /> <Icon icon="email" />
<span class="ml-2">Subscribe</span> <span class="ml-2">Subscribe</span>

@ -33,6 +33,7 @@ import CaptchaFields from './Captcha/CaptchaFields.astro';
type='submit' type='submit'
name='submit' name='submit'
class='text-white bg-gradient-to-r from-amber-700 to-blue-800 hover:from-amber-800 hover:to-blue-900 font-regular rounded-md text-md px-5 py-2.5 w-full text-center mr-2' class='text-white bg-gradient-to-r from-amber-700 to-blue-800 hover:from-amber-800 hover:to-blue-900 font-regular rounded-md text-md px-5 py-2.5 w-full text-center mr-2'
onclick="window.fireEvent({ category: 'Subscription', action: 'Submitted Popup Form', label: 'Subscribe Roadmap Popup' })"
> >
Subscribe Subscribe
</button> </button>

Loading…
Cancel
Save