Join Free
+ Reply to Thread
Results 1 to 3 of 3
  1. #1

    Proper use of links api

    When using the link api, the url parameter should be the last parameter in your url. Many merchants have their own parameters in their url, so it is possible that tracking could be disrupted, or url's will go to the wrong page if you don't place the url parameter last. We also suggest url encoding the merchant url's which also prevents this from happening.

    Correct (&url= is the last parameter):

    PHP Code:
    http://prosperent.com/api/linkaffiliator/redirect?apiKey=640726f74f17fb5f7665665c2ccc74ee&url=http://shop.nordstrom.com/s/kelsi-dagger-brooklyn-commuter-leather-tote/3800997?recs_type=related&recs_productId=&recs_categoryId=6024190&recs_productOrder=2&recs_placementId=handbags&recs_source=Rich_Relevance_Recs_R3&recs_strategy=MoversAndShakersInCategory 
    Correct (merchant url is url encoded which ensures that all merchant parameters are sent over properly):

    PHP Code:
    http://prosperent.com/api/linkaffiliator/redirect?apiKey=640726f74f17fb5f7665665c2ccc74ee&url=http%3A%2F%2Fwww.zappos.com%2Fd%2Fshop-by-womens%2Ftoptrends 

    Incorrect(url= is placed first. This may not work for every url and may disrupt tracking):

    PHP Code:
    http://prosperent.com/api/linkaffiliator/redirect?url=http://shop.nordstrom.com/c/personal-stylists?cm_sp=merch-_-corp_0218personalstylist-_-swpheaderleft_info&origin=header-left-promo&apiKey=640726f74f17fb5f7665665c2ccc74ee&sid=test 

  2. #2
    Certainly you could extract the parameters and reshuffle them yourselves to match what the merchants are accepting using some simple PHP code?

  3. #3
    Every merchant is different. You either need to url encode the merchant url on your end (best method), or send us the url parameter last so we can parse it without having to worry about the parameter order and such.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
coupons | coupons and deals