Announcement

Collapse
No announcement yet.

Webgains Integration Tutorial

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by Orchid View Post
    Code:
    for (var i = 0; i < nameValuePairs.length; i++) {
            nameValuePair = nameValuePairs[i].split(/=/);
    
            name = nameValuePair[0];    
            value = nameValuePair[1];
          
            name = name.toLowerCase();
    
            if (name == "source"){
              if (typeof(value)!="undefined"){
                   value = value.toLowerCase();
    
                    if (value =="af"||value == "webgains"){
          //*********set cookie******************//
         SetAFCookie(name,value,largeExpDate,myDomain);
          //*********set cookie******************//  
                    }
              }       
            }
        }
    Sorry, me again!

    Can I assume "myDomain" should be replaced with site domain name or is it a variable?

    Thanks

    Alex
    Blog, Twitter, Facebook
    Actinic Ecommerce, CMS and Video production

    www.petraboase.com
    www.progrow.co.uk
    www.christopherpiperwines.co.uk
    www.cheeksandcherries.co.uk
    www.skatewarehouse.co.uk

    Comment


      #17
      No worries.

      No it's a javascript variable that's set to "/" earlier in the javascript file
      Wayne Theisinger

      The Web's just settling in. We got the tech, now let's put up something that matters.

      Comment


        #18
        also I should perhaps have mentioned that in my code

        Code:
        if (value =="af"||value == "webgains")
        the af is the name of whichever the other affiliate scheme you are signed up to is, the one you are using the local tracking to keep away from your webgains sales. And you should ask this alternative scheme to append a parametre to the query string for instance http://yousite.co.uk/index.html?source=af assuming af is what you testing for.

        And you need to also wrap the testing code around their tracking as well

        if (GetAFCookie ("source") == "af" || GetAFCookie ("source") == null)
        {

        //tracking code goes here

        }
        Wayne Theisinger

        The Web's just settling in. We got the tech, now let's put up something that matters.

        Comment


          #19
          If I've confused you PM me and I'll send you my phone number and we can have a chat.
          Wayne Theisinger

          The Web's just settling in. We got the tech, now let's put up something that matters.

          Comment

          Working...
          X