0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

affiliate tracking code passed in the URL

    • Pete_'s Avatar
    • Pete_
    • Newbie
    • Posts: 5
    • Thanks: 0

    affiliate tracking code passed in the URL

    Posted 13 years 7 months ago
    • Hello everyone,
      I'm having a problem a problem with some affiliate tracking code...

      What's supposed to happen is that a customer clicks a banner ad on an affiliate site, and the affiliate ID and promo code are passed through the URL like this:

      http://www.affiliate_site.com/index.php?a=XXXX&Promo=YYYY

      That sets two cookies on the site that I'm working on. One called AffilID and the other called PROMO. Those are being set and created correctly.

      The problem is that on the site I'm working on, those two cookies are supposed to be read and the values passed through the URL to the shopping cart when a customer buys a product.

      Everything works perfectly when a random php page is created and tested on the server, but when I try to use the same code in Joomla, the values are empty when read from the cookie.

      So instead of the shopping cart link looking like this:
      secure.myshoppingcart.com/Cart.aspx?acti...1&PROMO=Promo&d=1234

      It looks like this:
      secure.myshoppingcart.com/Cart.aspx?acti...data0=1481&PROMO=&d=

      I'm using the modulus template and the DirectPHP plugin, but something doesn't seem to be playing well with Joomla.

      Any thoughts or ideas that could point me in the right direction?

      Thank you!
    • Adamck's Avatar
    • Adamck
    • Elite Rocketeer
    • Posts: 546
    • Thanks: 2
    • Web Developer, IT Assistant, Graphics design, App Developer

    Re: affiliate tracking code passed in the URL

    Posted 13 years 7 months ago
    • Is the shopping cart having the variables passed ASPX?

      Is this how it works:

      User clicks link with Affid and promo in URL

      Arrives at your site which saves a Cookie to the users machine with affid & promo

      User buys product on shopping cart and you want affid and promo in the URL of the shopping cart?

      Is the shopping cart part of joomla (extension?) or is it a hosted shopping cart? can you manage/edit the code on the shopping cart (do you own it?)?

      Its hard to help without seeing the setup you have...
    • Kiss my RSS

Time to create page: 0.074 seconds