Skip to content
Branch: master
Go to file

Latest commit


Failed to load latest commit information.
Latest commit message
Commit time

Skroutz Analytics WooCommerce Plugin

Integrate skroutz analytics to your WooCommerce enabled Wordpress site

This plugin provides the integration between Skroutz Analytics and the WooCommerce plugin.

  • Integrates the analytics tracking script to all your frontend pages.
  • Integrates the ecommerce data (transactions and revenue) generated during an order.


The plugin is available from the Wordpress plugin repo.

Wordpress (recommended)

  1. Login to your wordpress admin panel
  2. Navigate to Plugins > Add New
  3. Search for skroutz analytics woocommerce
  4. Install the plugin, authored by skroutz
  5. Activate the plugin through the Plugins menu in WordPress admin.
  6. Set the Shop Account ID to the plugin's settings.


  1. Download the plugin file to your computer and unzip it.
  2. Upload the unzipped plugin folder to your WordPress installation’s wp-content/plugins/ directory.
  3. Activate the plugin through the Plugins menu in WordPress admin.
  4. Set the Shop Account ID to the plugin's settings.


Which sites do you support?

We support, and

Where can I find the plugin's settings?

This plugin will add the settings to the WooCommerce Integration tab WooCommerce > Settings > Integration > Skroutz Analytics

Where can I find the Shop Account ID?

Visit skroutz for merchants page, and navigate to the Skroutz Analytics section. Otherwise you may contact your account manager.

I don't see the code on my site. Where is it?

Make sure you have set your Skroutz Analytics Shop Account ID in the plugin settings, otherwise the tracking won't work.

How can I test if Skroutz Analytics is working?

Skroutz provides you a temporary verification page during the testing phase of the skroutz analytics integration. You can visit skroutz for merchants page or contact your account manager.

Which pages do you track?

This plugin does not track any admin pages, only frontend pages.

My code is there, but does not report any ecommece data. Why?

Duplicate Skroutz Analytics code causes a conflict in tracking. Remove any other Skroutz Analytics plugins or code from your site to avoid duplication and conflicts in tracking.

The order tax seems to be wrong. Why?

The plugin uses the WooCommerce tax rates you have configured in the settings. If the Enable Taxes option is disabled, or there are no Tax Rates configured, a default tax rate based on the flavor/country will be used to manually the calculate the order tax from the order revenue. So to avoid that, you need to properly setup your tax rules:

  • Make sure you have enabled the Enabled Taxes option under WooCommerce > Settings > Tax > Tax Options
  • And you have added at least one Standard Tax Rate under WooCommerce > Settings > Tax > Standard Rates
  • Finally the shipping tax should be included in the order tax.
    • Make sure the Shipping checkbox is checked in the Tax Rates table (see above)
    • Also the Tax Status under WooCommerce > Settings > Shipping > Flat Rate must be set to Taxable. Note that the Cost value should be set excluding tax, as the tax will be automatically applied by WooCommerce. For example if you want the shipping cost to be 5 euro, you should set the cost to 4.03, given a 24% rate tax. The same applies for all the shipping methods that are enabled for your eshop.
I don't use neither product ID nor SKU in XML, but a custom postmeta id

The option to use a custom postmeta id is supported. You have to check the Use custom postmeta id option in the plugin settings, and then specify the custom id key used in the postmeta table. Note that if the custom id is not found for a product the product id/sku will be used instead.

I have variable products with multiple attributes that must be grouped by an attribute (e.g. color) in XML. What can I do?

Select the option Send parent Unique ID combined with specified variation attribute term IDs in the plugin settings and specify in the select box the grouping attribute (e.g. color). You can set more that one grouping attributes. But note that the order in which the attributes are set in the settings also affects the generated Unique ID.

The Unique ID that will be generated is a combination of the parent product ID and the specified grouping attribute terms: <parent product ID>-<grouping attribute term1 ID>-...-<grouping attribute termN ID>.

The following rules apply:

  • If a product is not a variant the <product ID> is used.
  • If a product is a variant and does not have one of the declared color attributes the <parent product ID> is used.
  • If a product is a variant and has one of the specified grouping attributes the <parent product ID>-<attribute term ID> is used.
  • If a product is a variant and has two of the specified grouping attributes the <parent product ID>-<attribute1 termA ID>-<attribute2 termB ID> is used.
None of the settings for the Unique product ID works for me. Can I have a custom Unique ID?

The plugin provides a filter that allows you to customize the Unique ID of each product that will be reported in an order. The filter tag is: wc_skroutz_analytics_product_id_filter, the value is the generated Unique ID and the additional argument is the product object (WC_Product | WC_Product_Variable).

Usage example:

function my_product_id( $id, $product ) {
    return "my-{$id}-custom-{$product->get_sku()}";
add_action( 'wc_skroutz_analytics_product_id_filter', 'my_product_id', 10, 2 );
Global object name skroutz_analytics is already being used, can I change it?

The option to use a custom global object name is supported. You have to check the Use custom global object name option in the plugin settings, and then specify a name in the text field.

How can I integrate the Product Reviews service?

The plugin provides two WordPress Widgets, that you can easily add:

You can find detailed documentation on how to integrate the widgets here.


If you discover issues, or have any ideas for improvements and features, please report them to the issue tracker of the repository, or submit a pull request.

Issue reporting

  • Check that the issue has not already been reported.
  • Check that the issue has not already been fixed in the latest code (a.k.a. master).
  • Be clear, concise and precise in your description of the problem.
  • Open an issue with a descriptive title and a summary in grammatically correct, complete sentences.

Pull requests


Skroutz Analytics WooCommerce Plugin is licensed under the GNU Public License v2.


Integrate Skroutz Analytics to your WooCommerce enabled Wordpress site.



You can’t perform that action at this time.