Zen Cart Logo
Forums / All Other Contributions/Addons / Google Analytics Integration

Google Analytics Integration

Views: 225,810

Results 261 to 280 of 660
7 Jun 2007, 9:36 PM
#261
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Google Analytics Integration

Woodymon:

So as I understand Isaac reported Google Analytics is properly recording the Zen Cart based transaction when payment is made through PPEC, but not with IPN module.
Woody

Woody,

Google Analytics will track any sales as long as the user is returned to the merchant website after the transaction, and the tracking code is in place to track them.

8 Jun 2007, 8:35 AM
#262
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

Woodymon:

Are there any solutions available for Zen Cart merchants to track IPN based communications?
I think that I know as it to do. I have two ideas of the decision, but I did not test them.

8 Jun 2007, 10:08 AM
#263
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Google Analytics Integration

econcepts:

Google Analytics will track any sales as long as the user is returned to the merchant website after the transaction, and the tracking code is in place to track them.

@Econcepts - Well it's Google Analytics mod behavior with PayPal IPN transactions I was referring to here, not the GA service itself. It is well understood that GA mod will report to GA whenever the customer returns to the ZC checkout_success page (away from PayPal when using IPN). But it cannot be depended on that the customer will always return to the ZC success page.

Thus the transactions tracking statistics become meaningless when all successful PayPal IPN transactions data is not reported/recorded.

That is the crux of the problem...thought I was being clear about that.

@Isaac - When you were previously employing PayPal IPN were ALL your IPN transactions appearing in your GA reports, no matter if the customer returned to Checkout_success page or not. I have not been able to make that happen on the shops where I've implemented the GA mod and PayPal IPN.

Regarding GC and GA, when I have a chance to play with GC v1.4 some more I'll check to see how GA and GC v1.4 behave with each other. If I learn anything useful will forward info your way.

@Andrew - Yes I would be very interested in your two possible solutions. I have a fresh test ZC 137 shop installed which I can experiment with.

Thanks,
Woody

8 Jun 2007, 11:49 AM
#264
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Google Analytics Integration

Woodymon:

But it cannot be depended on that the customer will always return to the ZC success page.

Thus the transactions tracking statistics become meaningless when all successful PayPal IPN transactions data is not reported/recorded.

That is the crux of the problem...thought I was being clear about that.

Agreed, and this couldn't be more true, however, keep in mind that this is a problem with all tracking systems which require the "action" to be recorded from the server which originated the transaction (not just Google Tracking).

I use 4 different tracking programs currently (some paying, others free), and they all have that same inherit problem.

8 Jun 2007, 3:51 PM
#265
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

econcepts:

Agreed, and this couldn't be more true, however, keep in mind that this is a problem with all tracking systems which require the "action" to be recorded from the server which originated the transaction (not just Google Tracking).
What a problemfor php-script to simulate this "action"? For ex. PayPal IPN duplicate checkout_process, but at finish not directed to checkout_success. Can you in ipn_main_handler.php simulate execution of urchin javascript and send all needed information to google-analytics.com? Certainly yes! It is necessary only to know what data, in what format, under what protocol and where to transfer.

Whether there will be it emulation js and call tracking-script as <img src="http://www.google-analytics.com/__utm.gif?<tracking info>" or the sending tracking-data in a xml-format is already question of engineering.

I can very easily show you as collect checkout information for all checkout processing (checkout_processing page, ipn_main_handler and so on) in supertracker system. But I think you it can make.

econcepts:

I use 4 different tracking programs currently (some paying, others free), and they all have that same inherit problem.
What a "4 different tracking programs" you use?

8 Jun 2007, 3:54 PM
#266
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

Woodymon:

@Andrew - Yes I would be very interested in your two possible solutions. I have a fresh test ZC 137 shop installed which I can experiment with.
OK! Wait slightly

8 Jun 2007, 10:17 PM
#267
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Google Analytics Integration

a_berezin:

What a problemfor php-script to simulate this "action"? For ex. PayPal IPN duplicate checkout_process, but at finish not directed to checkout_success. Can you in ipn_main_handler.php simulate execution of urchin javascript and send all needed information to google-analytics.com? Certainly yes! It is necessary only to know what data, in what format, under what protocol and where to transfer.

