Pass http Referer URL to Aweber form

11 replies
How do I pass the Internet browser http referer URL to Aweber?

I've spent several hours looking now with no real answers.

What I am trying to do is track where my visitors are coming from and then pass that data into the Aweber database.

I know that web browsers temporarily save the URL that a user came from. I also know that I can pass a custom variable through an Aweber form.

So let's say that a user comes to my squeeze page from an ezine article. The users web browser who have a referer URL of http://ezinearticles.com/my-article/

Then when that user submits the squeeze form on my squeeze page, The Aweber form will automatically submit the referer URL along with the users name and email.

This way I can easily track my lead sources without having to define each new lead source ahead of time: each lead source tracking would be dynamic.

It seems like this could be done using php or cookies.

Who knows of a way to make this work?
#aweber #form #http #pass #referer #url
  • Profile picture of the author ckarling
    I don't think it's possible without using a bit of PHP.

    What I think you could do to solve this is having a programmer edit your aweber form, and create a hidden input field, then post
    $_SERVER['HTTP_REFERER'] to an unused database column in your list database.

    Don't take my word for it, but I'm pretty sure it can be done. (I haven't been coding in ages, but I seem to remember working on something similar way back when.)


    Good luck with it though!
    {{ DiscussionBoard.errors[7604666].message }}
    • Profile picture of the author Kegandrew
      @ckarling, thanks for answering. What you said sounds about right. It's just the details of exactly how to make it work that are still missing.
      {{ DiscussionBoard.errors[7605132].message }}
  • Profile picture of the author ozanK
    Why dontcha ask Aweber support? Did not they help you out?
    Signature
    For sale: High Quality .com KW rich Real PR3 domain. Premade site with exquisite SEO ready content
    ready to put money in YOUR pocket! (BİG Amazon/Adsense potential) Appraised at 1,000$ by Estibot!
    {{ DiscussionBoard.errors[7605324].message }}
    • Profile picture of the author Kegandrew
      @ozank, I did ask, but they haven't replied. I've got a solo ad mailing that is on hold until I get tracking worked out. I just thought I would try and see if another Warrior might have an answer while I was waiting for Aweber to respond.
      {{ DiscussionBoard.errors[7605777].message }}
      • Profile picture of the author Kegandrew
        OK. Aweber responded and didn't seem to understand the question. They told me to use Analytics.

        I am using analytics and I can go there to see where the visitors are coming from to some degree. But it is more general than anything.

        I am looking for a way to attach the url that the visitor came from to the email address that they submit into Aweber using my optin form.

        It just seems like it should be possible to do this. If the analytics software can show me the referer url, why can't this be captured as a custom field and submitted to Aweber through the optin process?

        So if there is anyone that knows how to do this or has any suggestions for how it might be done, please let us know. I'm sure there are others who would like to know as well.
        {{ DiscussionBoard.errors[7606805].message }}
  • Profile picture of the author karlmay1980
    You should be able to track this using Google Analytics by seeing where they come from and where they went next from that webpage.
    Signature
    Want To Make Your First £10,000 Online?
    {{ DiscussionBoard.errors[7606862].message }}
    • Profile picture of the author Kegandrew
      Originally Posted by karlmay1980 View Post

      You should be able to track this using Google Analytics by seeing where they come from and where they went next from that webpage.
      Thank you. But this still does not attach the referer url to the email address. Using Analytics merely shows you general traffic patterns. I am looking for a way to quickly automate the process of linking the referer url to the email address that is opted in.
      {{ DiscussionBoard.errors[7607087].message }}
  • Profile picture of the author Istvan Horvath
    Try this: Passing the Referrer in a Form

    And aweber knowledge base has an article about hidden fields...
    Signature

    {{ DiscussionBoard.errors[7607183].message }}
    • Profile picture of the author Kegandrew
      I can't believe it! After doing quite a bit more searching and reading, I found it!

      yourop posted on another thread:
      http://www.warriorforum.com/main-internet-marketing-discussion-forum/690696-opt-tracking.html#post7136191

      While I removed much of the extra that I don't need, the code is basically the same.

      All I did was create a custom (Aweber) field named 'referer' and then inserted this code in the basic (raw HTML version) aweber web form on my index.php page:

      <input type="hidden" name="custom referer" value='<?=$_SERVER['HTTP_REFERER']?>' />

      I tested it and it works!

      Wow! It just seems like this simple solution is something that should have been much easier to find. I can't believe others aren't asking the same question. Hopefully this will help someone else in the future.
      {{ DiscussionBoard.errors[7607306].message }}
    • Profile picture of the author Kegandrew
      Originally Posted by Istvan Horvath View Post

      Try this: Passing the Referrer in a Form

      And aweber knowledge base has an article about hidden fields...
      Thank you for posting this. If I hadn't already found the solution, I'm sure this would have got me going down the right path.
      {{ DiscussionBoard.errors[7607313].message }}
  • {{ DiscussionBoard.errors[10576656].message }}

Trending Topics