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

Google Analytics Integration

Views: 225,800

Results 201 to 220 of 660
14 Feb 2007, 10:49 AM
#201
a_berezin avatar

a_berezin

Deceased

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

Google Analytics Integration

You really don't see difference between

samad64:

number_format($products->fields['final_price'], 2, ',', '')

> to
> ```
number_format($products->fields['final_price'], 2, '.', ',')

and

100asa:

change this

number_format($products->fields['final_price'], 3, '.', '')

> with this
> ```
number_format($products->fields['final_price'], 2, ',', '')

RTFM! Google Analytics works with numbers, instead of with currency. Therefore to it is necessary to give it only sums. And always in one currency. Therefore in multiple currency shop it is necessary always to transform all the sums to default currency (I don't do this in public version - only by request).

14 Feb 2007, 11:51 AM
#202
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Google Analytics Integration

what's the best solution to use with one currency, Euro?

14 Feb 2007, 3:08 PM
#203
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

Any currency what you want, but the same for all Gogle Analitycs transaction. Once more. Google Analitycs use digits, only digits. And him is deeply indifferent what it is currency.

15 Feb 2007, 2:12 AM
#205
woodymon avatar

woodymon

Totally Zenned

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

Re: Google Analytics Integration

a_berezin:

Change to:

number_format($products->fields['final_price'], 3, '.', '')


> **samad64:**
>
> For anyone else interested.. its lines 31 and 45

For anyone who cares, these two adjustments are already in latest version released 12-20-06
 * @version $Id: jscript_google_analytics.php, v 1.2.2 16.12.2006 13:36

The changes are on lines 26 & 40 in v.1.22 if you're really interested. :wink2:
24 Feb 2007, 4:43 PM
#206
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Google Analytics Integration

does anyone know how to use analytics to track their javascript buttons? Ive tried contacting google analytics about this but i keep getting obscure answers... i just need to know where to stick the code and if i have to write a js file and where id have to stick that piece of code..

cool mod btw!

24 Feb 2007, 10:35 PM
#207
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

About what javascript buttons you talk?

26 Feb 2007, 2:06 AM
#208
mizt avatar

mizt

New Zenner

Join Date:
Feb 2007
Posts:
3
Plugin Contributions:
0

Re: Google Analytics Integration

Sorry but I searched around and couldn't find a solution to this sql error. I've been trying to get google analytics to work for sometime. I want to say I tried another mod, where I put code into the checkout success page. Could that have something to do with this error. I'm using 1.3.0.2 .

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;

INSERT INTO configuration_group VALUES (NULL, 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Analytics Account', 'GOOGLE_ANALYTICS_UACCT', 'UA-XXXXXX-X', 'Enter your Google Analytics account number', @t4, 1, NOW(), NOW(), NULL, NULL),
(NULL, 'Target Address', 'GOOGLE_ANALYTICS_TARGET', 'customers', 'What adress (City/State/Country to correlate the transaction with) use in Analytics transaction?', @t4, 2, NOW(), NOW(), NULL, 'zen_cfg_select_option(array('customers', 'delivery', 'billing'),'),
(NULL, 'Affiliation', 'GOOGLE_ANALYTICS_AFFILIATION', '', 'Optional partner or store affilation', @t4, 3, NOW(), NOW(), NULL, NULL),
(NULL, 'Use sku/code', 'GOOGLE_ANALYTICS_SKUCODE', 'products_id', 'Using as Product SKU code', @t4, 4, NOW(), NOW(), NULL, 'zen_cfg_select_option(array('products_id', 'products_model'),');
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'customers', 'delivery', 'billing'),'), (NULL, 'Affiliation', 'GOOGLE_ANALYTICS_A' at line 1
in:
[INSERT INTO zen_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Analytics Account', 'GOOGLE_ANALYTICS_UACCT', 'UA-XXXXXX-X', 'Enter your Google Analytics account number', @t4, 1, NOW(), NOW(), NULL, NULL), (NULL, 'Target Address', 'GOOGLE_ANALYTICS_TARGET', 'customers', 'What adress (City/State/Country to correlate the transaction with) use in Analytics transaction?', @t4, 2, NOW(), NOW(), NULL, 'zen_cfg_select_option(array('customers', 'delivery', 'billing'),'), (NULL, 'Affiliation', 'GOOGLE_ANALYTICS_AFFILIATION', '', 'Optional partner or store affilation', @t4, 3, NOW(), NOW(), NULL, NULL), (NULL, 'Use sku/code', 'GOOGLE_ANALYTICS_SKUCODE', 'products_id', 'Using as Product SKU code', @t4, 4, NOW(), NOW(), NULL, 'zen_cfg_select_option(array('products_id', 'products_model'),');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Any ideas? When I open up Config -> Google Analytics, just the table appears with nothing to edit.

26 Feb 2007, 4:33 AM
#209
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

About the other module it is better to ask in support tread of other module.

26 Feb 2007, 2:51 PM
#210
lawbird123 avatar

lawbird123

Zen Follower

Join Date:
Sep 2006
Location:
Jacksonville, FL
Posts:
231
Plugin Contributions:
0

Re: Google Analytics Integration

Andrew,

I added javascript dropdown menus to my site, but i cant figure out how to track clicks on the dropdown menu. when i asked google analytics, they gave me code, but no heirarchy... im not sure where im supposed to put this code or if im supposed to create a new js file or what...

26 Feb 2007, 2:57 PM
#211
mizt avatar

mizt

New Zenner

Join Date:
Feb 2007
Posts:
3
Plugin Contributions:
0

Re: Google Analytics Integration

Andrew, I've removed the other google analytics module. But I'm still getting this sql error? Any ideas? I'd be more then happy to contribute or pay you personally if I can get this working. Thank you in advance.

26 Feb 2007, 4:38 PM
#212
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

mizt
Don't use upload sql-patch - use Copy/Paste to run sql-patch;
or
http://www.zen-cart.com/forum/showthread.php?t=58654

26 Feb 2007, 5:57 PM
#213
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

Lawbird123,
Can I see menu and Google code? You may PM me both.

26 Feb 2007, 7:59 PM
#214
mizt avatar

mizt

New Zenner

Join Date:
Feb 2007
Posts:
3
Plugin Contributions:
0

Re: Google Analytics Integration

Let me get a sale or two and get to make sure everything is working. But it seems to be good. Give me a paypal address to donate too. Thank you for your time w/ this contribution.

27 Feb 2007, 8:11 AM
#215
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

Donate to zen dev team.

1 Mar 2007, 6:39 AM
#216
kernphilip avatar

kernphilip

New Zenner

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

Re: Google Analytics Integration

i get the following error when I try to apply the sql patch. Any ideas why?

 
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'customers', 'delivery', 'billing'),'), (NULL, 'Affiliation', 'GOOGLE_ANALYTICS_A' at line 1
in:
[INSERT INTO zac_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Analytics Account', 'GOOGLE_ANALYTICS_UACCT', 'UA-XXXXXX-X', 'Enter your Google Analytics account number', @t4, 1, NOW(), NOW(), NULL, NULL), (NULL, 'Target Address', 'GOOGLE_ANALYTICS_TARGET', 'customers', 'What adress (City/State/Country to correlate the transaction with) use in Analytics transaction?', @t4, 2, NOW(), NOW(), NULL, 'zen_cfg_select_option(array('customers', 'delivery', 'billing'),'), (NULL, 'Affiliation', 'GOOGLE_ANALYTICS_AFFILIATION', '', 'Optional partner or store affilation', @t4, 3, NOW(), NOW(), NULL, NULL), (NULL, 'Use sku/code', 'GOOGLE_ANALYTICS_SKUCODE', 'products_id', 'Using as Product SKU code', @t4, 4, NOW(), NOW(), NULL, 'zen_cfg_select_option(array('products_id', 'products_model'),');]
1 Mar 2007, 6:51 AM
#217
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_berezin:

mizt
Don't use upload sql-patch - use Copy/Paste to run sql-patch;
or
http://www.zen-cart.com/forum/showthread.php?t=58654

1 Mar 2007, 9:50 AM
#218
kernphilip avatar

kernphilip

New Zenner

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

Re: Google Analytics Integration

well manualy copying it in made no difference at all, but once I made the changes to sqlpatch.php it worked like a charm!

1 Mar 2007, 10:58 AM
#219
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

You must copy/paste original sql-patch.

5 Mar 2007, 6:05 PM
#220
wacheena avatar

wacheena

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

Re: Google Analytics Integration

I'm having trouble setting up a Google Analytics goal to track conversions and dropoffs during the process. I want to track users from the login page, through the order confirmation page and see where they leave. Currently I have the following steps defined in Google Analytics, and even though there I have received orders, Google Analytics says that I've never had a conversion. I'm using Paypal for payment processing:

  1. http://store.evolvinghealth.com/index.php?main_page=login
  2. http://store.evolvinghealth.com/index.php?main_page=checkout_shipping
  3. http://store.evolvinghealth.com/index.php?main_page=checkout_payment
  4. http://store.evolvinghealth.com/index.php?main_page=checkout_confirmation
  5. http://store.evolvinghealth.com/index.php?main_page=checkout_process

I set up the steps to use Match Type: Head Match to deal w/ session variables, and I checked each page to make sure that Urchin code is getting executed.

Does anyone see any issues with the way I have set up the steps in my process? Has anyone else had success setting up funnels and conversion goals in Google Analytics?