MailMunch automatically stores the referrer url for your subscribers and also shows them in the subscriber view. However, if you want this referrer url to be passed on to your preferred Email Marketing Solution (e.g. MailChimp, ConstantContact, etc.), follow the few simple steps mentioned below to implement the additional functionality.

Step 1: Access your MailMunch account, and Edit the form that you want to setup for this purpose.

Step 2: In the Fields step, click on the Add New Hidden Field drop-down menu, and then select the Add New Field option.


Step 3: Make sure your enter "referrer" as shown in the screenshot below in the hidden field "VALUE". You can name the hidden field whatever you want.

Step 4: Go to the Behavior step. Expand the Tracking Pixels section, and in the VIEW PIXELS field, copy and paste the following code:

<script>jQuery("iframe[class^=mailmunch]").each(function(e,n){var i=jQuery(n).contents(),a=i.find('.hidden-field-container input[value="referrer"]');if(a.length>0){var

r=jQuery(a).attr("name").match(/\d+/)[0];i.find("#custom_field_hidden_field_"+r).val(window.location.href)}});

</script>

Step 5: Click on the Integrate step, and map the hidden field with your EMS's list field.

Step 6: Click on the Publish step, switch on the PUBLISH FORM toggle. Click on the Finish button.

That's it! All future subscribers subscribing from this form will have their referrer url populated properly in your EMS.

Did this answer your question?