How can i...Pass back order ID to affiliate tracking?

Discussion in 'PHP' started by acquifolio, Jan 14, 2014.

  1. #1
    I have to pass back an ID to an affiliate so they can track there traffic.
    in my database, when a user signs up they get an id

    they sent me this

    <img src="http://www.domainname.com/tracking/RecordPixel.aspx?cmp=123&optional=&optional2=&optional3=" width="1" height="1" border="0" />
    Code (markup):
    and asked please pass back lead id under optional=

    so what would i add next to optional= to get the order id passed back

    thanks for any help
     
    acquifolio, Jan 14, 2014 IP
  2. threehundred

    threehundred Member

    Messages:
    88
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #2
    I'm not sure I understand. Shouldn't you just place the user's id after optional= ?

    Are you the affiliate or are they?

    If you pass back the lead id in the URL, that should be everything they need, although I don't know what they would do with the ID, since it is part of your database, not theirs.
     
    threehundred, Jan 20, 2014 IP
  3. Zeest

    Zeest Active Member

    Messages:
    337
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    83
    #3
    Just pass the users id from your database into the optional1 field

    If the user ID is stored in the variable $user_id it would look something like this

    echo '<img src="http://www.domainname.com/tracking/RecordPixel.aspx?cmp=123&optional=' . $user_id . '&optional2=&optional3=" width="1" height="1" border="0" />'
    PHP:
     
    Zeest, Jan 22, 2014 IP