Welcome, Guest. Please login or register.
Login with username, password and session length


Need help or want to talk to other developers? Join the VirtueMart Chat! Read more...

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: 1 ... 3 4 [5] 6 7   Go Down
Print
Author Topic: Google Analytics module for Virtuemart  (Read 87812 times)
Mike K.
Newbie
*
Posts: 35


« Reply #60 on: March 09, 2008, 21:53:46 PM »

Yes...  I will give you the entire Analytics page as we have it...

Match Type:   Exact Match

Goal URL:  /checkout.thankyou

Goal Name:   Checkout Process

Case Sensitive:  (not checked)    Goal Value:  0

-----------------------------------------------------------------------------

Step 1:       /shop.cart                         Place In Cart            Required Step:  Yes   (tried both ways)

Step 2:      /checkout.index1               Shipping Address

Step 3:      /checkout.index2               Shipping Method

Step 4:      /checkout.index3                Payment

Step 5:      /checkout.index99               Confirm Order


As far as posting the page name of each step of checkout as reported by the module -  would I do that under View/Edit SEF URLs?  I was under the impression these were hard coded calls.   Where do I see each step of the checkout process as reported by the module?  Maybe we are on to something here ....
Logged
Alejandro Kurczyn
Hero Member
*****
Posts: 514


WWW
« Reply #61 on: March 10, 2008, 00:38:33 AM »

As far as posting the page name of each step of checkout as reported by the module -  would I do that under View/Edit SEF URLs?  I was under the impression these were hard coded calls.   Where do I see each step of the checkout process as reported by the module?  Maybe we are on to something here ....

You must go thru the checkout process as a regular user would do, and on every page use your browser's "view source" option to read the bottom of the page code. You should see the "/checkout.index" page names there. Make sure they are the same names and sequence as the ones you put on GA.
Logged

Mike K.
Newbie
*
Posts: 35


« Reply #62 on: March 11, 2008, 20:18:48 PM »

Alejandro:

Here is what urchin is reporting as to the page names... I assume this is what you are wanting to see?

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-(my account)-1";urchinTracker("shop.cart");</script>

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-(my account)-1";urchinTracker("checkout.index1");</script>

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "(my account)-1";__utmSetVar("testuser");urchinTracker("checkout.index2");</script>

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-(my accoount)-1";__utmSetVar("testuser");urchinTracker("checkout.index3");</script>


Any ideas?

Logged
Alejandro Kurczyn
Hero Member
*****
Posts: 514


WWW
« Reply #63 on: March 11, 2008, 21:51:58 PM »

Do you get to the index99 or thankyou page at all?
Logged

Mike K.
Newbie
*
Posts: 35


« Reply #64 on: March 11, 2008, 23:40:43 PM »

Yes.....we get the index99 and thankyou..   just never enough of them for my taste  Cheesy

I didn't take the sale to completion on that test so I wouldn't have to back it out.   But we see the checkout and thank you pages as well as all the others being visited in the analytics page list...  just not in the funnel.

None of the pages are hitting the funnel.  Any ideas?
Logged
Alejandro Kurczyn
Hero Member
*****
Posts: 514


WWW
« Reply #65 on: March 12, 2008, 23:08:26 PM »

Yes.....we get the index99 and thankyou..   just never enough of them for my taste  Cheesy

I didn't take the sale to completion on that test so I wouldn't have to back it out.   But we see the checkout and thank you pages as well as all the others being visited in the analytics page list...  just not in the funnel.

None of the pages are hitting the funnel.  Any ideas?

If GA *is* registering the pages correctly but the funnel is not working, then perhaps its an issue on funnel settings.
Logged

Mike K.
Newbie
*
Posts: 35


« Reply #66 on: March 13, 2008, 01:15:28 AM »

Perhaps.....

My funnel settings are the top message on this page.  I believe I'm setting them as you suggest in your documentation -  Any idea of what I should change?   Does anyone you know using your module have a working funnel?  Maybe we can compare notes on where any differences lie. 
Logged
Alejandro Kurczyn
Hero Member
*****
Posts: 514


WWW
« Reply #67 on: March 13, 2008, 09:31:54 AM »

Perhaps.....

My funnel settings are the top message on this page.  I believe I'm setting them as you suggest in your documentation -  Any idea of what I should change?   Does anyone you know using your module have a working funnel?  Maybe we can compare notes on where any differences lie. 