Whether there will be it emulation js and call tracking-script as <img src="http://www.google-analytics.com/__utm.gif?<tracking info>" or the sending tracking-data in a xml-format is already question of engineering.

Good points here Andrew.

a_berezin:

What a "4 different tracking programs" you use?

  1. IndexTools
  2. Hypertracker
  3. Google Analytics
    • Analytics
    • Conversion Tracking
    • Ecommerce Tracking
    • Goal Tracking
  4. Click Tracks (don't really like this one).

They all track different Conversion aspects of a transaction. I like the functionality of some, and the data gathered from others. I combine all that info to get the metrics I need to increase sales. The only free one is Google Analytics.

9 Jun 2007, 1:46 PM
#268
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

A little tip.
The addition of attributes to the products list in Ecommerce Tracking raises quality of the reports.

9 Jun 2007, 9:39 PM
#269
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Google Analytics Integration

Andrew, yeah, I have those in already (thanks for the tip).

For the type of analysis I need Google Analytics falls short (not your mod, just Google's analytics in general) a bit, even with the "extra attributes".

I run a number of paid search campaigns and hundreds of split tests (out side of the Google realm) and the other systems I use cover those aspects real nicely.

You can do a lot with Google Analytics, I just need a little "deeper" level tracking in some circumstances - with more flexibility, and the way I see it, you can't begin to increase sales if you have no idea where to start.

Analytics will tell you that, so you can "never have enough". :smile:

18 Jun 2007, 5:59 PM
#270
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

kelvyn:

When I now visit Andrew's download site it says "contribution removed". The contribution is not listed in the Zen Cart downloads either.
http://www.zen-cart.com/forum/showpost.php?p=356830&postcount=247

kelvyn:

I currently have version 1.3.3a installed dated 15th Feb 2007. Is the the last and most current version?
No.

18 Jun 2007, 8:07 PM
#271
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

Not cube, cuda, to me all the same.:censored:

19 Jun 2007, 7:13 AM
#272
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Google Analytics Integration

a_berezin:

Not cube, cuda, to me all the same.:censored:

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?main_page=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

19 Jun 2007, 10:58 AM
#273
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: Google Analytics Integration

<!-- 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?

19 Jun 2007, 12:00 PM
#274
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

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!

19 Jun 2007, 7:21 PM
#275
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Google Analytics Integration

poosk:

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?

Did you place the code on the proper page? Where did you put it?

26 Jun 2007, 10:33 AM
#276
archer904 avatar

archer904

New Zenner

Join Date:
Dec 2006
Posts:
7
Plugin Contributions:
0

Re: Google Analytics Integration

econcepts:

Keep in mind that the "xxxxxxx" shown in all areas below represents where your own Google ID would go (generated from within Google).

In some places, you have UA-xxxxxx-x listed, and in a couple others xxxxxxxxxx. This is a bit confusing. Do I put my UA code in the "ten x" space as well? With the UA and the dashes, that's 11 digits, so I wasn't sure.

26 Jun 2007, 11:50 AM
#277
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Google Analytics Integration

archer904:

In some places, you have UA-xxxxxx-x listed, and in a couple others xxxxxxxxxx. This is a bit confusing. Do I put my UA code in the "ten x" space as well? With the UA and the dashes, that's 11 digits, so I wasn't sure.

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".

26 Jun 2007, 4:30 PM
#278
archer904 avatar

archer904

New Zenner

Join Date:
Dec 2006
Posts:
7
Plugin Contributions:
0

Re: Google Analytics Integration

econcepts:

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".

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 -->
26 Jun 2007, 6:06 PM
#279
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Google Analytics Integration

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.

<!-- 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 -->

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.

2 Jul 2007, 8:23 PM
#280
cudaboy71 avatar

cudaboy71

New Zenner

Join Date:
Apr 2006
Posts:
54
Plugin Contributions:
0

Re: Google Analytics Integration

does anyone have a working link to download this addon?