Automatically capture consent evidence from your lead forms
ck_abc123...)Add this single script tag to your form page's <head> or before the closing </body> tag:
<script src="https://cdn.bidyard.dev/js/form.js"
data-client-key="YOUR_CLIENT_KEY_HERE"></script>Replace YOUR_CLIENT_KEY_HERE with your actual Client Key.
That's it! The script will automatically:
<!DOCTYPE html>
<html>
<head>
<title>Lead Form</title>
<!-- BidYard Consent Script -->
<script src="https://cdn.bidyard.dev/js/form.js"
data-client-key="ck_your_key_here"></script>
</head>
<body>
<form id="leadForm" action="/submit" method="POST">
<input type="text" name="firstName" placeholder="First Name" required>
<input type="text" name="lastName" placeholder="Last Name" required>
<input type="email" name="email" placeholder="Email" required>
<input type="tel" name="phone" placeholder="Phone" required>
<!-- Consent Checkbox -->
<label>
<input type="checkbox" name="consent" required>
By checking this box, I consent to receive marketing communications
via phone, email, or text at the contact information provided.
I understand that consent is not required to purchase services.
</label>
<div style="margin-top: 10px; font-size: 12px;">
<a href="/privacy-policy" target="_blank">Privacy Policy</a> |
<a href="/terms-of-service" target="_blank">Terms of Service</a>
</div>
<button type="submit">Get Your Free Quote</button>
</form>
</body>
</html>The BidYard Consent Script automatically captures:
Checkbox state (checked/unchecked)
When consent was given
User's IP for verification
Browser/device information
Where consent was given
Clicks and checkbox interactions
The script automatically detects checkboxes with these common names:
consenttcpa_consentmarketing_consentagreeToTermsacceptTermsagreeFor custom checkbox names, use the data-consent-selector attribute:
<script src="https://cdn.bidyard.dev/js/form.js"
data-client-key="ck_your_key"
data-consent-selector="input[name='custom_name']"></script>[BidYard] Consent script loaded successfullyIf you cannot install the BidYard Consent Script, you can still send consent evidence using legacy third-party providers:
{
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"xxTrustedFormCertUrl": "https://cert.trustedform.com/..."
}{
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"leadid_token": "...",
"universal_leadid": "..."
}Note: These legacy methods provide basic compliance but lack the enhanced security and real-time verification of the BidYard Consent Script.