Announcement

Collapse
No announcement yet.

Using Referrer to track order source

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

    Using Referrer to track order source

    I'm trying to create links with 'referrer' text for tracking purposes, but I am getting a script error...

    If I try to link to the homepage it works fine, and the referrer text comes up in the order details to tell me where the customer came from -

    http://www.lowcarbgoodies.co.uk/
    cgi-bin/rs000001.pl?SOURCE=
    TestReferrer&DESTINATION=index.
    html&PATH=/public/www/cgi-bin/ &BASEURL=http://www.lowcarbgoodies.co.uk

    but if I try to link to a subpage, it only half displays and comes up with a script error -

    http://www.lowcarbgoodies.co.uk/
    cgi-bin/rs000001.pl?SOURCE=
    TestReferrer&DESTINATION=low-carb-recipes.html&PATH=/public/www/cgi-bin/ &BASEURL=http://www.lowcarbgoodies.co.uk

    They look pretty much the same to me - what's the problem?

    (breaks inserted into URLs to stock this forum software squishing them up and making them unreadable...)
    John

    #2
    no ideas anyone?
    John

    Comment


      #3
      Hi John

      It looks like you are trying to hide the acatalog directory.

      I notice that the Catalog URL is CATALOG_URL' =>
      'http://www.lowcarbgoodies.co.uk/ without 'acatalog/', this may be the problem.

      The URL http://www.lowcarbgoodies.co.uk/ returns the catalog front page.
      The URL http://www.lowcarbgoodies.co.uk/index.html returns the catalog front page.
      The URL http://www.lowcarbgoodies.co.uk/acatalog/index.html redirects to http://www.lowcarbgoodies.co.uk/index.html.

      So for index.html the referrer link actually gets index.html from the acatalog folder which redirects to the index.html in the parent folder.

      However, no other catalog files are actually in http://www.lowcarbgoodies.co.uk/acatalog/ so the page is not found.

      You need to rethink about hiding the acatalog folder in this way.

      James
      ________

      Comment


        #4
        I'm not hiding the acatalog directory - I'm just not usig it at all. I have placed the site at the root rather than in the acatalog directory (as have quite a few other people) and this seems to work fine.

        I created the acatalog directory and put a redirect in because I noticed a few errors in the log - I think a few people bookmarked my site before I moved directories, so this will redirect them to the correct place.

        Why would the referrer link get the index file from the acatalog directory? I thought the whole point of specifying a base URL was that it actually went there to look for the specified file?

        Isn't there an easier way of getting referrer info?
        John

        Comment


          #5
          You need to add a '/' to the end of the BaseURL in the link.

          Also what do you have set in Network Settings for 'Path From CGI-BIN to acatalog Direcory'? This used by the script to find the page to be displayed and may require the script to be patched to handle his configuration.

          Comment


            #6
            what do you have set in Network Settings for 'Path From CGI-BIN to acatalog Direcory'?
            "../"
            John

            Comment


              #7
              See my comment about using the refer script in another thread at http://community.actinic.com/showthr...8466#post18466
              Bob Ladden

              Comment


                #8
                It seems you are using SSL for login and checkout. In this case the BASEHREF is always set to the value of the XML BASEHREF tag in the section page. Because Actinic expects the site to be in acatalog the BASEHREF in the product page always contains /acatalog/.

                To get round the problem:-

                Edit the script ActinicPXML.pm
                Search for 'sub BaseHrefTagHandler'
                About 18 lines after this you will see...

                if ($$::g_pSetupBlob{'SSL_USEAGE'} == "1")
                {
                if( $ParameterHash->{VALUE} )
                {
                $sReplace = $ParameterHash->{VALUE};
                }
                }

                Insert an extra line so that it now reads...

                if ($$::g_pSetupBlob{'SSL_USEAGE'} == "1")
                {
                if( $ParameterHash->{VALUE} )
                {
                $sReplace = $ParameterHash->{VALUE};
                $sReplace =~ s/acatalog\///;
                }
                }

                Save and exit
                Update the site.

                This change will remove the acatalog folder from the BASHREF.
                ________

                Comment

                Working...
                X