← All examples

CSS Developer & QA aliexpress.com

AliExpress: outline SPM tracking elements

Outlines elements that carry SPM tracking attributes so you can see what is being monitored.

Code to copy

/* Outline elements carrying SPM tracking attributes for inspection */
[data-spm],
[data-spm-anchor-id],
[exp-data] {
  outline: 1px dashed rgba(0, 120, 215, 0.6) !important;
}
[data-spm]::before {
  content: "spm" !important;
  font: 9px monospace !important;
  background: #0078d7 !important;
  color: #fff !important;
  padding: 0 3px !important;
}

How to use this example

  1. Copy the code with the button above.
  2. Install JustZix (2 minutes) and open the extension on the target page.
  3. Add a new rule matching that page.
  4. Paste the code into the rule's CSS panel and save — the effect appears instantly.

Rate this example

No ratings yet — be the first.

Does this example work?

Snippets are useless without somewhere to paste them.

JustZix takes 2 minutes to install and runs your code on every matching page. No account, no payment.

Download free See use cases