Zen Cart Logo
Forums / All Other Contributions/Addons / Adwords Tracking Code Different Results Chrome vs. Firefox

Adwords Tracking Code Different Results Chrome vs. Firefox

Views: 1,103

Results 1 to 2 of 2
15 Jan 2012, 7:30 PM
#1
pinkchalkstudio avatar

pinkchalkstudio

New Zenner

Join Date:
Apr 2008
Posts:
78
Plugin Contributions:
0

Adwords Tracking Code Different Results Chrome vs. Firefox

I added a third party's tracking code by following the instructions in this ZenCart Tutorial: https://www.zen-cart.com/tutorials/index.php?article=399

When I view source via my Firefox browser the values for order total and order id appear to be correct. When I view source via my Chrome browser I do not see the values for order total and order id. (both are Mac versions if that's potentially relevant). For privacy I've substituted XXXXXX for my id.

I'm concerned that customers using Chrome are not going to be tracked. Is it just not visible in view source or have I put the code in wrong?

View source output from Firefox:

<SCRIPT LANGUAGE="JavaScript">svaid = XXXXXX;bts_amount = 12;origin = escape(document.referrer);bts_orderno = escape('32181');</SCRIPT><SCRIPT LANGUAGE = "JavaScript" SRC="https://www2.higherengine.com/bts/XXXXXX/bts.js"></SCRIPT><NOSCRIPT><img src="https://www2.higherengine.com/bts/XXXXXX/bts.php?svaid=XXXXXX&amt=12&bts_orderno=32181" alt=""></NOSCRIPT>

View source output from Chrome:

<SCRIPT LANGUAGE="JavaScript">svaid = XXXXXX;bts_amount = ;origin = escape(document.referrer);bts_orderno = escape('');</SCRIPT><SCRIPT LANGUAGE = "JavaScript" SRC="https://www2.higherengine.com/bts/XXXXXX/bts.js"></SCRIPT><NOSCRIPT><img src="https://www2.higherengine.com/bts/XXXXXX/bts.php?svaid=XXXXXX&amt=&bts_orderno=" alt=""></NOSCRIPT>

Code I added for the tracking:

echo "<SCRIPT LANGUAGE=\"JavaScript\">";
echo "svaid = XXXXXX;";
echo "bts_amount = " . $order_summary['order_subtotal'] . ";";
echo "origin = escape(document.referrer);";
echo "bts_orderno = escape('" . $order_summary['order_number'] . "');";
echo "</SCRIPT>";
echo "<SCRIPT LANGUAGE = \"JavaScript\" SRC=\"https://www2.higherengine.com/bts/XXXXXX/bts.js\">";
echo "</SCRIPT>";
echo "<NOSCRIPT>";
echo "<img src=\"https://www2.higherengine.com/bts/XXXXXX/bts.php?svaid=XXXXXX&amt=" . $order_summary['order_subtotal'] . "&bts_orderno=" . $order_summary['order_number'] . "\" alt=\"\">";
echo "</NOSCRIPT>";
7 Feb 2012, 6:15 AM
#2
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Adwords Tracking Code Different Results Chrome vs. Firefox

I would like to know this answer too. I am at the stage of posting adwords.