Client support · Technical questions

How the tracker works.

For your developer: loading, speed, cookie banners, Shopify, what is sent, A/B tests, testing and removal.

Other help: Client support · Install the tracker · Privacy and GDPR · A/B tests · Cart and order events · Platform help

How data flows

  1. Your page loads one file, https://denuomarketing.com/denuo.js?site=YOUR_ID. Every client gets the same file; the site value says whose data it is.
  2. The script records pages, clicks and cart activity in the visitor’s browser, cleans each event of personal data, and sends small batches to https://t.denuomarketing.com/e. Before the first one, it makes a single small request for your site’s tracking rules (see Speed).
  3. The collector (a Cloudflare Worker) refuses anything that doesn’t come from one of your own domains, drops bots, adds the traffic source and country, and stores the events in your shop’s part of the database. It keeps no IP address.
  4. Shopify only, optional · Adds: the checkout steps, through a Shopify pixel, and refunds and cancellations, through Shopify order notifications. Setup is in step 07 of the setup page.

Nothing is sent to any other company, and the script loads nothing else: no fonts, styles or other scripts.

Speed

  • Doesn’t block the page: the tag uses defer, so the browser shows the page first and runs the script afterwards.
  • Size: about 33 KB compressed, cached by the browser.
  • One small request at load: the script fetches your site’s tracking rules with https://t.denuomarketing.com/c?site=YOUR_ID. It sends no cookies and no personal data, the answer is cached for 5 minutes, and the wait is limited to 1.5 seconds. The page itself never waits: it is shown and usable while the request runs, and the first page view is recorded once the rules arrive or the 1.5 seconds pass. If the request fails, the script carries on with its automatic detection.
  • Batches: events are sent 2 seconds after the first event, or as the visitor leaves.
  • Passive listeners: event listeners don’t delay scrolling. Page-speed figures come from the browser’s own performance measurements.
  • If the collector is unavailable: the script retries once and then discards the batch. The page doesn’t wait for it and shows no error.

Installing

The steps per platform are on the setup page. Things developers ask about:

We use a Content Security Policy.
Allow script-src https://denuomarketing.com and connect-src https://t.denuomarketing.com. The connect-src entry already covers both the events and the rules request. The script needs no inline code, eval, styles or images.
Why data-cfasync="false"?
It stops Cloudflare’s Rocket Loader, if your site uses it, from delaying the script until after the visitor has already clicked. Leave it in; it does nothing on sites without Rocket Loader.
Our caching or speed plugin combines scripts.
Exclude denuomarketing.com/denuo.js from combining and delaying. A combined copy would lose the ?site= value and stop updating.
Can we self-host the file or add an integrity hash?
Please don’t self-host: the hosted file receives privacy and bug fixes automatically. For the same reason an integrity (SRI) hash would break with each update. The file is served over HTTPS from denuo.’s own domain.
Our site is a single-page app (React, Vue, Hydrogen…).
Page changes are picked up automatically from the browser history. Headless stores don’t have Shopify’s cart scripts, so send cart and order events through the GA4 dataLayer (read automatically) or the denuo('ecommerce', …) command.
Google Tag Manager?
Yes: a Custom HTML tag on All Pages. Don’t put it behind a consent trigger; the tracker reads the banner itself and stays cookie-free until consent. (If you want nothing sent before consent, use strict mode below instead.)
Strict mode: send nothing before consent.
Add &strict=1 to the script address: denuo.js?site=YOUR_ID&strict=1. Events are dropped until the visitor accepts analytics; the current page is recorded at that moment. See Privacy and GDPR for when to use it.
Does it run in iframes or the Shopify theme editor?
No. It only runs in the top window of the page, and ignores pages the browser pre-loads until the visitor opens them.
Which browsers?
All current desktop and mobile browsers. Older browsers skip the features they don’t support, without errors.

Tracking rules without code

