Can I track my subscriber source?
Yes, there are ways to track your subscriber's source so you know how and where they subscribed to your newsletter.
1- If you go to Lists => Consent list you can see the source of a contact:
List import: Contact was uploaded through a CSV file.
Subscription: Contact subscribed himself through a sign-up form
Manually added: Contact was added manually through eFlyerMaker
2- These next methods requires a little bit of HTML manipulation:
Track the current page
document.location
Add a subscriber_source field to your list (Or any other name you see fit, there is no restriction)
In the HTML source code of your sign-up form, make the field hidden
<input type="hidden" name="Subscriber_source" id="Subscriber_source">
The name attribute is the name of your field in your contact list. In this example, it's Subscriber_source.- In the HTML after the form, add this script:
<script type="text/javascript"> document.getElementById("Subscriber_source").value = document.location||'location undef'; </script>
In a case where the browser was unable to to track the referrer, it will be marked as location undef.
Track the Referrer
document.referrer;
Add a REF field to your list (Or any other name you see fit, there is no restriction)
In the HTML source code of your sign-up form, make the field hidden
<input type="hidden" name="REF" id="REF">
The name attribute is the name of your field in your contact list. In this example, it's REF.- In the HTML after the form, add this script:
<script type="text/javascript"> document.getElementById("REF").value = document.referrer||'No Referrer'; </script>
In a case where the browser was unable to to track the referrer, it will be marked as No referrer.
Track URL parameters
What goes after the ? .
Example: http://www.mybusinesswebsite.com/signupform.html?source=google We want to return the google value to the form
Add a subscriber_source field to your list (Or any other name you see fit, there is no restriction)
In the HTML source code of your sign-up form, make the field hidden
<input type="hidden" name="Subscriber_source" id="Subscriber_source">
The name attribute is the name of your field in your contact list. In this example, it's Subscriber_source.- In the HTML after the form, add this script:
<script type="text/javascript"> var getQueryString = function ( field, url ) { var href = url ? url : window.location.href; var reg = new RegExp( '[?&]' + field + '=([^]*)', 'i' ); var string = reg.exec(href); return string ? string[1] : null; }; function setValue(){ document.getElementById("Subscriber_source").value = getQueryString('this')||'No query'; } setValue(); </script>
In a case where the browser was unable to to track the referrer, it will be marked as No Query.