/ Published in: PHP
                    
                                        
VisiStat Identities with Gravity Forms
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
// Check to see if this is an incoming link from an email campaign with an email address in the URL string
$identity = $_COOKIE['identity'];
// Otherwise, look to see if a Gravity Form has been submitted ("input_3" being the email field)
$identity = $_COOKIE['identity'];
// If neither of the above, check to see if an identity cookie has previously been set (returning user).
$identity = $_COOKIE['identity'];
// We don't know their identity yet.
} else {
$identity="";
}
?>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                