oscProfessionals   
  • Home
  • Multi Stores
  • Port Folio
  • Links
  • F.A.Q
  • Demo
Ajax Creloaded Multi Store Flash Book Flex Flex Flash Photogallery osCommerce oscommerce template php

  • Search

  • Pages

    • About
  • Archives

    • July 2008
    • March 2008
    • February 2008
    • January 2008
  • Categories

    • Additional
    • Google Analytics
    • Payment
    • Paypal
    • Uncategorized
  • Blogroll

    • Development Blog
    • Documentation
    • Plugins
    • Suggest Ideas
    • Support Forum
    • Themes
    • WordPress Planet
  • Meta

    • Login
    • ValidXHTML
    • XFN
    • WordPress

Why isn’t Google Analytics tracking my website?

July 11th, 2008

Ref. Url: http://www.google.com/support/googleanalytics/bin/answer.py?answer=57053

Why isn’t Google Analytics tracking my website?
Note: This article is for the latest version of the tracking code. If you are using the older version, please read the following article.

To determine which tracking code you are using, please see Which version of the tracking code am I using?

Once you’ve correctly installed your tracking code, you should allow up to 24 hours for data to appear in your account.
If it has been more than 24 hours since you installed the tracking code and you’re still not seeing any data, take a look at the list of possible reasons below.

  • Incorrect tracking code
    The most common reason why you’re not seeing any data in your reports is because of an error in the Analytics tracking code.

    • Copying the tracking code from your account to a word processor may add an extra space or change the quotation marks in the tracking code by the time you paste it to your website. We suggest copying the code again and pasting it directly onto your website.
    • The Google Analytics tracking code is account- and profile- specific, so verify that the tracking code installed on your website matches the code shown in the account. Learn how to view the tracking code for a specific profile.
  • Incorrect filter settings
    Incorrect filter settings can affect the data you see, and may unintentionally filter all of your data from your reports. This happens most frequently due to multiple Include filters.
  • Viewing Incorrect Account
    If you have access to multiple Analytics accounts, you may be looking at the wrong account. Please use the ‘My Accounts’ drop-down menu at the top right of the screen to select the account you’d like to view.
  • Using both Urchin software and Google Analytics
    If you are using Urchin software in addition to Google Analytics to track your website, you may have both __utm.js and ga.js referenced from your pages. You’ll need to update your pages to use the correct code.
  • Using an Outdated Version of ga.js
    If you are hosting the ga.js file locally, you may be using an outdated version of this file. You can download the most up-to-date version at http://www.google-analytics.com/ga.js, but we recommend that you let Google host this file, as this ensures you have the most current version of the file.
  • Interfering Scripts
    Other scripts on your pages could be using some of the same variables as the ga.js file, and therefore interfering with the tracking code execution. If you’re using additional scripts on your pages, consider moving the tracking code into the <head> section of the page. This way, the tracking code will work correctly, and it won’t interfere with the rest of your scripts.
  • Outdated Flash plugin and disabled JavaScript
    If you are unable to see the report interface properly, download the latest Flash plugin (7.x or higher) and make sure JavaScript is enabled in your browser.

A note for Linux users: The Flash implementation for Linux can be very problematic, and users of Debian and Ubuntu seem to be especially affected. We’re aware of these issues, but due to the lack of updates and Flash plugin development for Linux, we may be unable to support your browser and operating system combination at this time.

Posted in Google Analytics | No Comments »

What do the different Website Profile tracking status messages mean?

July 11th, 2008

Ref. Url: https://www.google.com/support/googleanalytics/bin/answer.py?answer=91502&hl=en_US

What do the different Website Profile tracking status messages mean?  

After you install the Google Analytics Tracking Code on your site, you will not see data appearing in your reports until at least 24 hours after installing the code. However, you can always check the status of your installation in the Website Profile section of the Analytics Settings window, under the column “Status.” The following tracking status messages can appear for your profile:

  • Waiting for Data
    The tracking code has been detected on the home page of your website, and Google Analytics is aggregating the data to populate into your reports.
  • Tracking Unknown or Not Verified
    The tracking code has not been detected on the homepage of your website, so please verify that you have installed the code correctly.
  • Receiving Data
    The tracking code is working properly and data is being populated into your reports

