Skip to content

kanine/zencart_enhanced_analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Zencart Analytics and Adwords Conversions

Tested with Zen Cart 1.5.7

Important Notice

This plugin is a standalone solution for Google Analytics meant to replace any other Zen Cart plugins you might use right now. The module is not compatible with any of the other Analytics plugins so please ensure you remove them from your installation.

Disclaimer: Use at your own risk and please test prior to installing on a live environment. I recommend setting up a Testing Property in Google Analytics so you can observe tracking behaviour prior to deployment.

Introduction

This module utilises the global site tag (gtag.js) JavaScript tagging framework for Google Analytics GA4 and Adwords Conversion Tracking. If you already have a tracking ID you don't need to create a new one.

Credits

All credits to the ec-analytics Plugin used as a basis for this plugin.

Issues

Please report any issues you may find in GitHub: https://github.com/kanine/zencart_enhanced_analytics/issues

Installation / Upgrade

  1. Unzip the plugin (or clone from GitHub)
  2. Rename the folder '/includes/templates/YOUR_TEMPLATE' so that it matches the name of your template/theme
  3. Edit the file /includes/extra_datafiles/enhanced_analytics.php to include your tracking IDs (from Google Analytics and Adwords)
  4. Copy all files from the /includes/ folder to your store keeping the same folder/directory structure as per the extracted files

Configuration

In Google Analytics Analytics

Navigate to Admin > Property and enable a datastream

Adwords

Settings > Conversion Tracking > Website > Different Value per Transaction, you can use just Analytics for conversion tracking but I've had issues with it in the past.

Notes and References

Affilliate is populated with the chosen shipping method. Please ensure that you comply with relevant privacy laws in your jurisidiction, and the jurisdiction of your customers.

Links gtag.js - https://developers.google.com/analytics/devguides/collection/gtagjs/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages