Universal Forms Integration
This will track referrals only using any form on your website
Ayo AbdulLast Updated June 26, 2025
Step 1: Tracking Clicks
Insert the following script in your website's <head>
tag to start tracking clicks:
Normal Method
<script
src="https://pushlapgrowth.com/affiliate-tracker.js"
data-affiliate
data-program-id="YOUR_AFFILIATE_PROGRAM_ID"
async>
</script>
Using Google Tag Manager
<script>
var pushLap = document.createElement('script');
pushLap.src = "https://pushlapgrowth.com/affiliate-tracker.js";
pushLap.setAttribute('data-affiliate', '');
pushLap.setAttribute('data-program-id', 'YOUR_AFFILIATE_PROGRAM_ID');
document.head.appendChild(pushLap);
</script>
Step 2: Track Referrals/Sign ups from forms
You need paste the following code before the closing </body> tag of your website on pages where there is a form.
<script>
(function () {
function findEmailAndName(form) {
const emailInput = form.querySelector('input[type="email"], input[name*="email" i]');
const nameInput = form.querySelector('input[name*="name" i]');
const email = emailInput ? emailInput.value.trim() : null;
const name = nameInput ? nameInput.value.trim() : null;
return { email, name };
}
function handleFormSubmit(event) {
const form = event.target;
const { email, name } = findEmailAndName(form);
if (email && typeof createPushLapEmail === "function") {
window.createPushLapEmail(email, name || undefined);
}
}
function attachListeners() {
const forms = document.querySelectorAll('form');
forms.forEach((form) => {
if (!form.dataset.pushlapBound) {
form.addEventListener('submit', handleFormSubmit);
form.dataset.pushlapBound = 'true';
}
});
}
attachListeners();
const observer = new MutationObserver(() => attachListeners());
observer.observe(document.body, { childList: true, subtree: true });
})();
</script>
Step 3: Track Sales
This integration alone cannot be used to track sales. You will have to use one of our other integrations which are capable of tracking sales in combination with this one.
Did this answer your question?