Hello! We’re preparing to send an email announcing a new report we’re publishing.
Ideally we’d like the workflow to be:
The email links to our external landing page (not a HubSpot-hosted page)
That page should display a download form only if the visitor isn’t cookied or isn’t already known
If the contact has received the email or is already cookied/identified, we’d like them to bypass the form entirely and simply be shown a link to download the report
Hey, @CC_x I think this one is a bit sneaky and tricky to implement without a backend server to securely handle the auth and API calls. Sending API calls from the browser is a big risk and should be avoided for anything in production.
One alternative that only uses JS is to utilize a query parameter. To pass the “known” status securely via the link itself without needing complex API calls.
Run a small script on your external landing page that runs immediately when the page loads to check if the status is known and hide the form <div> or if unknown, display the form.
I hope this helps get you moving forward! — Jaycee