Skip to content
All Guide to One Page

Glami Pixel for WooCommerce

Install GLAMI Pixel, activate the licence and enter the piXel key. Check that purchases are recorded, match product IDs to the feed and troubleshoot cookie and caching issues.

1. Overview and guide

What Glami Pixel does for WooCommerce, what you need from GLAMI before you start and all installation and measurement guides.

The Glami Pixel for WooCommerce installs in e-shop ed the GLAMI piXel, the GLAMI metering code. With this GLAMI sees which visits from its platform end up in product view, add to basket and purchase, and with what value.

Who's it for?#

For e-shops fashion in WordPress and WooCommerce who work with GLAMI and want proper measurement without attaching code to their theme or to Tag Manager.

What you need#

  • Active cooperation with GLAMI and GLAMI pixel key from your account.
  • The plugin ZIP and License key from your OBS account.
  • To match purchases with products: XML feed at GLAMI, ideal for WooCommerce XML Feed for GLAMI.
  • Access to cookie banner and plugin cache settings, if any.

Guides in turn#

  1. Installation and activation
  2. Import license
  3. Connect to GLAMI account (pixel key)
  4. Plugin Settings
  5. What is recorded and where
  6. Checking that purchases are recorded
  7. Match IDs with XML feed
  8. Cookies and consent
  9. Cache and JavaScript optimization
  10. Common problems and solutions

OBS does free the installation and control of measurement by test order. See the product page Glami Pixel for WooCommerce.

Article: Overview and guide →

2. Installation and activation

Install Glami Pixel from the OBS account ZIP and properly remove any old GLAMI code from the topic or Tag Manager.

Installation steps#

  1. Login to your account at obstechnologies.gr and open Downloads.
  2. The WooCommerce GLAMI Pixel Plugin press Download v.... Keep the file as ZIP.
  3. In WordPress open Plugins → Add Add Add Add (page opens with title Add Plugins) and press Transhipment Plugin.
  4. Press Select File, choose the ZIP and Install Now.
  5. Press Enable Plugin.
  6. Continue with the license and the pixel key.

Before you activate: remove the old code#

If you have already installed the GLAMI piXel another way, purchases will be counted twice. Check the following:

  • The header.php or the theme settings for scripts containing the word glami.
  • Type Plugins Insert Headers and Footers or Code Snippets.
  • Google Tag Manager for GLAMI tags.
  • Another plugin for GLAMI pixel.

Keep a copy of the old code before you erase it: there is also the pixel key you used.

Upgrade#

Upload the new ZIP the same way and select Replace current with downloaded. The arrangements remain. After upgrade clean the site cache and make a quick verification.

Article: Installation and activation →

3. Import license

Which key enters where: OBS License key for updates and GLAMI pixel key for measurement. Enable and change domain.

In Glami Pixel are used two different keys, and confusion between them is the most common problem in the installation:

  • License key of OBS: you find it in your obstechnologies.gr account and activates plugin updates for your domain.
  • Key to GLAMI pixel: GLAMI gives it and connects the measurement to your account there. Connect to GLAMI account.

Activating your licence#

  1. Open in your account Licences and press Copy in his key WooCommerce GLAMI Pixel Plugin. Do not use XML feed key: it is a separate product.
  2. Open the plugin configuration page on WordPress.
  3. Paste the key in the license field and activate it.
  4. Renew the page and make sure the license looks active.

Error messages#

  • The license has not been found or is not active. Wrong key, empty character or other product key.
  • You've reached the trigger limit. The license is already used in another domain.

Change domain#

  1. The Licences Your account, in Activated domains, press Change domain, write the new and Save.
  2. Activate again on the new site.

The key to GLAMI pixel stays the same in a domain change, unless your account changes to GLAMI. For limits and transfers see the Licence help.

Article: Enter your licence key →

4. Connect to GLAMI account

Where do you find the key of GLAMI pixel, what it looks like, where you register it at WooCommerce and what to check when you have many stores.

The plugin is connected to GLAMI via pixel key. No passwords are needed in GLAMI.

What the key looks like#

It's a code. 32 characters with numbers and letters A to F, e.g. form 0123456789ABCDEF0123456789ABCDEF. Often referred to as the PI key API of pixel.

Where do you find it?#

  1. Login to your partner account at GLAMI.
  2. Open the GLAMI pixel module, where GLAMI gives the installation code.
  3. Copy the key. If you only see the entire JavaScript code, the key is the 32 characters code within the command glami('create', …).
  4. If you do not find it, ask your account manager at GLAMI.

