All Collections
Apps & Integrations
Integrations
How do I pass the Referral URL to my integration?
How do I pass the Referral URL to my integration?
Liz Gannes avatar
Written by Liz Gannes
Updated over a week ago

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 click on Edit from the ACTIONS drop-down menu for the form that you want to setup for this purpose.

Step 2: Click on the Field displayed in your form as shown below.

Step 3: Click on the Add New Hidden Field button present in the left menu panel of your screen, and then select the Add New Hidden Field option from the drop-down menu.

Step 4: Enter "referrer" in the Field Value as displayed in the screenshot below. You can name the hidden Field Label whatever you want.

Step 5: Go to the Behavior step, and expand the Tracking Pixels section in the left menu panel on your screen.

Step 6: Copy and paste the following code in the View Pixel field.

<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 7: Click on the Integrate step, and choose your email service provider to integrate this form with. Provide your credentials, and enter to proceed.

Step 8: Once integrated, you will be able to map the hidden field with your EMS's list field.

Step 9: 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?