Most sites need no code beyond the one line. Where the script can’t work something out by itself, the rule is set in the platform’s Tracking page (Account → Tracking → Rules), or by Miguel for you, and reaches the script through the request described under Speed. Nothing to change on your site, and a change is live within about 5 minutes.

  • Goals: a visit to a page (for example the page shown after a form is sent), a click on a button, a form sent, or something that comes into view, each with an optional value. Name the goal, say what the visitor does and save.
  • Page types: which addresses are product, collection, cart, checkout, search or other pages, when the script’s guess is wrong. A rule always wins over the guess.
  • Checkout steps: which addresses are the contact, address, shipping and payment steps.
  • Order confirmation page: the address of the page shown right after paying, and where on the page to read the order number, the total and the currency. Each box has a ? that explains the choices, and a short walkthrough shows how to find a selector.
  • Cart buttons: which buttons add to the cart, remove from it, open the cart or start checkout, and where to read the product, price and quantity.
  • Custom events: a click, form or view that should be recorded under a name you choose.

Events sent by a rule are marked as coming from a rule, so Miguel can tell them from automatic ones. The Tracking page also has a Test an address box that shows which rules match a pasted address.

The script also reads, without any rule, what the shop already sends to other tools (switched on by default, and switchable off per site):

  • Meta pixel: add to cart, checkout started, payment info added, purchases and product views.
  • TikTok pixel: the same events.
  • Klaviyo: added to cart, started checkout, viewed product and placed order.
  • Older Google Analytics ecommerce (Universal Analytics): add, remove, checkout and purchase in the dataLayer.
  • Order data on the order page: an order in the page’s structured data (JSON-LD).

These readers only listen to what the page already sends; nothing new is requested from those tools. On Shopify the theme’s own cart signals stay the source for add, remove and view events, and an order is stored once even if several sources report it.

Shopify

  • Theme script (the one line): pages, products, collections, searches, cart and the cart drawer, discount codes, checkout button, and the order on the thank-you page. It reads Shopify’s own page data and cart requests; nothing in your theme needs changing.
  • Checkout pixel, optional · Adds: the checkout steps and the completed order, which theme scripts can’t see because Shopify doesn’t let them run inside checkout. Next: add it as a custom pixel with its permission set to Analytics, so Shopify only runs it for visitors who allowed analytics.
  • Order notifications, optional · Adds: the most reliable source for revenue, refunds, cancellations and first versus repeat orders. Next: create the webhooks in Shopify’s notification settings. Only order figures, products, discount codes, payment and shipping method, shipping country, the landing page, whether an email or phone was given and marketing consent (yes or no), and a hashed customer number are kept; names, emails, addresses, notes and IP addresses in the notification are discarded. Each one is checked against your store’s signing key.

Setup steps for both are in step 07 of the setup page; Miguel can add them instead if you give him staff access.

What is sent

Every event carries the page (address cleaned as described on the privacy page), page title and type, time, campaign tags, the consent state, screen width, language and time zone. After consent it also carries the random visitor and session ids.

EventWhenExtra details
Page viewEach page, including in-app page changes and back/forwardProduct or collection shown, sort and filters, market (currency, country, language), new or returning visitor (after consent), referring site
SearchA search on your siteThe search words, with emails and numbers removed, and the number of results
Click, rage click, dead clickClicks on links and buttons; repeated or ineffective clicksThe element, its label, where on the page it is, the link address (cleaned)
Scroll, time, heartbeatWhen the visitor leaves; every 30 s while activeHow far they scrolled, visible and active time
Sections seenWhen the visitor leavesWhich key blocks (reviews, add to cart, recommendations…) were on the page and came into view
FormsA form is started, sent or abandoned; Klaviyo form shown or closedForm and field names, how many fields were touched, the last one touched. Never what was typed
CopyThe visitor copies textHow long the text was, and the text only if it looks like a discount code
Download, video, exit intentFile downloads, video play and finish, the mouse leaving towards the browser barFile address or video, time on page
Errors and speedPage errors; once per page for speedError message (cleaned) and script; loading speed (LCP, CLS, INP, FCP, TTFB)
ShoppingProduct and list views, variant chosen, add to cart, remove, cart changes, cart view, discount code tried, applied or refused, checkout startedProducts, prices, quantities, cart value and item count, discount codes
OrderOn the thank-you page, from the pixel, or from your shop’s data layerOrder number, total, subtotal, discount, shipping, tax, products, codes
A/B testA testing tool shows the visitor a version of a testThe tool, the test and version ids, their names, and whether it is the original
ConsentThe visitor accepts analyticsWhich banner it came from