Posted in Google Analytics | No Comments »

How long does it take to see report data after adding the tracking code?

July 11th, 2008

Ref. Url: https://www.google.com/support/googleanalytics/bin/answer.py?answer=55541&hl=en_US

How long does it take to see report data after adding the tracking code?  

Google Analytics generally updates your reports every 24 hours. This means that it could take 24 hours for data to appear in your account after you have first installed the tracking code.

If you’ve installed the tracking code and are still not able to see data after 24 hours, please read possible reasons as to why your website isn’t being tracked.

Posted in Google Analytics | No Comments »

How do I track e-commerce transactions?

July 11th, 2008

Ref. Url: http://www.google.com/support/googleanalytics/bin/answer.py?answer=55528

How do I track e-commerce transactions?  
Note: This article is for the latest version of the tracking code. If you are using the older version, please read the following article.

To determine which tracking code you are using, please see Which version of the tracking code am I using?

(If you’re looking for information on tracking visitor movement through your checkout pages, please read How do I use Google Analytics to track a 3rd-party shopping cart?)

Enabling E-Commerce Reporting in the Profile

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.

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 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-xxxxxx-x");
pageTracker._initData();
pageTracker._trackPageview();
</script>

Next, somewhere in the receipt below the tracking code, call the _addTrans() and _addItem() functions. Begin with a call to _addTrans() to establish a transaction. _addTrans() takes the following arguments: Order ID,Affiliation, Total, Tax, Shipping, City, State, Country. For each item that the visitor purchases, call _addItem(). _addItem() takes the following arguments: Order ID, SKU or Code, Product Name, Category, Price, Quantity.

Here is a complete example:

<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-XXXXX-1");
  pageTracker._initData();
  pageTracker._trackPageview();

  pageTracker._addTrans(
    "1234",                                     // Order ID
    "Mountain View",                            // Affiliation
    "11.99",                                    // Total
    "1.29",                                     // Tax
    "5",                                        // Shipping
    "San Jose",                                 // City
    "California",                               // State
    "USA"                                       // Country
  );

  pageTracker._addItem(
    "1234",                                     // Order ID
    "DD44",                                     // SKU
    "T-Shirt",                                  // Product Name
    "Green Medium",                             // Category
    "11.99",                                    // Price
    "1"                                         // Quantity
  );

  pageTracker._trackTrans();
</script>

Posted in Google Analytics | No Comments »

How can I confirm that I’ve entered the tracking code correctly on my pages?

July 11th, 2008

Ref. Url: https://www.google.com/support/googleanalytics/bin/answer.py?answer=55480&hl=en_US

How can I confirm that I’ve entered the tracking code correctly on my pages?  

Note: This article is for the latest version of the tracking code. If you are using the older version, please read the following article.

To determine which tracking code you are using, please see Which version of the tracking code am I using?

Google Analytics will itself check to see that the tracking code has been installed correctly on the home page of your site - once you’ve created a new profile, the Tracking Status will display a warning, “Tracking status unknown,” until the system detects the code.

If you used a WYSIWYG (”What you see is what you get”) editor such as Macromedia Dreamweaver, make sure that you don’t see the code when you’re viewing your page in a browser. Some such editors will attempt to place the code as text on your page - try to use the “source” view when you’re pasting the code to your web pages.

Finally, once your page is live, select View Source from your browser’s menu and look for the code. It should be immediately before the </body> tag of your page, and should look exactly as it was provided to you:

<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-xxxxxx-x”);
pageTracker._initData();
pageTracker._trackPageview();
</script>

You should see your own account number in place of the xxxx-x in the example above. If you need a fresh copy of your code, click the Edit link next to the appropriate profile on the Analytics Settings page, then select Check Status at the top-right of the table.

If your tracking code has been installed correctly, and you’re still not seeing any data after 24 hours, read I’m not seeing any data in my reports

