Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass var values to another script on the same page

Status
Not open for further replies.

x11us

MIS
Jul 5, 2010
1
FR
hello, we are implementing hummingbird tracking ( and just wanted to find out if it is possible to reuse the data that google analytics pulls from our page and insert it into my own client.js

here is what is on the page already

<code>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-6534432-1");
pageTracker._trackPageview();
pageTracker._addTrans(
"L64871fXyvvZ", // Order ID
"bebebox", // Affiliation
"16.4", // Total
"2.69", // Tax
"6.9", // Shipping
"paris", // City
"paris", // State
"France métropolitaine" // Country
);
pageTracker._addItem(
"L64871fXyvvZ", // Order ID
"LE95102010", // SKU
"Body 100% Coton BIO Croisé, Manches longues - Liegelind Naissance Prématuré", // Product Name
"Vêtements Bébé", // Category
"9.5", // Price
"1" // Quantity
);
pageTracker._trackTrans();
} catch(err) {}</script>

</code>

is this possible or do i have to scrape the page using my client.js script as well?

if yes, how do i pass pageTracker._addItem values for example to my script?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top