Absolutely! The notes on the guide are based on real life examples :-) 

Try doing a checkout using a simple payment method supported directly by VM, that would give some light about the 3rd party system being the issue.

This might sound silly but: Is the funnel turned on in GA?
« Last Edit: March 13, 2008, 09:35:24 AM by Alejandro Kurczyn » Logged

Mike K.
Newbie
*
Posts: 35


« Reply #68 on: March 13, 2008, 12:38:24 PM »

Double and triple checked...  the funnel is turned on.

And again...  we aren't getting even the first three pages showing up in the funnel -  the ones before the payment module is even called.

Is it possible that there is some kind of conflict or page reporting inconsistency between your Analytics module and the Artio SEF module?  Or would what urchin sees be the same as what your module is sending to google?  Where do we see conclusively what the "dummy pages" that your module is creating are named?  And is it possible that Artio is renaming the dummy pages?

What about goal value?  Is that important?  Its set for 0 now.

As for our viaklix module... we used the default VM credit card payment module and set it for vialkix values.

One other possibility -  we have our steps set up in google as  /shop.cart.   Urchin is showing the step as shop.cart minus the slash.  Could that be it???  (all steps presently with slash, we will try removing the slash and see if that does it)

Let me know if you see any other possibilities...
Logged
Alejandro Kurczyn
Hero Member
*****
Posts: 514


WWW
« Reply #69 on: March 13, 2008, 22:59:41 PM »

Double and triple checked...  the funnel is turned on.

ok.
Quote
And again...  we aren't getting even the first three pages showing up in the funnel -  the ones before the payment module is even called.

Is it possible that there is some kind of conflict or page reporting inconsistency between your Analytics module and the Artio SEF module?  Or would what urchin sees be the same as what your module is sending to google?

The URLs made by the GA module are not related to any SEF component, in fact, they are completly arbitrary and acceptable by GA as specified on their docs. Once you feed it to the urchin function, it is sent to GA.

Quote
Where do we see conclusively what the "dummy pages" that your module is creating are named?

The only sure way of confirming the page names is by looking at the code generated by your site, just like you did before.

Quote
And is it possible that Artio is renaming the dummy pages?

Nop.

Quote
What about goal value?  Is that important?  Its set for 0 now.

The goal value helps you to give the process a certain value according to your needs, however it is not necessary for the GA module.

Quote
As for our viaklix module... we used the default VM credit card payment module and set it for vialkix values.

One other possibility -  we have our steps set up in google as  /shop.cart.   Urchin is showing the step as shop.cart minus the slash.  Could that be it???  (all steps presently with slash, we will try removing the slash and see if that does it)

Let me know if you see any other possibilities...

I *myself* have set the module exactly as show on the docs on a site with ARTIO JoomSEF and it works great. If you see pages being recorder in Google Analytics page, it means the module is working OK. If the funnel is having some sort of issue with them then it must be something related to the funnel. Have you verified there are no leading or trailing blanks on the page names you entered? What if you delete the funnel and build it one more time?
Logged

Mike K.
Newbie
*
Posts: 35


« Reply #70 on: March 18, 2008, 21:39:28 PM »

OK....

I took this problem up with Google.  The person who answers questions at the IM level couldn't help with this mystery at all, so they elevated the case up to an analytics specialist.  Here is what they said....

"Thank you for waiting while I worked with an Analytics specialist. We have
determined that your funnel needs to have each steps full URL, not simply
the shortened extensions you current list for each step. By using the
exact match setting, the goal requires the full URL for each step in the
process, just as you have for each page on your 'Content' tab.

For example checkout.thankyou should change to
http://www.theavspot.com/checkout.thankyou. Once your funnel is collecting
data, you will be able to see data for your AdWords conversions by
following this path in your Analytics account:  Traffic Sources > AdWords
> > AdWords Campaigns > 'Goal Conversion' tab > Drill down."

So that leaves me with the question...  what is the full url?  Is there a full url of the "dummy" pages that you are creating?  Are they only variables... or are they actual pages that can be accessed if we have the right url, and therefore can be seen by analytics.  If they are only variables - it seems like the "exact match" setting may be incorrect.  What do we do here?

Is google right?
Logged
Mike K.
Newbie
*
Posts: 35