You may also want to know about a free tool that a third-party developer named EpikOne created to help with the process. The tool is called SiteScan and can be found at www.SiteScanGA.com. You can sign up to have the tool crawl your site and check for implementation errors. Examples of errors could be pages that don’t have tracking code or pages that have both ga.js and urchin.js code on them (you shouldn’t run both on a single site). This is not a Google supported or developed tool, but many customers have found it useful.

Tags: How can I confirm that I've entered the tracking code c
Posted in Google Analytics | No Comments »

osCommerce Google Analytics module

July 11th, 2008

Ref. Url: http://www.oscommerce.com/community/contributions,3756

osCommerce Google Analytics module

This module allow you to integrade the advanced e-commerce Analysis provided by the new Google service named Analytics ( more info about the Google service on the official page: http://www.google.com/analytics/ ).

Support forum topic: http://forums.oscommerce.com/index.php?showtopic=180940

Tags: osCommerce Google Analytics module
Posted in Google Analytics | No Comments »

Google Analytics Installation Guide

July 11th, 2008
Google Analytics Installation Guide 0
Ref. Url: http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=66983

Google Analytics Installation Guide  
Note: This article is for the latest version of the tracking code. If you are using the older version, please read the following article.To determine which tracking code you are using, please see Which version of the tracking code am I using?

The Google Analytics Installation Guide is intended to allow you to quickly set up and configure a successful set of reports for a profile. If you need more detailed information on any topic, please search our Help Center.

    Step 1 - Create a Google Analytics account
    Step 2 - Configure your profile
    Step 3 - Edit the tracking code for custom website setups
    Step 4 - Add the tracking code to your pages
    Step 5 - Link with your AdWords account
    Step 6 - Create goals and funnels
    Step 7 - Tag your advertising campaigns
    Step 8 - Creating Filters
    Step 9 - Grant access to other users
    Step 10 - Enable e-commerce transaction tracking
Step 1 - Create a Google Analytics account Back to Top

Note to AdWords users: Google Analytics is able to import and track cost data from Google AdWords if your AdWords and Analytics accounts are linked. Please log in to your AdWords account and follow the instructions on the Analytics tab.

To create an Analytics account:

  1. Visit http://www.google.com/analytics.
  2. Enter your Google Account email and password and click Sign In. If you don’t have a Google Account, click Sign up now to create one.
  3. Click Sign Up.
  4. Enter your Website’s URL, making sure to select either http:// or https:// from the drop-down list. Enter a nickname for this account in the Account Name field, then click Continue.
  5. Enter your contact information and click Continue.
  6. Read the Google Analytics Terms of Service. If you agree to these terms, select the Yes checkbox and click Create New Account to continue.

The Tracking Instructions page that appears contains the tracking code that you’ll need to paste into each page of your site. We recommend completing some additional steps before pasting this code, however, to ensure that the data you collect is relevant. If you’d prefer to install the tracking code right away, please skip to Step 4 for instructions.

Otherwise, click Continue on the Tracking Instructions page to access your new account.

Step 2 - Configure your profile Back to Top

It’s important to configure your profile in order to get the most out of your reports. To access your profile settings:

  1. In the Website Profiles table, find the profile to edit.
  2. Click Edit. The Profile Settings page appears.
  3. Click Edit on the Main Website Profile Information table.

Default page
Setting this to the default (or index) page of your site allows Google Analytics to reconcile log entries for www.example.com and www.example.com/index.html, for example. These are in fact the same page, but are reported as two distinct pages until the Default Page setting has been configured.

Exclude URL Query Parameters
Does your site use dynamic session or user identifiers? You can tell Analytics to ignore these variables and not count them as unique pages. Enter any query parameters to exclude, separated with commas.

E-Commerce Website
To enable e-commerce reporting and the E-Commerce Analysis report set, select Yes. More information on e-commerce reporting is available in Step 10.

Step 3 - Edit the tracking code for custom website setups Back to Top

The tracking code that is provided to you is designed to work with most site setups. However, there are a few scenarios that require small updates to the tracking code on each of your pages. If any of the following apply to you, follow the instructions to update your code before adding it to your pages.

Learn how to:

  1. Track multiple domains in one profile (eg. a main site as well as a secure store site)
  2. Track more than one subdomain in one profile
  3. Track multiple domain aliases
Step 4 - Add the tracking code to your pages Back to Top

Add the tracking code to your pages

Google Analytics only tracks pages that contain the Google Analytics tracking code. You’ll need to add this code to each page of your site, either manually or through the use of includes or other methods.

To access your tracking code:

  1. Sign in to Google Analytics.
  2. From the Analytics Settings page, find the profile for which you would like to retrieve the tracking code. Please note that tracking code is profile-specific.
  3. From that profile’s Settings column, click Edit.
  4. At the top right of the Main Website Profile Information box, click Check Status.
  5. Your tracking code can be copied and pasted from the text box in the Instructions for adding tracking section.

Basic installation - Copy and paste the code segment into the bottom of your content, immediately before the </body> tag of each page you are planning to track. If you use a common include or template, you can enter it there.

    <script type=”text/javascript”>
    var gaJsHost = ((”https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
    document.write(unescape(”%3Cscript xsrc=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
    </script>
    <script type=”text/javascript”>
    var pageTracker = _gat._getTracker(”UA-xxxxxx-x”);
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>

You’ll need to update the “xxxx-x” in the sample above with your own Google Analytics account number. You can access your personalized tracking code in its entirety by following the instructions in Where can I find my tracking code?

Once you’ve completed this step, Google Analytics will begin collecting traffic data. You’ll be able to see data in your reports within 24 hours.

Database driven sites - Insert the tracking code on your index.php page or equivalent (eg. default.php, index.cfm).

Pages with frames - A web page containing frames will generate multiple pageviews: one for the framing page (containing either a FRAMESET or IFRAME tag within its HTML code), and one for each page shown in a frame. As a result, pageviews may be somewhat inflated. Even if a page on your site only appears as a frame for another page, we still recommend tagging it with the entire tracking code. If a visitor reaches the page through a search engine or a direct link from another site and the page doesn’t contain the tracking code, the referral, keyword and/or campaign information from the source will be lost.

Please see How do I interpret the reports for a website that has frames?

Step 5 - Link with your AdWords account Back to Top

For AdWords advertisers, Google Analytics can currently import cost data from AdWords campaigns. To link your AdWords and Analytics accounts, log in to your AdWords account and follow the steps provided under the Analytics tab.

Step 6 - Create goals and funnels Back to Top

If your website is designed to drive visitors to a particular page, such as a purchase or email signup page, you can track the number of successful conversions using goals and funnels in Google Analytics.

  • A goal is a website page a visitor reaches once she or he has made a purchase or completed another desired action, such as a registration or download.
  • A funnel represents the path that you expect visitors to take in order to reach the goal. Defining these pages allows you to see how frequently visitors abandon goals (and where they go instead) and the value of the goal.

Each profile can have up to 4 goals, with a defined funnel for each. To set up goals and funnels:

Enter Goal Information:

  1. From the Analytics Settings page, find the profile for which you will be creating goals and click Edit.
  2. Select one of the four goal slots available for that profile and click Edit.
  3. Enter the Goal URL. Reaching this page marks a successful conversion. For example, a registration confirmation page, a checkout complete page, or a thank you page.
  4. Enter the Goal name as it should appear in your Google Analytics account.
  5. Turn the goal On or Off. This selection decides whether Google Analytics should track this conversion goal at this time. Generally, you’ll want to set the Active Goal selection to On.

Then, Define a funnel by following these steps:

  1. Enter the URL of the first page of your conversion funnel. This page should be a page that is common to all users working their way towards your Goal. For example, if you are tracking user flow through your checkout pages, do not include a product page as a step in your funnel.
  2. Enter a Name for this step.
  3. If this step is a Required step in the conversion process, select the checkbox to the right of the step. If this checkbox is selected, users reaching your goal page without travelling through this funnel page will not be counted as conversions.
  4. Continue entering goal steps until your funnel has been completely defined. You may enter up to 10 steps, or as few as a single step.

Finally, configure Additional settings by following the steps below:

  1. If the URLs entered above are Case sensitive, select the checkbox.
  2. Enter a Goal value. This is the value used in Google Analytics’ ROI calculations, and can be either a set value for the page, or a dynamic value pulled from your e-commerce receipt page. If the former, enter the amount in the field; if the latter, leave this field blank and refer to How do I track e-commerce transactions?
  3. Select a Match Type. There are three different Match Types you may select for your goal: Exact, Head, or Regular Expression.
    - Exact Match: This option requires that the URLs entered as your funnel and goal URLs exactly match the URLs shown in the reports. For example, there can be no dynamic session identifiers or query parameters. Note: If you are using an exact match for a goal (i.e. http://domain.com/page.html), any trailing spaces will cause the goal to be invalid. If you are using partial matching (i.e. ^/page.html), trailing spaces are not an issue.
    - Head Match: If your website has dynamically generated content, use the Head Match filter and leave out the unique values. For example, if the URL for a particular user is http://www.example.com/checkout.cgi?page=1&id=9982251615 but the id varies for every other user, enter http://www.example.com/checkout.cgi?page=1 and select Head Match as your match type.
    - Regular Expression Match: This option uses regular expressions to match your URLs. This is useful when the stem, trailing parameters, or both can vary between users. For example, if a user could be coming from one of many subdomains, and your URLs use session identifiers, use regular expressions to define the constant element of your URL. For example, page=1 will match “http://sports.example.com/checkout.cgi?page=1&id=002″ as well as “http://fishing.example.com/checkout.cgi?page=1&language=fr&id119.”
  4. Click Save Changes to create this Goal and funnel, or Cancel to exit without saving.

Please see the following articles for more information on setting up goals:

  • How do I differentiate my goal and funnel steps if my URLs are dynamically generated?
  • How do I differentiate my goals and funnels if my site URLs are identical?
  • How do I track a goal that is an outbound link?
  • How do I track a goal that is a download (eg. PDFs, AVIs, or WMVs)?
Step 7 - Tag your advertising campaigns Back to Top

Note to AdWords users: If you’ll only be tracking AdWords campaigns, you may skip this step. Once you’ve linked your AdWords and Analytics accounts, AdWords keywords are automatically tagged with the required tracking variables.

Tagging your online ads is an important prerequisite to allowing Google Analytics to show you which marketing activities are really paying off. Tagging involves inserting and defining specific variables into the links that lead to your website.

Generally speaking, you need to tag all of your paid keyword links, your banners and other ads, and the links inside your promotional email messages, except those in Google AdWords, which are automatically tagged. Fortunately, the tagging process goes smoothly once you understand how to differentiate your campaigns. In addition, the URL Builder tool makes it easy to tag your links.

For a full explanation of tagging your links, please read How do I tag my links? If you’d like to get started quickly, refer to the table below.

Variable Name Description

An example URL:

http://www.examplesite.com/?utm_source=google&utm_medium=ppc &utm_term=exampleword &utm_content=campaign1 &utm_campaign=exampleproduct

Step 8 - Creating Filters Back to Top

A filter is used to include, exclude, or change the representation of certain information in a report.

Filters aren’t required, but using them will help you define what data you see and how you see it. Since filters affect the way data is displayed in your reports, it is important to get them set up as soon as possible. Filters added after your account begins collecting data will not affect your old data.

You’ll want to create filters if:

  • you want to see reports for a certain subdomain or subdirectory only
  • you’d like to exclude traffic from certain people or places
  • your dynamic parameters would be more easily readable as descriptive text strings

There are a number of other reasons that you may want filters, but if none of these apply to you, you can safely skip ahead to the next step.

A filter consists of:

  • The name of the filter
  • The type of filter you would like to implement
  • The filter field that is affected. More information about these fields is available from our Help Center: What information do the filter fields represent?
  • The filter pattern is the string that will be matched against the filter field. This field uses regular expressions, a special syntax that uses wildcards and text strings for matching. Please read What are regular expressions? for instructions and tips.

To create a filter:

  1. Click the Filter Manager link from the Analytics Settings page.
  2. Click Add Filter.

Filter Types

Analytics provides three predefined filters, useful for common tasks, as well as a number of custom filters.

Predefined filters:

  1. Exclude all clicks from a domain (hostname): use this filter to exclude clicks that originate from a specific network, such as your internal work network.
  2. Exclude all clicks from an IP address: this filter works to exclude clicks from certain sources. You can enter a single IP address, or a range of addresses
  3. Include only traffic from a subdirectory: use this filter if you want a profile to report only on a particular subdirectory (such as www.example.com/motorcycles)

Custom filters:

  • Exclude Pattern: This type of filter excludes log file lines (hits) that match the Filter Pattern. Matching lines are ignored in their entirety; for example, a filter that excludes Netscape will also exclude all other information in that log line, such as visitor, path, referral, and domain information.
  • Include Pattern: This type of filter includes log file lines (hits) that match the Filter Pattern. All non-matching hits will be ignored and any data in non-matching hits is unavailable to the Urchin reports.
  • Search & Replace: This is a simple filter that can be used to search for a pattern within a field and replace the found pattern with an alternate form.
  • Lookup Table: Selecting this filter allows you to select a lookup table name which may be used to map codes to human intelligible labels. For example, the phone models table maps abbreviated phone platform identifiers to the model and manufacturer names for phone based web browsers.
  • Advanced: This type of filter allows you to build a field from one or two other fields. The filtering engine will apply the expressions in the two Extract fields to the specified fields and then construct a field using the Constructor expression. Read the Advanced Filters article for more information.
  • Uppercase / Lowercase: Converts the contents of the field into all uppercase or all lowercase characters. These filters only affect letters, and will not affect characters or numbers.

Common uses

Report traffic to a subdomain only - If you have your tracking code on your entire domain, but would like to view reports about a particular subdomain on their own, you can create a filter to include only traffic to your subdomain.

Filter Type: Custom filter > Include
Filter Field: Hostname
Filter Pattern: subdomain.example.com
Case Sensitive: No

This will exclude all traffic that is not on the domain subdomain.example.com.

Exclude internal IP addresses - If you’d like to exclude traffic from internal IP addresses, so that your own visits and those of your employees don’t show up in your reports, enter your IP address in the filter below. You can also filter out a range of addresses, as in the second example. Remember to use regular expressions in the IP Address field.

Filter Type: Exclude all traffic from an IP address
IP Address: 99.999.999.9

Or, to filter a range of 192.168.1.1 to 192.168.125:

Filter Type: Exclude all traffic from an IP address
IP Address: ^192.168.1.([1-9]|[1-9][0-9 ]|1[01][0-9]|12[0-5])$

Step 9 - Grant access to other users Back to Top

Google Analytics provides the ability to add any number of users to your account, and to grant varying levels of access to your reports..

Granting profile access

To allow access to another user, follow the instructions below. Please note that additional users will need to create a free Google Account in order to be granted access.

  1. Click User Manager.
  2. Click Add.
  3. Enter the user’s email address, last name, and first name.
  4. Select the User Type for this user: View reports only, or Account Administrator, which allows the user to edit account settings.
  5. If you selected View reports only, select the profiles to which this user should have access (note that Account Admins have access to all profiles). Reports for profiles that are not selected will not be available to this user.
  6. Click Add to move these profiles into the Selected Website Profiles list.
  7. Click Finish to create the new user.
Step 10 - Enable e-commerce transaction tracking Back to Top

With some simple additions to your receipt page, Google Analytics can automatically detect and record transaction and product information. The required information is placed into a hidden form which is parsed for transaction and product information. Most template driven e-commerce systems can be modified to include this information in the receipt.

You’ll also need to enable e-commerce reporting for your website’s profile:

  • From the Analytics Settings page, click Edit next to the profile you would like to enable.
  • Click Edit from the Main Website Profile Information box
  • Change the E-commerce Website radio button from No to Yes.

Writing the required information

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 How do I track e-commerce transactions?

    <script type=”text/javascript”>
    var gaJsHost = ((”https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
    document.write(unescape(”%3Cscript xsrc=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
    </script>
    <script type=”text/javascript”>
    var pageTracker = _gat._getTracker(”UA-xxxxxx-x”);
    ; var pageTracker = _gat._getTracker(”UA-XXXXX-1″); pageTracker._initData(); pageTracker._addTrans( “1234″, // Order ID “Mountain View”, // Affiliation “11.99″, // Total “1.29″, // Tax “5″, // Shipping “San Jose”, // City “California”, // State “USA” // Country ); pageTracker._addItem( “1234″, // Order ID “DD44″, // SKU “T-Shirt”, // Product Name “Green Medium”, // Category “11.99″, // Price “1″ // Quantity ); pageTracker._trackTrans(); </script>

Refer to How do I track e-commerce transactions? for further instructions on writing transaction information to your receipt pages.

More information

Tracking transactions across domains and subdomains - If you are tracking transactions that occur on a different domain or subdomain than your main site, read How do I use Google Analytics to track a 3rd-party shopping cart? for instructions on updating your tracking code.

3rd party shopping cart compatability - Google Analytics uses 1st party cookie technology to track visitors and generate reports. 1st party cookies require that the JavaScript code be called from each web page to avoid breaching the security settings in your visitors’ web browsers. If you can edit the source code of your shopping cart site and add the Google Analytics tracking code, you’ll be able to use it with Google Analytics.

Tags: Google Analytics Installation Guide
Posted in Google Analytics | No Comments »

Which paypal version has aggregate/itemize

July 11th, 2008

Which paypal version has aggregate/itemize

No. Default-Template/Contribution Version Module Version

1

CRE Loaded6 v6.2 Pro paypal.php,v 2.8 2004/09/11

2

CRE Loaded v6.2 B2B paypal.php,v 2.8 2004/09/11

3

CRE Loaded v6.2 paypal.php,v 2.8 2004/09/11

4

osCMax v2.0 paypal_ipn.php 14 2006-07-28

5

zen-cart-v1.3.8a paypal.php 7508 2007-11-28

6

osCommerce_PayPal_IPN_v2.3.4 paypal_ipn.php,v 2.3.3.0 11/17/2007

 

   

Tags: Which paypal version has aggregate/itemize
Posted in Paypal | No Comments »

Fatal error: Call to a member function call_api() on a non-object

March 13th, 2008

Subject: Fatal error: Call to a member function call_api() on a non-object in /public_html/shopping/checkout_process.php on line 102

————————————————-

Module Name: buySAFE module for osCommerce

Module: Features

Download Module From this Link….

http://www.oscommerce.com/community/contributions,5113/category,all/search,buySAFE

——————————————————————————

buySAFE module for osCommerce

 

This is the first buySAFE module for osCommerce, created to incorporate the buySAFE Trust and Bonding solution to your osCommerce store. This allows merchants using osCommerce to display both the buySAFE Trust Seal and offer their customers the buySAFE Bond Guarantee in their shopping cart. Online merchants are using buySAFE to increase website conversion rates, average order sizes and repeat buyer rates.

 

Note: In order to use this module, you must first be certified as a buySAFE Merchant. The buySAFE service is free for merchants. To become a buySAFE Merchant, go to www.buysafe.com and Apply Now.

 

The support thread for the contribution can be found here:

http://forums.oscommerce.com/index.php?showtopic=261464

————————————————————————————

Important Link:

http://svn.oscommerce.com/jira/browse/OSC-386

http://forums.oscommerce.com/index.php?showtopic=285661

http://www.oscommerce.com/community/contributions,5113/category,all/search,buySAFE

http://forums.oscommerce.com/index.php?showtopic=261464

———————————————-

As on Site:

http://www.tailgatersobx.com/shopping/checkout_process.php

 

Fatal error: Call to a member function call_api() on a non-object in /public_html/shopping/checkout_process.php on line 102

 

——————————————–

Reason:

Reason Find is Module is not installed Proper…

——————————————————————————

Solution:1

As per:

http://forums.oscommerce.com/index.php?showtopic=285661

Find this code in checkout_process.php

CODE

// {{ buySAFE Module

$buysafe_cart_id = MODULE_BUYSAFE_BUYSAFE_CART_PREFIX . ‘-’ . tep_session_id() . (tep_count_customer_orders()-1);

$checkout_params = array(’WantsBond’ => ($WantsBond ? $WantsBond : ‘false’), ‘orders_id’ => $insert_id, ‘buysafe_cart_id’ => $buysafe_cart_id);

$checkout_result = $buysafe_module->call_api(’SetShoppingCartCheckout’, $checkout_params);

if (is_array($checkout_result) && $checkout_result[’IsBuySafeEnabled’] == ‘true’)

{

$update_data_array = array(’buysafe_cart_id’ => $buysafe_cart_id,

‘buysafe_client_ip’ => getenv(’REMOTE_ADDR’),

‘buysafe_session_id’ => tep_session_id());

tep_db_perform(TABLE_ORDERS, $update_data_array, ‘update’, “orders_id = ‘” . (int)$insert_id . “‘”);

}

// }}

 

And comment it out like this (by wrapping the code with /* and */:

 

// {{ buySAFE Module

/* $buysafe_cart_id = MODULE_BUYSAFE_BUYSAFE_CART_PREFIX . ‘-’ . tep_session_id() . (tep_count_customer_orders()-1);

$checkout_params = array(’WantsBond’ => ($WantsBond ? $WantsBond : ‘false’), ‘orders_id’ => $insert_id, ‘buysafe_cart_id’ => $buysafe_cart_id);

$checkout_result = $buysafe_module->call_api(’SetShoppingCartCheckout’, $checkout_params);

if (is_array($checkout_result) && $checkout_result[’IsBuySafeEnabled’] == ‘true’)

{

$update_data_array = array(’buysafe_cart_id’ => $buysafe_cart_id,

‘buysafe_client_ip’ => getenv(’REMOTE_ADDR’),

‘buysafe_session_id’ => tep_session_id());

tep_db_perform(TABLE_ORDERS, $update_data_array, ‘update’, “orders_id = ‘” . (int)$insert_id . “‘”);

}

*/// }}

——————————————————————————

Solution:2

Download Module From this Link….

http://www.oscommerce.com/community/contributions,5113/category,all/search,buySAFE

Incomplete contribution Installed

——————————————————————————

For download this contribution and document refer:

http://www.oscprofessionals.com/demo/oscpayment/document/features/buySAFE_OSC_0.9.zip

——————————————————————————-

Tags: buySAFE module for osCommerce
Posted in Payment | No Comments »

Test Credit Card Account Numbers

March 13th, 2008

Test Credit Card Account Numbers

While testing, use only the credit card numbers listed here. Other numbers produce an error.

Expiration Date must be a valid date in the future (use the mmyy format).

Test Credit Card Account Numbers

Credit Card Type

Credit Card Number

American Express

378282246310005

American Express

371449635398431

American Express Corporate

378734493671000

Australian BankCard

5610591081018250

Diners Club

30569309025904

Diners Club

38520000023237

Discover

6011111111111117

Discover

6011000990139424

JCB

3530111333300000

JCB

3566002020360505

MasterCard

5555555555554444

MasterCard

5105105105105100

Visa

4111111111111111

Visa

4012888888881881

Visa

4222222222222

Note : Even though this number has a different character count than the other test numbers, it is the correct and functional number.

Processor-specific Cards

Dankort (PBS)

76009244561

Dankort (PBS)

5019717010103742

Switch/Solo (Paymentech)

6331101999990016

For this please refer the following url:

 

https://www.paypal.com/en_US/vhelp/
paypalmanager_help/credit_card_numbers.htm

Tags: Test Credit Card Account Numbers
Posted in Additional | No Comments »

« Older Entries


ensys Blogs - Multi-Store - osCommerce - CRELoaded - Zencart - Ajax - E-Commerce : Solution - Contribution - PHP