Registration#

  1. Open the plugin configuration page.
  2. Stick the key to the corresponding field without spaces before or after.
  3. Save and clean the site cache.
  4. Make it measurement verification.

Many shops or countries#

Every store and every country in GLAMI has its own key. If you have two e-shops, do not use the same key in both, because sales will be mixed. OBS can register and check the key for you in the free setup; send it through a request for support.

Article: Login to GLAMI →

5. Plugin Settings

Glami Pixel settings for WooCommerce: pixel key, license and what to check before and after any change.

Glami Pixel has few settings. Its job is to load the pixel and send the correct data to the right pages of WooCommerce, without needing code from you.

What are you setting?#

ConfigureWhat's he doing?
GLAMI pixel keyIt connects the measurement to your GLAMI account. Without it no data is sent.
License key OBSEnables plugin updates for your domain.

What affects the measurement off-plugin#

  • Cookie banner: if GLAMI has not joined a category of cookies, it can always be blocked or loaded without consent. Cookies and consent.
  • Cache and JavaScript optimization: delay or combine scripts can break events. Cache and optimization.
  • Product IDs at feed: if you change its source ITEM_ID in XML feed, pixel purchases will no longer fit. Match with feed.
  • Subject and completion page: themes or plugins replacing the page Order received or the add button to the basket need checking.

After every change#

  1. Save the settings.
  2. Clean the site and CDN cache.
  3. Make it short verification with product view and test order.

Article: Plugin settings →

6. What is recorded and where

What actions of visitors measure GLAMI pixel at WooCommerce, what data accompany each action and why they measure product IDs.

GLAMI pixel records the buyer's main actions from the moment it comes from GLAMI until the order is completed.

EnergyWhere is it done?What is sent
Visit PageOn every page of the siteThe visit
Product ViewProduct PageProduct ID
Add to BasketButton Add to BasketProduct ID
BuyOrder confirmation pageOrder number, Product IDs, value and currency

Why do IDs count?#

GLAMI connects each action with a XML feed product through its identifier. If the pixel sends another ID from ITEM_ID of feed, GLAMI measures the market but does not know which product was sold. Match with feed.

What's not recorded#

  • Purchases where the customer never reaches the confirmation page, for example because they close the bank’s window before returning to the store.
  • Orders you register manually from admin or by phone.
  • Visitors who rejected cookies when the cookie banner correctly blocks pixel.

That is why GLAMI's numbers will never be 100% identical to WooCommerce's orders. But large deviations show problem; see Common problems.

Article: What is recorded and where →

7. Checking that purchases are recorded

Step-by-step check with browser tools that GLAMI pixel load, record view, basket and purchase with correct value and IDs.

The check is done by your browser and takes a few minutes. Do it after installation, after each upgrade and when changing the subject or cookie banner.

Steps#

  1. Open it e-shop In private window (Chrome or Firefox) and accept all cookies.
  2. Press F12 for programmer tools, open tab Network and write glami In the filter.
  3. Open a product page. You need to see it load the GLAMI script and requests to the GLAMI servers.
  4. Press Add to Basket on the product page. A new request must appear.
  5. Complete a test order using cash on delivery or bank deposit so no card is charged, and continue to the confirmation page.
  6. In the request for purchase check the order number, value, currency (EUR) and IDs of the products.
  7. Open the tab Console: There must be no error glami is not defined.
  8. Cancel the test order at WooCommerce.

Control cookies rejected#

Repeat in new private window by clicking Dismissed in the cookie banner. If you don't want to measure without consent, you shouldn't load anything from GLAMI.

Control at GLAMI#

The test market appears in GLAMI statistics with delay and, usually, only for visits from GLAMI. That is why the check in the browser is the most reliable. If your consultant at GLAMI reports a problem, send OBS what you saw in Steps 3–7 and the number of the test order.

Article: Verification that markets are recorded →

8. Match IDs with XML feed

Because GLAMI pixel product IDs must match XML feed ITEM_ID and how you control it in simple and variable products.

GLAMI uses the product identifier to match piXel views and purchases to products in the XML feed. The rule is straightforward: the ID that sends the pixel must be exactly the same as the ITEM_ID feed.

What OBS's Glami XML feed says#

  • In simple products, the product ID at WooCommerce.
  • In variable, the ID of each variant as ITEM_ID and the ID of the parent product as ITEMGROUP_ID.
  • If this has been completed Custom Meta field for Product ID, the value of this field.

More on the page of WooCommerce XML Feed for GLAMI And his help guide.

