I have a landing page that sets a cookie on your machine when you arrive:
<script type="text/javascript">
Cookies.set('Web_Lead_Specific_Source__c', 'PPC', { expires: 365 });
</script>
On a separate page I have a form with a hidden field:
<input name="Web_Lead_Specific_Source__c" value="">
I'm trying to load the value with "PPC" if the user has visited the landing page. The following code is not working:
Cookies.get('Web_Lead_Specific_Source__c'); => 'PPC'
I'm sure I'm missing something.