pull affiliate id out of idevaffiliate for hidden form field

3 replies
My first visit to these forums. Lot of great discussions. Glad to be here.

Our site uses idevaffiliate (great program btw) for affiliate tracking. I am trying to figure out how to pull the affiliate id from a cookie and have a form submit the value in a hidden form field. I know how to make hidden form fields, but pulling the id out of the cookie is giving me headaches.

The reason we want to do this is to submit the id in a form to our newsletter list program as a secondary tracking method for our affiliates. This way, when a user clears their cookies and completes a sale weeks or months later, we will be able see if an affiliate deserves a commission. We can download our newsletter list and see the affiliate id associated with our customers email. Some of our affiliate commissions are over $230 so we are trying to be as fair as possible to our affiliates (the more we pay them, the happier they are to promote us).

If the optin form is on the landing page, it's easy to get the id form the url with idevaffiliate, but some of our optins are deeper into our site. Because of this, we need to be able to pull the id out of the cookie. Any suggestions on how to do this greatly appreciated.
#affiliate #cookies #field #form #hidden #idevaffiliate #pull
  • Profile picture of the author dingleigofai
    did you ever figure this out?
    Signature
    {{ DiscussionBoard.errors[1753277].message }}
    • Profile picture of the author emaildeliverypro
      Banned
      [DELETED]
      {{ DiscussionBoard.errors[1753334].message }}
      • Profile picture of the author andrew55
        I've seen different php calls for pulling cookie values. I've played around with different call variations. I've gotten a page to print out cookies and their values (in the text, as a test), but nothing that looks like an idevafffiliate id.

        I think the name of the idevaffiliate id is utma_, but I'm not sure. When I print out the value of that cookie, it's a long string of text. Maybe is has to be translated in some way to show the affiliate id.

        The program does have a snippet that can be used to print the affiliate id to a page, but I can't figure out how to get the script inside the html form (not sure if it's possible). Here's the script if anyone has any ideas:

        Code:
        <script language="JavaScript" type="text/javascript" src="mysite/partner/display.php"></script>
        I know idevaffilite is the most popular affiliate software on the market, so I'm sure someone has done this before. Thanks in advance for any ideas.
        {{ DiscussionBoard.errors[1753464].message }}

Trending Topics