How do you control it?#

  1. Open XML feed and note it ITEM_ID a simple product and a variant.
  2. Make a test order with these two, as in verification.
  3. Compare the IDs in the purchase request with the IDs in the feed.

Common deviations#

  • The pixel sends the ID of the parent product, while the feed writes variant ID.
  • The feed writes SKU (via custom field), while the pixel sends ID.
  • The feed comes from another tool with its own logic IDs.

In each deviation open a request to OBS with both examples. The correction is made either on feed or pixel, never on both sides, to avoid losing the history of products in GLAMI.

Article: Match IDs with XML feed →

How you set the cookie banner so GLAMI pixel can only load on consent and how you check that the setting works.

GLAMI pixel uses cookies and identifiers for measurement and advertising. The visitor's consent before they're activated.

  1. Open the plugin cookies settings you use (e.g. Complianz, CookieYes, Cookiebot).
  2. Add or check GLAMI service in category Statistics or Advertising/Marketing.
  3. Enable automatic block of Category scripts until acceptance if plugin cookies supports it.
  4. Please refer GLAMI to the website's cookies policy.
  5. Save and clean the cache.

Consent is controlled by the site's cookie banner.

  1. In a private window, with the tab open Network (filter) glami), press Dismissed: must not load anything from GLAMI.
  2. In a new private window press Accept: the GLAMI script must load and record the actions.
  • The pixel never loads: GLAMI is in the category Essentials with the wrong setting or the blockade does not unblock after acceptance.
  • Loads before acceptance: plugin cookies does not recognize the GLAMI script. Add it manually to the exclusion list.

OBS controls the setting in the free setup. For legal questions consult your data protection officer.

Article: Cookies and consent →

10. Cache and JavaScript optimization

How to adjust plugins cache and optimization so that they do not break GLAMI pixel and do not show the "glami is not defined" error.

Plugins speed (e.g. WP Rocket, LiteSpeed Cache, Autoptimize, Permatters) often delay, unite or move scripts. If the GLAMI script loads after from events, the browser shows glami is not defined And the measurement is lost.

Settings to check#

  • Delay JavaScript execution (run delay until interaction): exclude scripts containing glami.
  • Combine / Minify JavaScript: exclude the GLAMI code from the merger.
  • Defer / Load JS deferred: if events are incorrect, exclude GLAMI.
  • Page cache on Thanksgiving page: the order confirmation page should not be served by cache. Most plugins cache already exclude it, along with basket and cashier.

Steps#

  1. Add the word glami the JavaScript exceptions of the plugin cache.
  2. Clean the cache of the site, CDN (e.g. Cloudflare) and browser.
  3. Do it. verification and check the tab Console.

If the error persists#

Disable JavaScript optimization temporarily and try again. If the error disappears, the cause is optimization; if not, open a request to OBS with the name of the theme, plugin cache and a screenshot of the console.

Article: Cache and JavaScript optimization →

11. Common problems and solutions

Solutions for the most common topics of Glami Pixel: no recording, Add to cart missing, valueless purchases, IDs that do not match, double measurements.

GLAMI does not see any recording#

Reason: wrong or empty pixel key, blocked by cookie banner or broken scripts from cache. Solution: check the key, accept cookies in a private window and make it verification.

‘glami is not defined’ on the console#

Reason: GLAMI's script loads after events. Solution: exclude GLAMI from delay/combine JavaScript. Cache and optimization.

Can not delete folder: %s: No such folder#

Reason: the theme adds to the basket with its own button or via AJAX on category pages. Solution: Try the product page, update the plugin and send OBS the page where the event is missing.

Non-value or missing purchases#

Reason: the client did not reach the confirmation page after payment, rejected cookies, or the page was served by cache. Solution: check the return from the payment portal and the cache of the Thanksgiving page; send to OBS 2 order numbers with and without recording.

Purchases are not matched to products#

Reason: different IDs in pixel and feed. Solution: See Match with feed.

Purchases counted twice in GLAMI#

Reason: pixel exists from both plugin and Tag Manager or theme. Solution: hold only the plugin.

He doesn't accept the key.#

Reason: OBS License key, XML feed key and GLAMI pixel key were confused. Solution: See Import permission.

Can't find the download file#

Open Downloads in your account at obstechnologies.gr. If the product does not appear, open a request and we will send you the file.

In the request send WordPress, WooCommerce and plugin versions, theme, plugin cache, cookie banner and test order numbers. Do not send passwords within the message.

Article: Troubleshooting →