Download the PHP package vantevo-analytics/sdk without Composer

On this page you can find all versions of the php package vantevo-analytics/sdk. 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 sdk

The analytics of your website, but simpler

Vantevo Analytics is the alternative platform to Google Analytics that respects privacy, because it does not need cookies not compliant with the GDPR. Easy to use, light and can be integrated into any website and back-end.

This is the official PHP client SDK for Vantevo Analytics. For more information visit the website vantevo.io.

Installation

You can install the SDK using Composer or by copying the src/Client.php directly.

composer require vantevo-analytics/sdk

Usage

To start tracking page views, events, and getting statistics, you need to initialize the client first:

Option Type Description
accessToken string (required) To create an api key read our guide.
domain string (required) Enter the domain you want to use to collect statistics.The domain must not include http, https, or www. Example: example.com
timeout int (optional) You can change the request timeout, you need to enter a number in seconds. Default 30.
dev boolean (optional) Tracker will not send data to server, the client execute print the data. Default false.

Tracking page views and events

Parameters

Option Type Description
event array (required) See event parameters.
parameters Option Type Description
event string (required) Event name, remember that the name pageview will send a pageview event.
url string (optional) Enter url you want to save in the statistics. Default is where the client is installed.
title string (optional) You can insert a title of the page, if this field is not used vantevo will insert the pathname of the url used.
referrer string (optional) In this field you can enter a referrer for your request. Default $_SERVER[HTTP_REFERER] or the client checks query parameters: ref, referrer, source, utm_source.
width string (optional) This field is used to save the screen size. Default: 0.
height string (optional) This field is used to save the screen size. Default: 0.
meta array (optional) Enter the event values meta_key andmeta_value, read more how to create an event Default: array.

Example pageview

Example event

Monitoring Ecommerce

In the ecommerce section of Vantevo you can monitor specific actions affecting your ecommerce website and the sources of traffic that lead to sales.

Option Type Description
event array (required) See event parameters.
parameters Option Type Description
event string (required) Event name, remember that the name pageview will send a pageview event.
url string (optional) Enter url you want to save in the statistics. Default is where the client is installed.
title string (optional) You can insert a title of the page, if this field is not used vantevo will insert the pathname of the url used.
referrer string (optional) In this field you can enter a referrer for your request. Default $_SERVER[HTTP_REFERER] or the client checks query parameters: ref, referrer, source, utm_source.
width string (optional) This field is used to save the screen size. Default: 0.
height string (optional) This field is used to save the screen size. Default: 0.
total float (optional) The total amount of the order Example: 1255.00 Default: 0.
coupon string (optional) The name of the coupon used. Example: newsletter
coupon_value float (optional) The value of the coupon used. Example: 45.00
payment_type string (optional) The mode of payment. Example: Payal o Carta di credito.
items array (required) The product information, read more.

List events

These are the events to use to monitor your ecommerce:

Event Description
add_to_wishlist a user adds a product to the favorites list
view_item a user views a product
remove_item_cart a user removes a product from the cart
add_item_cart a user adds product to the cart
start_checkout a user has started the checkout process
checkout_info a user submits personal data
checkout_ship a user submits shipments data
checkout_payment a user initiated the payment process
purchase a user has completed a purchase

Example

An example for how to use the trackEcommerce function.

Read our guide for more information of how to use the ecommerce tracking function.

How to get the statistics

Parameters

Option Type Description
event array (required) Check out our guide to see all the parameters you can use like, click here.

Example Statistics

Example Events

Vantevo Analytics guide

To see all the features and settings of Vantevo Analytics we recommend that you read our complete guide here.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 vantevo-analytics/sdk contains the following files

Loading the files please wait ....