Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google Analytics support


rudolfl

Recommended Posts

Hi all,

 

Is there a support for later development in Google Analytics?

I know there is support through "Header Tags" module, but it is outdated. It uses old ga.js tracking.

 

1. I wrote a header tag module that supports latest analytics.js (and latest e-commerce). What is the best way to share it with community?

 

2. I need support for enchanced e-commerce support in GA. Is there a module already available or should I just write my own again?

 

Thanks,

Rudolf

Link to comment
Share on other sites

1. if it is part of oscommerce, it should be updated with later/better code. @@burt

2. can you point to what you are trying to do ?

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

This is for Universal Analytics.  http://addons.oscommerce.com/info/9060 by @@raiwa

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Link to comment
Share on other sites

Thanks, new module looks pretty much same as the one I did, so will leave it as is.

 

As for enchanced ecommerce, here it is:

https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce

 

Basically, it will allow GA to see products viewed and measure how and where people abandon shopping cart.

 

Looks like I have to do one myself.

 

Rudolf

Link to comment
Share on other sites

@@rudolfl If you get to that and make it an an add on I'll probably try it in Universal analytics.  I currently have ecommerce disabled on the google site because it appears some additonal code needs done.  Thanks

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Link to comment
Share on other sites

@@altoid

As someone mentioned earlier, there is already a contribution for universal analytics. It already contains basic ecommerse support that will give you record of purchased products and orders. (Looking at the code, I would probably change SKU field to be products model instead of products ID).

 

When I get enchanced ecommerse to work, I will upload it.

 

Rudolf

Link to comment
Share on other sites

yes, I am interested in this. I'm upgrading to 2.3.4 over the coming weeks, might as well try to get that sorted too

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

@@rudolfl

 

I'll test

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Link to comment
Share on other sites

@@bruyndoncx

@@altoid

 

First version is here:

https://dl.dropboxusercontent.com/u/3175080/ga_module_with_eec.zip

 

There is README file. Any questions -- please ask me.

 

As I continue to work on it, I will be adding more features and fixing whatever is broken and will let you all know via this thread.

Once stable, I will do an "official" add-on contribution

 

Rudolf

Link to comment
Share on other sites

@@rudolfl  OK..installed.   Testing with real time in GA, data is flowing.   The shop this is in doesn't get a lot of traffic so Carine should have more data for feedback.

 

I have ecommece and advanced ecommerce set up in ga for this.

 

This is on a 2.3.3.4 shop that is partially along the way to the 2.3.4 upgrade.

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Link to comment
Share on other sites

@@altoid

 

Thank you.

You should not really use ecommerce and advanced ecommerce setup together.

From Google document:

 

Important: The Enhanced Ecommerce plug-in should not be used alongside the Ecommerce (ecommerce.js) plug-in for the same property.

 

I think, it may be safe for now, but you may get duplicated transaction record.

 

Rudolf

Link to comment
Share on other sites

Hi there, I was following these guidelines in the readme

 

2. Make sure you enabled e-commerce in your GA property
3. Make sure you enabled enchanced e-commerce in your GA property

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Link to comment
Share on other sites

@@altoid

 

You are OK.

I did not read your message correctly. You did the right thing on GA side.

One should not use both modules on the shop side as this may confuse GA.

 

Rudolf

Link to comment
Share on other sites

@@altoid

 

You are OK.

I did not read your message correctly. You did the right thing on GA side.

One should not use both modules on the shop side as this may confuse GA.

 

Rudolf

 

Good then,

 

I checked  today's GA activity, it's recording.  Again, this is a slow shop, the SEO was not the best so visitation was affected.   But we'll keep an eye and see what occurs.  Thanks

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Link to comment
Share on other sites

An update

Version 0.2 is ready for testing

https://dl.dropboxusercontent.com/u/3175080/ga_module_with_eec%200.2.zip

 

It adds support for reporting individual product views and product click event.

 

I inserted version number into the /include/modules/header_tags/ht_google_universal_analytics_eec.php, so we all know where we are.

 

If you are upgrading from previos version, just replace /include/modules/header_tags/ht_google_universal_analytics_eec.php with one from archive and do appropriate mods to includes/modules/products_listing.php

 

I am getting back to work and, hopefully, another version will be done over the weekend to support more features

 

Rudolf

Link to comment
Share on other sites

Hello, upgraded as per above. 

 

in GA demographics is enabled and GA says "success" in setting that up.

 

Impression data appears for today.

 

Working on figuring out enhanced linke attribution, which apparently is on in page analytics....

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Link to comment
Share on other sites

OK, version 0.3

 

https://dl.dropboxusercontent.com/u/3175080/ga_module_with_eec%200.3.zip

 

I added:

 -- support for tracking shopping cart behaviour (adding/removing products)

-- support for checkout process

 

Bug fixes:

-- There was a problem if product name contained quotation marks (' or ")

 

If you are upgrading from previous version, changes for /includes/modules/products_listing.php has to be re-applied as per README file. All other changes stay as is, few more files need updates.

 

As it stands now, providing everything works, most of the required functionality is in. I am going to do few more small changes, some cleanup and will do an official add-on

 

Rudolf

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...