The collector adds the traffic source (paid, search, social, email…), worked out from the campaign tags and referring site. Browser family, operating system, device type and country are derived from the request; nothing else from the request is stored.

Commands for developers

Optional. Everything above is automatic; these are for custom goals or sites the tracker can’t read on its own.

CommandWhat it does
denuo('goal', 'lead', {revenue: 20, currency: 'EUR'})Records a conversion
denuo('event', 'quiz_done', {step: 3})Records a custom event
denuo('ecommerce', 'ADD_TO_CART', {items: [...]})Shopping events for stores the tracker can’t read (headless)
denuo('properties', {plan: 'b'})Adds a label to the following events, like an A/B test group
denuo('consent', 'granted' | 'denied')Passes on the banner’s answer
denuo('optout')Stops all measurement on this browser, for an opt-out link
denuo('log')Prints the tracker’s state in the console, for testing
Important

Never pass names, emails, phone numbers or addresses in events or labels. The tracker removes emails and phone numbers it recognises, but it can’t recognise a name.

A/B tests

The tracker records which version of a test each visitor saw, so Miguel can compare the original with each variant on orders, revenue and the rest of the funnel. There are three ways to send it; most sites only need the first.

  • Automatic: VWO, AB Tasty, Convert, Kameleoon and Optimizely Web are read from their own scripts. Other tools are read from the GA4 experience_impression event, which many testing tools send to the dataLayer once their GA4 integration is switched on. Nothing to add to the test itself.
  • Address parameter: for redirect (split URL) tests, or a tool that does neither, add ?denuo_test=TEST_ID&denuo_variant=B to the address each version sends visitors to. The version is remembered for the rest of the visit.
  • One line: run the line below in each version of the test, with that version’s letter (A for the original).
denuo('event', 'experiment', { test: 'TEST_ID', variant: 'B' });

When a test starts, it needs to be in the platform with the same keys, so the results are matched to the right test; if it isn’t, send Miguel its name and its id in your testing tool (or the TEST_ID you chose). Keys per tool, where to find them and how to check it works are on the A/B tests page. Each version is recorded once per page, follows the visitor’s consent like every other event, and carries only the tool, the ids and the names of the test and version.

Why numbers differ from other tools

  • Visitors who don’t accept cookies are counted again each day, so “returning visitors” only covers people who accepted.
  • Ad blockers and privacy browsers block some visits, as they do for Google Analytics.
  • Bots and automated browsers are excluded; other tools filter them in different ways.
  • Your team is left out once each device has opened your site with ?denuo_internal=1 (undo with ?denuo_internal=0), or from the office addresses and staff email domains listed on the Tracking page (Privacy and traffic tab). A domain is the part of a work email after the @, such as yourshop.com.
  • Orders: the theme script and pixel can miss an order if the visitor closes the tab early. With order notifications set up, revenue comes from Shopify itself.

Testing

  1. Open your site, right-click → Inspect → Network, and type denuo in the filter.
  2. You should see denuo.js load once, one request to t.denuomarketing.com/c (the rules, answered 200), then requests to t.denuomarketing.com/e a few seconds after you click around. Each should answer 200.
  3. Type denuo('log') in the Console to see the consent state and what the tracker sees on the page.
  4. Accept and refuse in your banner and run denuo('log') again: the consent state should follow your answer.

A 403 answer means the page’s domain isn’t on your list: send Miguel the domain (for example a second store or a staging address).

Removing it

Delete the script line, and in Shopify the custom pixel and the order webhooks. Then tell Miguel, who deletes your data and confirms when it’s done. The tracker’s cookies stop being renewed and expire on their own; copies in visitors’ local storage stay until they clear their browser data, and nothing reads them once the script is gone.

Questions

Email Miguel at hello@denuomarketing.com with your site id (it is in your tracker code after ?site=). Miguel replies within 2 business days.