Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google Analytics module


Guest

Recommended Posts

  • Replies 389
  • Created
  • Last Reply

Top Posters In This Topic

I am wanting to try this out but for now the tracking code is not even recognised by Google itself within my index.php and other pages where I put it.

The difference with your own tracking code I suppose will be that Google gives more information but of course only for those people coming through Google.

 

Well, hopefully Google Analytics will work with osC PHP pages afterall and thanks anyway for this contrib !

Link to comment
Share on other sites

What does this do that just adding the code to header.php wouldnt do?

 

This contrib looks like it enables e-commerce transaction tracking as outlined here: http://www.google.com/support/analytics/bi...7203&topic=2957 by including a module on the checkout_success.php page.

 

Haven't installed it yet but would be simple to do so, just not sure whether I want to send google my transaction info.

Link to comment
Share on other sites

This contrib looks like it enables e-commerce transaction tracking as outlined here: http://www.google.com/support/analytics/bi...7203&topic=2957 by including a module on the checkout_success.php page.

 

Haven't installed it yet but would be simple to do so, just not sure whether I want to send google my transaction info.

 

As I read it you can but you don't have to. You can just use them as a normal, but hopefully more extensive, tracking media.

Link to comment
Share on other sites

Hello All,

 

Thank you for your interest!

 

What does this do that just adding the code to header.php wouldnt do?

 

 

No. There isn't just the basic tracking code inserted into the < HEAD >.

Anyway, if you just want to add the basic tracking code you have to insert it into each page < HEAD > area (just above the final </ HEAD > tag. Not into header.php

 

My contribution integrate the more complex e-commerce analysis Google Analitycs offers.

In order to benefit e-commerce analysis, Google need some details about each order.

 

This is what my contribution do. Get the requiered order details, format them and send to Google server.

 

 

I am wanting to try this out but for now the tracking code is not even recognised by Google itself within my index.php and other pages where I put it.

The difference with your own tracking code I suppose will be that Google gives more information but of course only for those people coming through Google.

 

Well, hopefully Google Analytics will work with osC PHP pages afterall and thanks anyway for this contrib !

 

 

 

Yes. It seems like it take longer they say to get the tracking code recognised and start the tracking.

Anyway, eventualy it is working.

 

........

Haven't installed it yet but would be simple to do so, just not sure whether I want to send google my transaction info.

 

Yes. After this seems to be a political decision we have to make. Should we trust Google and send them our transactions details?

 

There are no personal info sent to Google. Only geographical location of the customer which can be known anyway by everyone from his IP.

 

 

 

 

Best regards,

Clement

Link to comment
Share on other sites

I'm not sure if the SSL version works very happily. When I tried using the SSL version of the code I got a domain mismatch error in the Google SSL certificate.

 

Their forums let me to expect a message about showing or not showing insecure items on secure pages when using the http:// tracking code on secure pages which is why I tried the https:// code in the first place. I didn't see that message at all.

 

Still puzzling over this one. I'll do more investigations on it later.

Link to comment
Share on other sites

Hello David,

 

Yes. There is a worning pop-up if you use non-secure version on secure store pages.

 

I use the SSL version without any domain mismatch error.

 

Can you paste here the SSL version of code you use? (of course WITHOUT your account id).

 

Also, did you changed your domain address from http to https into the profile settings (into Google account)?

 

Best regards,

Clement

Link to comment
Share on other sites

No. There isn't just the basic tracking code inserted into the < HEAD >.

Anyway, if you just want to add the basic tracking code you have to insert it into each page < HEAD > area (just above the final </ HEAD > tag. Not into header.php

 

I have installed your moduel, but placed the code in the header.php file, and not in checkout_success.php. Google hasn't updated yet, so I'm not sure if it will work...but can you tell me why it wouldn't? When looking at the source code of each page it appears installed correctly everywhere.

 

 

Cheers

 

James

Link to comment
Share on other sites

Hello James,

 

Let's split the issue in 2 parts:

 

A) The basic Analytics tracking code

B) The advanced Analytics e-commerce tracking code.

 

 

A) Per Google instructions:

 

Enter the code below into all of your web pages, between the <head> and </head> tags, and after any <meta> tags in that section.

 

The osCommerce script (the standard MS2 version) has the < head > tags located into each main file (ex. account.php ... index.php etc).

Not into the header.php file.

 

This is why you should insert the basic track code into each page of your store (for MS2 version).

 

If you have a modified version and the < head > tags are located into the header.php file then it's ok to place the basic code into header.php ..

Just make sure it is your case.

 

 

B) My contribution is coming to help only for the advanced e-commerce tracking part as this is not only a matter of inserting a tracking code into a page.

 

In order to insert Google e-commerce tracking code (which basically is a hidden form) we have to prepare a lot of data for it.

This is what my contribution do.

 

Now, it is not ok to put my contribution in the header.php file as long as the advanced e-commerce tracking code should be located only into 1 file (the checkout_success.php file ).