« Reply #71 on: March 19, 2008, 22:48:01 PM »

Well.. as usual, google was right.

What urchin (or any page source information) was showing wasn't enough.  I had to go through all of visited pages on analytics to find the names of the pages that are being reported.  I would assume that those are the "dummy pages" that you are building?

The bottom line is... the partial urls like checkpout.index1 aren't enough to create the Google funnel.  Anyone who isn't seeing their funnel should wade through the reported pages in analytics and find the full url that has those variables as part of it... then place the FULL url that analytics is collecting on its visited pages list into the funnel  A day later, you should see a funnel and be able to track your cart.
Logged
Chaz
Jr. Member
**
Posts: 64


« Reply #72 on: March 20, 2008, 19:49:20 PM »

Great module Alejandro, thank you!

I am having trouble with the Paypal orders being sent and noticed that the lines to determine if the $transaction should be sent is only looking at the $checkout_goal and not the $alternate_goal. I am making the following change to several areas in the 'build scripts' section of the module to see if it helps. Has anyone else had this problem with the alternate goal?

Code:
//if ($product_flag == 1 && $urchinString == $checkout_goal) { echo $transaction; }
if ($product_flag == 1 && ($urchinString == $checkout_goal || $urchinString == $alternate_goal)) { echo $transaction; }

Thanks,
Chuck
Logged

Chaz
Jr. Member
**
Posts: 64


« Reply #73 on: April 05, 2008, 19:10:11 PM »

The modification I made above did correct my Paypal orders from getting sent to Analytics. I was still having some problems with some orders not making it to Analytics and some orders which were partially sent. I made two modifications to correct these problems.

First, I changed the page names being sent to Analytics to begin with a "/". Even though some orders were being recorded others did not seem to be tracked correctly. After reading Google's documentation they say to begin the pages with a slash. This line now contains the slash in the front.

Code:
pageTracker._trackPageview("/<?php echo $urchinString?>");

Second, I found that the reason for partial orders was that some of my product names contained quotes in the name. This was causing problems with Analytics so I modified the code to strip out any quotes.

Code:
//$productname = $db->f('order_item_name');
$productname = str_replace('"', '', $db->f('order_item_name'));

I also wanted to record my Adword conversions in the same module since it handles Virtuemart's checkout process so nicely. Therefore I added 2 parameters to the configuration to toggle Google Adword conversion on and off and to enter the Google Adwords accountid. I know this feature goes against the name of the module but it was important for me. If anyone is interested in the same feature I have attached my complete updated files.

Thanks again Alejandro for a great module.
Chuck

* vmga131_mods.zip (3.55 KB - downloaded 431 times.)
Logged

Jermaine Watkins
Newbie
*
Posts: 24


« Reply #74 on: April 09, 2008, 15:15:18 PM »

The reason I'm not getting data is because the is a zero in the tax slot.

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ?

"https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +

"google-analytics.com/ga.js'

type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxxx-x");
pageTracker._setVar("admin");
pageTracker._trackPageview("checkout.thankyou.htm");
pageTracker._initData();
pageTracker._trackPageview();
pageTracker._addTrans(
"1059",
"xxxxxxxxxxx(store)",
"23.39",
"0",
"13.40",
"Louisville",
"AB",
"CAN"
);
pageTracker._addItem(
"1059",
"10115",
"SpongeBob Square Pants Krusty Krab Appliques",
"SpongeBob Sponge  Bob Wall Appliques ",
"9.99000",
"1"
);
pageTracker._trackTrans();
</script>
</body>
</html><!-- 1207770979 -->
"CAN"
);
pageTracker._addItem(
"1059",
"10115",
"SpongeBob Square Pants Krusty Krab Appliques",
"SpongeBob Sponge Bob Wall Appliques ",
"9.99000",
"1"
);
pageTracker._trackTrans();

http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=72291

"These fields can contain only numeric values: total, tax, shipping, price, and quantity. These fields cannot contain special characters like '$' or punctuation signs like a comma ','. Tax and Shipping fields are optional, but cannot contain the value zero (0). If you do not want to use these fields, use ""."

« Last Edit: April 09, 2008, 15:17:06 PM by Jermaine Watkins » Logged
Pages: 1 ... 3 4 [5] 6 7   Go Up
Print
Jump to: