Adding Google Analytics to your Zen Cart store

Source: Internet
Author: User
Tags php file ftp client zen cart
Google Analytics, a free web Analytics tool, can provide-a range of statistics on your website traffic and market  ing effectiveness. One of the more useful features of Google Analytics are the ability to flag certain pages as "goals." This is specifically beneficial to e-commerce Web sites such as your Zen Cart store where you may set the Checkout Success Page as a goal so, this can is reported on Google Analytics.

Information such as number of visitors, the pages they viewed, if they were a repeat visitor, their geographic location, T Heir browser version and more are available through the easy to read reports and graphs.

Google Analytics only tracks pages that contain the Google Analytics tracking code.  There is contributions/addons available to help you add the Google Analytics code to your Zen Cart store. However, it's a fairly simple process to does this yourself and to help you here are a step-by-step guide:Locate the Google Analytics Tracking CodeFirst, sign up to the Google Analytics with a Google account. If required, you can follow the step-by-step guide to Signing up for Google Analytics. Log in to your for Google Analytics account at Http://www.google.com/analytics. Click theAnalytics SettingsLink.
Click onEditFrom your Zen Cart store profile ' sSettingsColumn. Please note that tracking code was profile-specific (if you had more than than one site under your Google Analytics account). At the top right of the Main Website profile information box, clickCheck Status.
Your tracking code is displayed in the box underPaste This code on your site, as shown.  Click inside the box and press Ctrl-a to highlight the code. Press Ctrl-c to copy the code.
Click Save and Finish.Installing the Google Analytics Code

The Google Analytics code needs to is added to all pages this wish to track.  The best-of-achieve this easily are to add the code to the main page template. This's the code is automatically included in each page as it's built by Zen Cart. Locate your template ' s tpl_main_page.php file.
This would be located in the/includes/templates/custom/common folder, where custom represents your template ' s fol Der Name.  Using your FTP client, download this file to your computer. Make another copy of the file and rename the copy tpl_main_page_backup.php or something similar. Open the tpl_main_page.php file on your computer with your favourite editor, such as Notepad + + or Dreamweaver. Scroll to the end of the file and locate the </body> tag. Paste the Google Analytics code directly above this tag.

?>

<!--eof-banner #6 display–>

     <!--enter Google Analytics code here->
</body>
Save the file and upload to your Zen Cart store. Go back to the Google Analytics home page and click on Edit next to your Zen Cart store profile. Click on Check Status. Under Tracking Status information, you'll now see that the Tracking code have been successfully installed and that the St ATUs is waiting for Data.
Now, it's a matter of waiting for Google Analytics to display the data it is collecting. This can sometimes take up to hours.

Google Analytics can provide you with very valuable information on how to your visitors interact with your Zen Cart store. Remember though, it is not real-time data and was only updated at various intervals throughout the day.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.