Not cube, cuda, to me all the same.![]()
Not cube, cuda, to me all the same.![]()
Andrew-
I observe your site is once again is no longer allowing downloads. Downloads available one week then unavailable the next?
http://zen-cart.spb.ru/index.php?mai...=contributions
I don't understand what Kelvyn stated that ticked you off but why this continual roller coaster ride?
Damn Cuda's ethics. But why do you let the issue spoil everything? Please LET IT GO for once and for all!
I do hope you upgrade your version of GA mod.
Please don't let others rain on your parade. Life is too short.
Woody
<!-- Track -->
<?php // If page is SSL then use Secure Code
if($_SERVER['HTTPS']=='on'){
?>
<!-- Google Analytics -->
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1904406-1";
urchinTracker();
</script>
<?php // Else use Non-Secure Code
} else {
?>
<!-- Google Analytics -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1904406-1";
urchinTracker();
</script>
<!-- /Google Analytics -->
<?php } ?>
<!-- /Track -->
</body>
Could someone explain why that doesn't work.. I am just looking for the easiest way to track visit counts. nothing else. Any other ideas without multiple file changes and sql patches?
Woody!
I plan all to transfer to download area and finished on that. Wait a some time. zen-cart.spb.ru is a DEMO site for russian zen-cart, instead of storehouse of modues. At it other tasks - propagation zen-cart.
I was bothered by those boyes. I made modules and supported them only from desire to help. I on it have not earned cent. And I do not understand, why the people which nothing have made for development zen show to me any claims. To me not interestingly such dialogue. I can perfectly do without these problems. And to engage in the businesses, instead of to waste time for stupid discussions.
Let's finish on it.
Good luck!
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
No, both codes are for two SEPARATE tracking items.
In my post I listed code to setup E-commerce tracking, Standard Google Analytics tracking, and Conversion Tracking. All offered tracking systems within the "Google Analytics" framework.
Conversion Tracking codes do not have a "UA" or a "dash (-)" in them. Standard Google Analytics tracking DOES have the "UA" and the dash.
Again, they are two different tracking codes entirely, and are used for two totally different things. One tracks conversion data from Paid Search campaigns while the other tracks "overall statistics".
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Okay, so if you're not doing Conversion Tracking, the code should look like this, right?
<!-- Tracking -->
<?php // If page is SSL then use Secure Code
if($_SERVER['HTTPS']=='on'){
?>
<!-- Google Analytics -->
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxxx-x";
urchinTracker();
</script>
<!-- /Google Analytics -->
<?php
if ($_GET['main_page']=="checkout_success") { // if transaction is a successful purchase then record the order details
?>
<!-- Google Analytics E-Commerce Tracking (must go below standard Analytics code)-->
<body onLoad="javascript:__utmSetTrans()">
<form style="display:none;" name="utmform">
<textarea id="utmtrans">UTM:T|<?php echo $zv_orders_id ?>||<?php echo $zv_order_total_cd ?>|<?php echo $zv_order_tax ?>|0.00|<?php echo $zv_order_city ?>|<?php echo $zv_order_state ?>|<?php echo $zv_order_country ?>
<?php // Loop through products purchased to track in Google (these come from the "cart_orders_products TABLE)
//sku = "products_model"; productname = "products_name"; category = ""; price = "final_price"; quantity = "products_quantity"
$products_displayed_google = array();
for ($i=0, $n=sizeof($products_array_google); $i<$n; $i++) {
if (!in_array($products_array_google[$i]['id'], $products_displayed_google)) {
echo 'UTM:I|' . $zv_orders_id . '|' . $products_array_google[$i]['model'] . '|' . $products_array_google[$i]['text'] . '||' . $products_array_google[$i]['price'] . '|' . $products_array_google[$i]['quantity'];
$products_displayed_google[] = $products_array_google[$i]['id'];
}
}
?>
</textarea>
</form>
<!-- /Google Analytics E-Commerce Tracking -->
<!-- Google Analytics -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxxx-x";
urchinTracker();
</script>
<!-- /Google Analytics -->
<?php } ?>
<!-- / Tracking -->
archer,
Actually, you have deleted some parts that determine whether or not to use the secure code or the non-secure code.
Here is what it should look like if you are NOT using Conversion tracking.
Don't forget to make the remaining alterations that I indicated in the previous post (the origanl one with the code) to allow the cart to pick up the "e-commerce" variables.PHP Code:<!-- Tracking -->
<?php // If page is SSL then use Secure Code
if($_SERVER['HTTPS']=='on'){
?>
<!-- Google Analytics -->
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxxx-x1";
urchinTracker();
</script>
<!-- /Google Analytics -->
<?php
if ($_GET['main_page']=="checkout_success") {
?>
<!-- Google Analytics E-Commerce Tracking (must go below standard Analytics code)-->
<body onLoad="javascript:__utmSetTrans()">
<form style="display:none;" name="utmform">
<textarea id="utmtrans">UTM:T|<?php echo $zv_orders_id ?>||<?php echo $zv_order_total_cd ?>|<?php echo $zv_order_tax ?>|0.00|<?php echo $zv_order_city ?>|<?php echo $zv_order_state ?>|<?php echo $zv_order_country ?>
<?php // Loop through products purchased to track in Google (these come from the "cart_orders_products TABLE)
//sku = "products_model"; productname = "products_name"; category = ""; price = "final_price"; quantity = "products_quantity"
$products_displayed_google = array();
for ($i=0, $n=sizeof($products_array_google); $i<$n; $i++) {
if (!in_array($products_array_google[$i]['id'], $products_displayed_google)) {
echo 'UTM:I|' . $zv_orders_id . '|' . $products_array_google[$i]['model'] . '|' . $products_array_google[$i]['text'] . '||' . $products_array_google[$i]['price'] . '|' . $products_array_google[$i]['quantity'];
$products_displayed_google[] = $products_array_google[$i]['id'];
}
}
?>
</textarea>
</form>
<!-- /Google Analytics E-Commerce Tracking -->
<?php } //End if main page is "checkout_success"?>
<?php // Else use Non-Secure Code
} else {
?>
<!-- Google Analytics -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxxx-x";
urchinTracker();
</script>
<!-- /Google Analytics -->
<?php } ?>
<!-- / Tracking -->
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information