If you put my contribution (the advanced e-commerce tracking code) into the header.php file you will have the advanced code trying to send e-commerce information from each page, which is not ok.

 

 

Please let me know if I was clear enough.

 

Best Regards,

Clement

Link to comment
Share on other sites

Yes. James.

 

This is the case.

 

 

Just pay attention to the differences between SSL stores and NON-SSL stores

 

AND

 

change the xxxx-x with your own id into the basic code.

 

The best way for the basic code is to generate it trough your Analytics account.

 

good luck!

Link to comment
Share on other sites

Hello.. I just installed this and came up with an error on the checkout_success page.

 

Fatal error: Call to undefined function: randomise_order_num() in /***/***/***/shop/includes/modules/analytics/analytics.php on line 60

 

Any help would be great...

Link to comment
Share on other sites

Hello,

 

Ups. This is a function I have into the custom store.

 

I forgot it there.

 

I'll fix the problem and upload the new package in one hour.

 

Thank you,

Clement

Link to comment
Share on other sites

My catalog is not SSL but my account creation and checkout is SSL. There doen't seem to be any problem wherever you put the urchin tracking info, so I guess putting it in the header would work. The only thing is that probably the code from this contribution has to be below it.

 

My domain is set up in google as http. Does that mean I should be using http all though my site for the javascript or should I change it to https for the secure pages?

Link to comment
Share on other sites

Hello David,

 

 

My catalog is not SSL but my account creation and checkout is SSL. There doen't seem to be any problem wherever you put the urchin tracking info, so I guess putting it in the header would work. The only thing is that probably the code from this contribution has to be below it.

 

Doesn't matter if your catalog is SSL or not. The code must be placed between < head > and < / head > tags which are not into the header.php file.

 

 

My domain is set up in google as http. Does that mean I should be using http all though my site for the javascript or should I change it to https for the secure pages?

 

 

If you use at least 1 SSL page (like the checkout ones are) my personal advice is to set-up your store as https:// ... into the Google profile.

 

and use the https version of the tracking code over all your store.

 

 

If you use the opposite way (the http:// tracking code into the https pages of your store) you will have a security pop-up warning each time you access the ssl pages.

 

Regards,

Clement

Link to comment
Share on other sites

Thanks Clement... no more error now.

 

I did have another question.. I have STS hooked up. Is it ok to put the...

 

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">

</script>

<script type="text/javascript">

_uacct="UA-xxxx-x";

urchinTracker();

</script>

 

just above the </head> tag in that template file to propagate across the entire site? I am seeing it in everypage so I am assuming so.

 

Google does not see it on my site yet... I am guessing it will take a little while for it to see it.

 

Thanks again,

Lyle

Link to comment
Share on other sites

Hey Clement,

 

Looks like you have a real nice contrib going on. I'm waiting for my first report from Google and it will be real exciting to see how it works.

 

A question for you,

If I want to dispaly the final price with tax, do you have the code to fix that?

 

thanks,

Fredrik

Link to comment
Share on other sites

Thanks Clement... no more error now.

 

I did have another question.. I have STS hooked up. Is it ok to put the...

 

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">

</script>

<script type="text/javascript">

_uacct="UA-xxxx-x";

urchinTracker();

</script>

 

just above the </head> tag in that template file to propagate across the entire site? I am seeing it in everypage so I am assuming so.

 

Google does not see it on my site yet... I am guessing it will take a little while for it to see it.

 

Thanks again,

Lyle

 

 

Sure Lyle. No matter what kind of template system you use. If you place the code just above the </head> tag everything should be ok.

 

 

And Yes. It takes a while till Google see your code (arount 24 hours).

 

Thanks, but why do you say it must be placed between the <head> and </head> tags? It seems to work fine anywhere on the page.

 

 

This is what Google asking for. To place the tracking code between head tags.

It is a script should run into HTML head wich is not same think with what designers means with "header" of the page.

 

 

Clement,

 

Thankyou very much for the contribution. I have a question...

 

I installed your contribution. Is there any way to test if I installed it successfully?

 

Hello Jared,

 

You may see the html page source code of the checkout_success.php page (in IE click "View" ---> "Source").

Now check in your html source if your page send the corect values to Google.

 

 

Hey Clement,

 

Looks like you have a real nice contrib going on. I'm waiting for my first report from Google and it will be real exciting to see how it works.

 

A question for you,

If I want to dispaly the final price with tax, do you have the code to fix that?

 

thanks,

Fredrik

 

Hello Fredrik,

 

The final price the contribution send to Google is the grand total of the order which means it contain any tax you applied.

Isn't in that way on your store?

Link to comment
Share on other sites

hey,

 

where is the difference between the "conversion target" (german translation) in the analytics section and the conversion tracking in the campaign-section?

and which of these 2 possibilities are u talking about?

 

greetz, flo

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...