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: Navigate to your Mailmunch menu bar items on the homepage, and select Campaigns.

Step 2: Select the Edit option from the drop-down menu for the form that you want to setup for this purpose.

Step 3: Click on the Field in your form to display the settings menu.

Step 4: 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 5: Enter "referrer" in the Field Value as displayed below. You can name the hidden Field Label whatever you want. Click on the Add Field button to proceed.

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

Step 7: Copy and paste the following code in the View Pixels field.

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

Step 8: Click on the Integrate step, and choose your email service provider to integrate this form with. Provide your credentials, and enter to proceed. Once integrated, you will be able to map the hidden field with your EMS's list field.

Step 9: To publish your form, toggle the Publish this form button to blue. Click on FINISH to activate your form.

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?