---
title: GLAMI Pixel refactor testing
description: We are excited to introduce our updated GLAMI Pixel which has undergone a significant refactoring. As our valued partners, we are seeking your cooperation and assistance in testing the new implementation.
---

[Skip to content](https://help.glami.info/glami-pixel-refactor-testing#main-content)

- [English](https://help.glami.info/glami-pixel-refactor-testing)
- [Čeština](https://help.glami.info/cs/testování-refaktorované-verze-glami-pixelu)
- [Български](https://help.glami.info/bg/тестване-на-нова-версия-на-glami)

English

Show submenu for translations

![2-4.png\]](https://help.glami.info/hs-fs/hubfs/2-4.png?height=40&name=2-4.png)

Open main navigation

Close main navigation

- - [English](https://help.glami.info/glami-pixel-refactor-testing)
    - [Čeština](https://help.glami.info/cs/testování-refaktorované-verze-glami-pixelu)
    - [Български](https://help.glami.info/bg/тестване-на-нова-версия-на-glami)

  English
  
  Show submenu for translations
- Go to glami.cz

 Go to glami.cz

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.glami.info/?hsLang=en)
2. [GLAMI order tracking (Pixel, Google Analytics)](https://help.glami.info/glami-order-tracking-pixel-google-analytics?hsLang=en)
3. [Helpful guides](https://help.glami.info/glami-order-tracking-pixel-google-analytics?hsLang=en#helpful-guides)

# GLAMI Pixel refactor testing

## We are excited to introduce our updated GLAMI Pixel which has undergone a significant refactoring. As our valued partners, we are seeking your cooperation and assistance in testing the new implementation.

To be able to test the refactored code, we would like to ask you to add additional (refactored) PX code to your site,alongside the current GLAMI PX code. Thanks to that, we will be able to receive and review your performance data from both sources and make sure that new refactored code works properly. Once the testing phase is done, we will let you know and the new code can be deleted. 

This guide will provide you with all the necessary instructions and details for the testing, to help us ensure that our GLAMI Pixel is functioning optimally. Your collaboration is essential to our mutual success and we appreciate your time and effort.

Should you encounter any difficulties or require further clarification regarding the GLAMI Pixel tracker implementation, please don't hesitate to reach out at [lena.schuster@glami.cz](mailto:lena.schuster@glami.cz).

#### How to use new testing Pixel tracker

This is a simplified guide. Detailed changes, including practical code examples, are provided below this section.All occurrences need to be updated across all shops. Once the testing period ends, we will notify you. At that point, you'll need to remove the new pixel from your code. We will also disable the testing URL (`/js/compiled/pixelTracker.js`).

1. **Copy the GLAMI Pixel JavaScript load**
   
     - Replace the script source URL containing `/js/compiled/pt.js` with `/js/compiled/pixelTracker.js` in the copy.
       
           - [`glamipixel.com/js/compiled/pt.js`](http://glamipixel.com/js/compiled/pt.js) → [`glamipixel.com/js/compiled/pixelTracker.js`](http://glamipixel.com/js/compiled/pixelTracker.js)
           - `glami.xy/js/compiled/pt.js` → `glami.xy/js/compiled/pixelTracker.js`
       
       ![Untitled (2)](https://help.glami.info/hs-fs/hubfs/Untitled%20(2).png?width=668&height=169&name=Untitled%20(2).png)
2. Copy the GLAMI Pixel call in all places (*pageView*, *track*, *purchase*) where you currently call it (as shown in screenshot 2).
   
     - Replace the object name `glami` with `glamiRefactored`.

![Untitled (7)](https://help.glami.info/hs-fs/hubfs/Untitled%20(7).png?width=684&height=555&name=Untitled%20(7).png)

#### Overview of changes

To ensure the successful implementation of the refactored code, we request your help in its testing phase. **It's essential to operate the new tracker simultaneously with the old one.** To help you understand the difference between old and new Pixel tracker, we've made key changes easily identifiable to prevent confusion or overlap between the old and new systems and also provided you with a full code example at the end of this file.

- As part of our ongoing commitment to improve the GLAMI Pixel, we are introducing you with a refactored version. This new version, specifically designed for testing and validation, is readily accessible at `//glamipixel.com/js/compiled/pixelTracker.js` to prevent corrupting data and to ensure smooth transition after testing period.
  
  *Note: It's possible that you're using a different domain. In this case, only the `js/compiled/pixelTracker` part should be changed.*

Original:

*![Untitled (4)](https://help.glami.info/hs-fs/hubfs/Untitled%20(4).png?width=604&height=112&name=Untitled%20(4).png)*

*Refactored:* 

![Untitled (5)](https://help.glami.info/hs-fs/hubfs/Untitled%20(5).png?width=668&height=169&name=Untitled%20(5).png)

To prevent confusion with our tracking system, please add the suffix `*Refactored` to each tracker's name. This ensures no overlap with current trackers, preserving our data's integrity, see example below.

Original:

![Untitled (6)](https://help.glami.info/hs-fs/hubfs/Untitled%20(6).png?width=589&height=353&name=Untitled%20(6).png)

Refactored:

![Untitled (7)](https://help.glami.info/hs-fs/hubfs/Untitled%20(7).png?width=684&height=555&name=Untitled%20(7).png)

### Full code examples with refactored version

#### ![](https://help.glami.info/hs-fs/hubfs/image-png-Jan-18-2024-02-00-34-6147-PM.png?width=667&height=754&name=image-png-Jan-18-2024-02-00-34-6147-PM.png)

#### Multiple trackers on page

![](https://help.glami.info/hs-fs/hubfs/image-png-Jan-18-2024-01-56-59-8145-PM.png?width=678&height=775&name=image-png-Jan-18-2024-01-56-59-8145-PM.png)

![](https://help.glami.info/hs-fs/hubfs/image-png-Jan-18-2024-01-58-04-5326-PM.png?width=675&height=661&name=image-png-Jan-18-2024-01-58-04-5326-PM.png)

![](https://help.glami.info/hs-fs/hubfs/image-png-Jan-18-2024-01-59-05-7424-PM.png?width=675&height=1075&name=image-png-Jan-18-2024-01-59-05-7424-PM.png)

- [GLAMI General Information](https://help.glami.info/glami-general-information?hsLang=en#main-content)

    - [Sign up on GLAMI](https://help.glami.info/glami-general-information?hsLang=en#sign-up-on-glami)
    - [Information for newly registered shops](https://help.glami.info/glami-general-information?hsLang=en#information-for-newly-registered-shops)
    - [Additional information](https://help.glami.info/glami-general-information?hsLang=en#additional-information)
- [XML feed](https://help.glami.info/xml-feed?hsLang=en#main-content)

    - [XML feed: Mandatory parameters](https://help.glami.info/xml-feed?hsLang=en#xml-feed-mandatory-parameters)
    - [XML feed: Recommended parameters](https://help.glami.info/xml-feed?hsLang=en#xml-feed-recommended-parameters)
- [Billing and Payments](https://help.glami.info/billing-and-payments?hsLang=en#main-content)

    - [CPC business model](https://help.glami.info/billing-and-payments?hsLang=en#cpc-business-model)
- [GLAMI order tracking (Pixel, Google Analytics)](https://help.glami.info/glami-order-tracking-pixel-google-analytics?hsLang=en#main-content)

    - [Helpful guides](https://help.glami.info/glami-order-tracking-pixel-google-analytics?hsLang=en#helpful-guides)
    - [GA4](https://help.glami.info/glami-order-tracking-pixel-google-analytics?hsLang=en#ga4)
    - [GLAMI Pixel and new cookie legislation](https://help.glami.info/glami-order-tracking-pixel-google-analytics?hsLang=en#glami-pixel-and-new-cookie-legislation)
- [Performance](https://help.glami.info/performance?hsLang=en#main-content)

    - [Optimization](https://help.glami.info/performance?hsLang=en#optimization)
    - [Discount codes and GLAMIDAYS](https://help.glami.info/performance?hsLang=en#discount-codes-and-glamidays)
- [GLAMI features](https://help.glami.info/glami-features?hsLang=en#main-content)

    - [GLAMI Audiences](https://help.glami.info/glami-features?hsLang=en#glami-audiences)
    - [Additional promotions](https://help.glami.info/glami-features?hsLang=en#additional-promotions)
    - [GLAMI TOP](https://help.glami.info/glami-features?hsLang=en#glami-top)

[![Chill listening crop-3](https://help.glami.info/hs-fs/hubfs/GLAMI-06.png?width=72&height=24&name=GLAMI-06.png "Chill listening crop-3")](http://glami.cz)

Copyright © 2026, GLAMI, Inspigroup, s.r.o.