Alve API Access Application no longer accepts requests.

Settings Edit the file on GitHub

The available configuration options of the Analytics tracking code.

Table of Contents

Session

connect

The connect command initializes the tracker object for your Account. This is a required call, in order to set up correctly the tracking code. Usually it is the first call you will do.

Data Parameters
Name Type Required Description
shop_account_id String Yes The unique Shop Account ID that you received from us. (e.g. SA-XXXX-YYYY)
Example
alve_analytics('session', 'connect', 'SA-0001-0001');

Renaming the alve_analytics object

It is possible that you'd like to add the Analytics tracking code to your page, but the alve_analytics variable is already being used for something else. To deal with this, analytics.js provides a mechanism for renaming the global alve_analytics object.

The Analytics tracking snippet allows you to rename the global alve_analytics object by changing the final parameter passed to the minified function. You'll also need to update all invocations of the command queue from alve_analytics() to whatever name you choose.

Example
(function(a,b,c,d,e,f,g){a['AlveAnalyticsObject']=e;a[e]= a[e] || function(){
  (a[e].q = a[e].q || []).push(arguments);};f=b.createElement(c);f.async=true;
  f.src=d;g=b.getElementsByTagName(c)[0];g.parentNode.insertBefore(f,g);
})(window,document,'script','https://analytics.skroutz.gr/analytics.min.js','custom_analytics_name');

custom_analytics_name('session', 'connect', 'SA-0001-0001');
Note

Make sure to use the same method name to Ecommerce commands too.