Passing email field from form into tracking pixel


#1

On a previous landing page platform we had a script run to set a cookie upon form submission that hashed the email address and passed it into the tracking pixel on the confirmation page. This script does not work in unbounce as I believe the id of the fields are not the right ones for this platform.

This may not be the best way to do it, but it was the option we had at the time. Is there a known script that run run upon form submission that would be able to place the email address into a tracking pixel?

Here’s what we had previously used on a different platform.
This piece is what contains the tracking pixel:
objScript.setAttribute(“src”, “https://domain.com/p.ashx?p1=70&p2=5&f=js&t=” + getCookie(“email”));

Confirmation Code: