1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need to create an auto submit for several CPA offers...need help with logic.

Discussion in 'General Programming Chat' started by jsmash, Jan 29, 2013.

  1. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    Hello,

    I am looking to have my developer put together an auto submission (like in attached image) where when the user registers on our GPT survey site, the data is passed to a page similar to the image. We will already have the offers setup and they can simply check Yes or NO to take advantage of the offer. If they check Yes, then it will auto submit their info to the affiliate offer when they hit the submit button.

    While my dev is very talented he is having a bit of an issue with this because he does not understand some of the constraints of the CPA offers tracking, IP tracking, etc.

    Would anyone be willing to help with some logic on this to guide him in the right direction? We need this implemented to monetize our front end and ad costs.

    Any advise is greatly appreciated!

    Capture75.PNG
     
  2. hameem

    hameem Elite Member

    Joined:
    Jul 21, 2011
    Messages:
    1,880
    Likes Received:
    985
    Location:
    221B Baker Street
    If I understood it correctly, when the user arrives at the point shown in the attached image, you already have some data from him (like name, age, sex etc.). This data is the exact data that's needed to complete those survey offers in the pic. You just need to pass that data on to one of the survey offer and submit. Am I correct?
     
  3. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    This is correct...so any they click "Yes" on...it will take the data already collected and pass it to the offer. Just looking for the best logic to accomplish this with CPA offers. Mainly email/info submits (lead gen offers).
     
  4. hameem

    hameem Elite Member

    Joined:
    Jul 21, 2011
    Messages:
    1,880
    Likes Received:
    985
    Location:
    221B Baker Street
    Well in that case what you need to do is you need to automatically fill up and submit a third party form (the offer/survey) with the info you already have. The cpa network only receives the info that says if the offer was completed or not. It does not receive the user's info. That is handled by the advertiser.So, ask your programmer to look for ways to automatically fill up and submit a form with already avilable info. Maybe ajax/javascript could help.
     
    • Thanks Thanks x 1
  5. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    Right...

    I got this logic from a thread on here but it's from like 2010...so I wanted to make sure it is still relevant to the evolving of tracking, etc. My programmer said he had some issues when implementing this logic...

    From a thread in 2010:

    ..."this really isnt that hard. this is how I would do it: you have a signup page on your site that sends all the get data to a script. then it registers session variables for your session corresponding to the data the user entered. then the php script receiving the data loads a page with iframes containing pages that create forms with the values stored in the session variables and then uses javascript to autosubmit the form."
     
  6. hameem

    hameem Elite Member

    Joined:
    Jul 21, 2011
    Messages:
    1,880
    Likes Received:
    985
    Location:
    221B Baker Street
    Yeah that sounds like that could work.

    You are storing users' info one way or the other before coming to the page you attached. At that point you probably have inserted the info into the database. Of course, storing and reading it from the session variable would be quicker. You just need to quickly test if the session variables exist before proceeding because the user might close the browser or the pc might turn off or whatever.

    The rest is just filling up the cpa offer with that info. That should not be too hard becuse javascript can fill the form up. You can use ajax to retrieve the info from the session or the databse and the pass it on to javascript so that it can use that info to fill up the form.

    If your programmer is talented, like you say, he/she should not have problem understanding this. This has nothing to so with tracking or anything else. You are just immitating a human being.
     
    • Thanks Thanks x 1
  7. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    Sounds good...

    What about the iframe thing? Is this what makes it look as though the submit is coming from the actual user? Just trying to understand what each moving part does/why

    Thanks hameem!
     
  8. hameem

    hameem Elite Member

    Joined:
    Jul 21, 2011
    Messages:
    1,880
    Likes Received:
    985
    Location:
    221B Baker Street
    No worries mate.

    The iframe is just to load the offer's landing page within the premise of your website. Since the javascript is acting from your site, you need something to integrate the form to your site; the iframing does that. The advertiser will know the offer was filled up from within your site which is okay, I think, since you have a gpt site.
     
  9. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    Got it...thx! I'm going to see if there is something already developed that might be able to shortcut this process. Thanks again!
     
  10. iPinner

    iPinner Senior Member Premium Member

    Joined:
    Apr 20, 2012
    Messages:
    1,061
    Likes Received:
    1,039
    botnet meets cpa. not serious, keep this topic updated, please.
     
  11. AnoNimTeck

    AnoNimTeck Newbie

    Joined:
    Jul 14, 2012
    Messages:
    14
    Likes Received:
    6
    Hmm, I want to inform you, because of browser security policies, you can't actually edit and fill forms on a 3rd party site from your site. That's because of the same-origin policy of the web browsers to protect the users from clickjacking. You won't be able to do something like this, only very old browsers are vulnerable to such kind of things. You can find about this policy on wikipedia.
     
    Last edited: Feb 2, 2013
  12. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    you just pre-pop it I believe...
     
  13. fastslip

    fastslip Newbie

    Joined:
    Jun 7, 2012
    Messages:
    8
    Likes Received:
    0
    your dev isn't dirty enough for this. get a new one.
     
  14. jsmash

    jsmash Registered Member

    Joined:
    Feb 28, 2012
    Messages:
    53
    Likes Received:
    32
    Haha! You are correct! I already have! lol

     
  15. chrisj383

    chrisj383 Newbie

    Joined:
    Nov 13, 2009
    Messages:
    6
    Likes Received:
    0
    did you have any luck with this