How to Install tracking code on zencart ecommerce site?

July 9, 2021 . 4 MIN READ

 

I am new to Google Analytics, but I have installed it on 2 ZenCart shops by doing the following:
1. Open /includes/templates/YOUR_TEMPLATE_NAME/common/html_header.php
2. Insert the Tracking code just before </head>
3. Upload the new html_header.php file.
4. In the Google Analytics Profile page, make sure “E-Commerce Website”  is set to yes.
5. In your site’s profile, for “Default page”, put in: index.php, index.php?main_page=, index.php?main_page=index

I think that’s all you need to do.

 

 

 

http://blog.strategynode.com/google-analytics-tracking-code-integration/

Google Analytics Integration with Zencart:

Google Analytics Integration
Very easy install, without changed of any files, admin control.

Description
===========
This module allow you to integrade the advanced e-commerce Analysis provided by the Google service named Google Analytics as described here:
http://www.google.com/analytics/

Affected files
==============
Changed files
————-
None
New files
———
/includes/modules/pages/checkout_success/jscript_google_analytics.php
/includes/modules/pages/checkout_success/on_load_google_analytics.js
/includes/templates/YOURTEMPLATE/jscript/jscript_google_analytics.php

Install:
========
0. BACKUP! BACKUP! BACKUP! BACKUP! BACKUP! BACKUP!
1. Unzip and upload all files to your store directory (change YOURTEMPLATE to your template directory);
2. Go to Admin->Tools->Install SQL Patches and install googlefroogle.sql;
3. Go to admin>tools>Google Analytics and setting up your Google Analytics configuration;
4. Go to your Google Analytics Settings -> Edit Settings -> Edit Main Website Profile -> E-Commerce Website : Yes

Download

Google Analytics Integration with WordPress:

Track your WordPress site easily and with lots of metadata: views per author & category, automatic tracking of outbound clicks and pageviews.

  1. Delete any existing gappor google-analytics-for-wordpress folder from the /wp-content/plugins/ directory
  2. Upload google-analytics-for-wordpressfolder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Go to the options panel under the ‘Settings’ menu and add your Analytics account number and set the settings you want.

Download

Google Analytics Integration with Joomla:

Google Analytics Tracking Module is a simple module for Joomla! 1.0.x. and Joomla! 1.5(legacy mode) used for inserting Google Analytics tracking code to the Joomla site as a module.

This module makes it possible to add the tracking code before the closing body tag in template, which is recommended by Google. Module tracks all pages of Joomla cms including 3rd party components.

Module track also Virtuemart transactions. Supported payment methods are at the moment: Paypal, Cash on delivery, credit card and purchase order.

Features

  • The use of ssl is optional
  • subdomain tracking is optional
  • user tracking with __utmSetVar is optional
  • VirtueMart E-commerce Tracking
  • Setting Joomla! registration as a Google Analytics goal is optional

Download

Google Analytics Integration with Drupal:

Google Analytics is Google’s free statistics package, originally based on the Urchin system.

For webmasters to make use of Google Analytics you would normally need to insert some Javascript containing the unique Google Analytics account number (in the format UA-XXXXXX-X) in to the header or footer of every page.

This could be achieved by editing the Drupal template page.tpl.php. However, this would then mean you cannot run multiple sites from the same base theme template.

This module allows you to enter your Google Analytics account number into the modules settings page located at ?q=admin/settings/googleanalytics. It will then automatically add the required Javascript to the footer of every page generated by Drupal.

The Drupal Google Analytics module is currently available from the

module downloads.

Google Analytics Integration with SilverStripe:

Add a Google Analytics tracking code to your site, logs events like crawler indexing, displays GA metrics in the CMS per page or per site.

The Google Analytics module consists of 2 components that can be employed independently:

  • The Google Logger injects the google analytics javascript snippet into your source code and logs relevant events (as of now only crawler visits)
  • The Analyzer adds the GA UI to your CMS

Download

Google Analytics Integration with Modx:

Google Analytics 1.7.0-ga

Released Jan 05, 2011 by Adds a Google Analytics tag to every HTML page of your website. Updated to add the new style Google Analytics code but also retains the legacy code as an option.

Quote from Google:
The new Google Analytics tracking code (ga.js) has been launched and is now available for you to use when you set up a profile. Installing the lighter ga.js code snippet instead of the old tracking code (urchin.js, “legacy”) lets you take advantage of upcoming advanced features and sophisticated reporting while keeping the reliable tracking capabilities of urchin.js. For these reasons, we recommend installing ga.js instead of urchin.js.

Installation Instructions

Installation

  1. Create a new plugin, and paste the contents of this file into the Plugin Code area. Set the plugin name to “Google Analytics” and description to “<strong>1.7</strong> Adds Google Analytics code to every page in your site”
  2. Copy this line into the Plugin Configuration of the Configuration tab:

&account=Account;string;UA-000000-0 &testMode=Test Mode;list;true,false;false &trackingNameTV=Alt tracking URL TV name;string; &trackingNamePH=Alt tracking URL placeholder name;string;&extraJs=Chunk containing extra JS;string;

  1. Enter your Google Account details on the configuration tab
  2. Check the OnWebPagePrerender box on the System Events tab
  3. Press Save
  4. Ensure “Stats Tracking” is enabled in the Site Configuration menu (Tools -> Configuration -> [ Site ] tab )  ** IMPORTANT IF UPGRADING – THIS SETTING WAS NOT RESPECTED BEFORE **

Leave a Reply

Your email address will not be published. Required fields are marked *