Download the PHP package hk2/marketing-analytics without Composer

On this page you can find all versions of the php package hk2/marketing-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package marketing-analytics

Version Magento PHP License Packagist
Website LinkedIn Email


HK2 Marketing Analytics

Overview

HK2 Marketing Analytics integrates Google Analytics 4 (GA4), Facebook (Meta) Pixel, and Google Product Feed generation into your Magento 2 store. It provides a centralized configuration panel for managing analytics and tracking settings without modifying theme templates.

Problem Statement

Magento store owners need to integrate multiple analytics and marketing tracking services to measure store performance, understand customer behavior, and optimize marketing campaigns. Manually editing templates for each service is error-prone, requires theme maintenance, and does not scale across multiple services.

Solution Approach

This module provides a unified configuration-driven integration for Google Analytics 4 and Facebook Pixel tracking. Tracking scripts are injected automatically on all frontend pages via a layout handle, with no template overrides required. A scheduled cron job generates the Google Product Feed for Merchant Center submissions.

Who is this for?

Use Cases

Key Features

System Requirements

Installation

See Installation Guide for detailed instructions.

Configuration

Navigate to Stores > Configuration > HK2 > Marketing Analytics in the Magento Admin Panel.

Available settings:

Setting Description
Enable Module Toggle the module on/off
Google Analytics / GA4 Measurement ID Your GA4 measurement ID (format: G-XXXXXXXXXX)
Facebook (Meta) Pixel ID Your Facebook Pixel ID
Enable Google Product Feed Enable daily product feed generation for Google Shopping

Content Security Policy (CSP)

If you have Content Security Policy enabled in your Magento store, ensure the following external domains are whitelisted:

Privacy & GDPR

When using Google Analytics and Facebook Pixel, ensure compliance with applicable privacy regulations:

For detailed usage instructions, refer to the Usage Guide.

Documentation

Known Limitations

Contributing

Contributions are welcome. Please open an issue or pull request on the repository.

Report security vulnerabilities to SECURITY.md for details.

License

This module is licensed under the Open Software License 3.0 (OSL-3.0). See LICENSE.txt.

Disclaimer

This module is provided "as is" without warranty of any kind. The authors are not responsible for any damages arising from its use. Ensure compliance with applicable laws and regulations when using tracking technologies.


All versions of marketing-analytics with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1 || ^8.2 || ^8.3 || ^8.4
magento/framework Version ^103.0.0
hk2/core Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hk2/marketing-analytics contains the following files

Loading the files please wait ...