Documentation menuTrack: Tagging

Track

Tag your traffic in Loogika

A tag is one text label that Loogika adds to every event from a page load. You set it on the script tag and filter your reports by it afterwards.

Last updated .

How do you set a tag?

Add data-tag to the script tag:

<script src="https://app.loogika.com/api/script.js?siteId=YOUR_SITE_ID"
  data-tag="variant-b" defer></script>

Every pageview, custom event and outbound click from that page load now carries the tag variant-b.

A tag is plain text of up to 256 characters. Loogika stores it exactly as you write it. Without the attribute, no tag is stored.

What do teams use tags for?

UseExample tag
Comparing two versions of a pagevariant-a and variant-b
Marking a release, to see whether errors or conversions changed after itrelease-2026-11
Separating a group of visitors, such as members and guestsmember

Where do you use the tag in the dashboard?

Open the filter menu, choose Tag, pick an operator and type the value.

The filter works in the overview, pages, referrers, events, users, funnels and goals.

What can a tag not do?

A script carries one tag, and every event in the page load gets the same one. You cannot tag single events.

When you need several dimensions, or a value that differs from event to event, use event properties. See Track events.

Questions about tagging

Can the API set a tag?

Yes. Events sent through the API can include a tag field in the request body.