<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1034981" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1034981</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Paste Code Snippet</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cgi-not-passing-javascript-tracking#comment-1203005</link>
    <description> &lt;p&gt;I am not sure, when I asked the people at my tracking company what to do, they provided the info below.&lt;/p&gt;
&lt;p&gt;To recap, you are simply using CGI to redirect a user to one of two pages, let&#039;s call them page 1 and page 2, correct?  You are not using Perl to actually render any of these pages for you are you?  &lt;/p&gt;
&lt;p&gt;1)  If you are using Perl to actually render your pages for you, then the tracking script must be also rendered dynamically from the CGI script.  &lt;/p&gt;
&lt;p&gt;2)  If you are simply using CGI to re-direct, then the referring information will be lost on redirect because that information &#039;loses scope&#039;.  In order to prevent this data loss, both the CGI script and the tracking script must be modified as follows:  &lt;/p&gt;
&lt;p&gt;a)  The CGI script must be modified such that it pulls the data from it&#039;s referring page and passes it via a query string to it&#039;s destination page.&lt;/p&gt;
&lt;p&gt;b)  The destination page then will pull that data from the query string and insert into the appropriate places in the tracking script.&lt;/p&gt;
&lt;p&gt;If you don&#039;t like the idea of passing it through the query string, then you may try to do it with a form instead.  Though I&#039;m not quite sure how you would go about &#039;posting&#039; to a page from a CGI script, but I&#039;m sure a clever solution exists.&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Jun 2006 21:37:31 +0000</pubDate>
 <dc:creator>trainingguy</dc:creator>
 <guid isPermaLink="false">comment 1203005 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cgi-not-passing-javascript-tracking#comment-1203000</link>
    <description> &lt;p&gt;Then it&#039;s most likely that the CGI is somehow messing up the javascript on output, can you paste the code snippet from the script where the Javascript is being output?&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Jun 2006 18:47:03 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1203000 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cgi-not-passing-javascript-tracking#comment-1202998</link>
    <description> &lt;p&gt;CptAwesome Thanks.&lt;/p&gt;
&lt;p&gt;We are getting no information at all.&lt;/p&gt;
&lt;p&gt;A/B split testing is where we have two advertising web pages that are exactly the same, except for one element, like a button that says &quot;order now&quot; or &quot;buy now&quot;.   Over time, you can see which one performs better, then use that one.  We do PPC advertising to generate leads for our supervisory training series.&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Jun 2006 18:15:55 +0000</pubDate>
 <dc:creator>trainingguy</dc:creator>
 <guid isPermaLink="false">comment 1202998 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cgi-not-passing-javascript-tracking#comment-1202994</link>
    <description> &lt;p&gt;A/B split test? Not entirely sure what you mean by that.&lt;/p&gt;
&lt;p&gt;You should be able to access GET variables through HTTP info gathered by CGI/Perl.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote:&lt;br /&gt;
The problem: My tracking script does not pass through the CGI script. The tracking script is javascript. When I look at the referal information from somone that filled out my form, it looks like they bookmarked the site and came back. I can&#039;t tell what website referred me or what they searched on.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Are you getting no referral info? Because if you&#039;re getting some, and just not from some people, then there is really nothing you can do unless you set up IP tracking and start saving click paths and referrals that way, that and some browsers don&#039;t support the HTTP_REFERRER header correctly and will give you the information of the last page they were on, even if it wasn&#039;t a link/click.&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Jun 2006 17:53:45 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1202994 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
