Re: Simple Google Analytics - Support
Quote:
Originally Posted by
fluxem
ya I agree.. so back to my original question..
i have rollovers on my site.. using onLoad="preloadImages();"
how would I combine that with
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
You can achieve this effect by using the "overrides" system in Zen Cart. (In case you don't want to go that route, I included the code below for you to use, but I would recommend going with the overrides since it allows the js to be automatically loaded on every page (you may miss a few pages if you try to insert it manually)
Here would be the preferred method (using overrides):
Step 1: Create a javascript file that contains the "PreLoad" event fuctions, and save it with a name that starts like this "jscript_[yourFileNamehere].js". Upload that javascript file into your template's jscript folder. (Any file placed in this folder with "jscript_" in the front will automatically be included in every page on your site).
Step 2: Create a file and save it as on_load_[yourSelectedFileName].js. In that file, only include the following line of code preloadImages();
Upload that file to your templates jscript/on_load folder in order to have the on-load events trigger properly.
Here would be the "manual" method:
PHP Code:
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="preloadImages(),'.$zv_onload.'"'; ?>>
That should do it. :smile:
Re: Simple Google Analytics - Support
econcepts thank you very much!
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
fluxem
econcepts thank you very much!
Anytime. Glad I could help.
If you look in the "docs" directory of your Zen install, you'll find a few files relating to JavaScript and OnLoad overrides. You may want to read them to get familiar with it.
Re: Intermittent Checkout Success
Quote:
Originally Posted by
econcepts
What do you mean "they" register? Are you talking a "successful sale"? Are you talking "Conversion Tracking" (within Google Analytics)?
Conversion tracking will only register if the click came through a paid search ad (per Google).
Let us know exactly "what" is not tracking so we can point you in the right direction as to "why".
Yes... sorry. Bad choice of words. Successful sale. I have more sales than Google Analytics is showing. Your statement about coming through ad words makes sense, but in doing some research it looks like it may be coming through Google search of any type. But don't hold me to that. I'll try to monitor it and see if any patterns develop.
Bottom line I think I am "hearing" here is that there is some limitation to tracking of goals and ecommerce in the add on... is that right? For goals will it only track buyers who originally entered my store through a google search?
Thanks for teaching me!
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
That is because:
1) You probably have not setup any Goals yet (this is NOT done by simply installing the Google Analytics Mod)
2) Once installed, you have to enter the proper php code to dynamically generate the actual Goal value.
If you need help PM me.
econcepts-
If you code post some examples to the support thread for all to see and learn from that would be great! Thanks.
Woody
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Woodymon
econcepts-
If you code post some examples to the support thread for all to see and learn from that would be great! Thanks.
Woody
Good idea Woody. I have a few video tutorials that will be going up on my site shortly. The code I have I posted earlier on in this thread.
For setting up goals etc.. that doesn't involve "code" as much as it involves putting the right items in the right places of Google Analytics (which is easier to explain and show it looks like) :smile:
I'll make it a point to put that video up here in the next day or so. It should hopefully clarify the difference between "all items" that Google offers as well as show how to set it all up (on the google side).
Inserting the code alone (that I posted) will only get you "part of the way there".
Again, I'll make it a point to put that video up in the next day or so. I'll post here when it is live.
Re: Intermittent Checkout Success
Quote:
Originally Posted by
craigkendall
I have more sales than Google Analytics is showing.
Again, you can track sales in several different places within Google analytics (under Goals, under standard Analytics Ecommerce tracking, and under Conversion Tracking ... all 3 are independent of each other as to what and how they record the data).
Having said that, and assuming you mean that "more sales" than what Google Analytics Ecommerce Tracking (not conversion tracking, and not Goal tracking) is reporting, then this is only possible under two circumstances:
1) You have not got the tracking code install correctly
2) You are using a "third party / offsite" payment processor (like PayPal, 2CO, etc...) that requires the user to "click a button" at the end of the sale to "return to the merchant" (which would then trigger the Google Tracking code on the "checkout success" page.
Quote:
Originally Posted by
craigkendall
Your statement about coming through ad words makes sense,
This is actually a fact (coming through Adwords Ads) IF you are talking "Conversion Tracking" (it dos not pertain to traffic that comes from organic search or direct links etc..). It comes directly from the Google Website and is defined as such (the difference between analytics and conversion tracking):
https://adwords.google.com/support/b...g&topic=&type=
Quote:
Originally Posted by
craigkendall
but in doing some research it looks like it may be coming through Google search of any type. But don't hold me to that. I'll try to monitor it and see if any patterns develop.
You should easily be able to tell by looking at your analytics where the traffic is actually coming from. Keep in mind that "cpc" means Paid Search (Cost Per Click). Google reports information on that as well as "organic" right in the reports section.
Quote:
Originally Posted by
craigkendall
Bottom line I think I am "hearing" here is that there is some limitation to tracking of goals and ecommerce in the add on... is that right? For goals will it only track buyers who originally entered my store through a google search?
Thanks for teaching me!
No. The add on (any of them) adds the "Analytics Code" needed to track Goals and Ecommerce. To actually make Google track goals and Ecommerce figures though, you HAVE to set that up within your Google Analytics account.
It's really tough to explain in words. I'll have a video of it here soon for everyone to look at. It may explain a lot.
Re: Simple Google Analytics - Support
I could use a hand with this.
Yea yea, it was so easy to install... The SQL patch went well, and yet when I go to Google Analytics Configuration there's nothing there but the title bar.
The script at the bottom of the pages have the default X's. and so I have no way to enter my google account number.
Can someone please venture to suggest what might be the problem?
Cuda?
:dontgetit
Re: Simple Google Analytics - Support
Well, the temporary solution was to go into the database and update the row myself with the correct UA #.
Google is now waiting for data, and so I assume the rest will be forthecoming.
However, that's not really how this is suppose to work.
Re: Simple Google Analytics - Support
hi again...
so lookin at this google help page:
https://adwords.google.com/support/b...203&topic=8198
i'm gonna go through the page at the above link...
Code:
Enabling E-Commerce Tracking
The first step of tracking e-commerce transactions is to enable e-commerce reporting for your website's profile. To enable e-commerce reporting, please follow these steps:
1. Log in to your account.
2. Click Edit next to the profile you'd like to enable.
3. On the Profile Settings page, click edit next to Main Website Profile Information.
4. Change the E-Commerce Website radio button from No to Yes.
ok, did this...
Code:
Receipt Page Format
The second step is to ensure that the tracking code is included in the receipt page in the standard fashion. This may be done using a server side include, or other template driver, or can simply be hand-coded into your HTML code:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-xxxx-x";
urchinTracker();
</script>
i believe this is what the mod for zen actually does, so i believe this part is also done....
Code:
Next, somewhere in the receipt below the tracking code, the following lines need to be written by your engine. Everything in brackets should be replaced by actual values, as described in the Parameter Reference, below.
<form style="display:none;" name="utmform">
<textarea id="utmtrans">UTM:T|[order-id]|[affiliation]|
[total]|[tax]| [shipping]|[city]|[state]|[country] UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]|
[quantity] </textarea>
</form>
Finally, the utmSetTrans function must be called after the form is submitted in order to record the transaction. This can be most easily accomplished through a body onLoad event within the opening <body> tag:
<body onLoad="javascript:__utmSetTrans()">
If you don't have the ability to edit the body tag, you can call the utmSetTrans function within a separate script tag as long as you ensure that the function is called after the form:
<script type="text/javascript">
__utmSetTrans();
</script>
do i need to do these manually? i dont' think i can...
everything works fine in analytics, with the exception of the 'ecommerce'
(when i'm looking at my ECommerce Overview, i see a flatline with all "0"s and 0%'s....
any help, would be appreciated.
(i know i should just wait for the videotutorial, but i'm having some time for this, and wouldn't mind getting it working this weekend...
:)
ty in advance.
bill