Analytics

Tell menu items apart with the item ID

The short guide to viewing and copying an ID is in Item ID. This article goes deeper.

Two items can share a name, for example “Sale” under Women and “Sale” under Men. The item ID helps you tell them apart in reports, in your tracking tools, and in CSS. This article explains how IDs work in depth. If you only need to copy one ID, jump to Find and copy an item ID.

What an item ID is

An item ID is a code that Navi+ assigns to each menu item as soon as the item is created. It’s meant for reports and tracking. Shoppers don’t see it as text.

Trait What it means for you
Automatic You don’t assign anything. Every new item gets an ID, at every level: top-level items, items in a submenu, and items in a column.
Unique No two items in the same menu share an ID.
Fixed The ID doesn’t change when you rename an item, change its link or design, or move it in the menu. It’s lost only when you delete the item.
Read-only You can’t type or edit it. That’s what makes the reports reliable.
Format New items have a 12-character ID of lowercase letters and numbers. It always starts with a letter, for example ahsjgdtaio01.
Note

Items created before this feature keep the short ID they already had, in the form nav-123456. Navi+ doesn't rewrite old IDs, so your existing menus don't change.

How items get an ID

No matter how an item enters a menu, it goes through the same ID step.

An item is created by What happens to its ID
You add the item by hand A new ID
You add the item from an item template A new ID, so a copy never shares an ID with the template
You paste or duplicate an item A new ID for the copy
You use Add flow or Smart Design A new ID for every item created
You create a menu by duplicating, from a template, or from a blank menu A new ID for every item in the new menu (see When IDs change)
You import a file or restore a backup The IDs in the file are kept. Items with a missing or duplicate ID get a new one
AI edits your menu Existing items keep their IDs. IDs the AI made up are replaced with real ones

Items that Navi+ builds for you

Some items you don’t type yourself. Navi+ builds them when it draws the menu: Menu reference (an embedded menu), Shopify menu, and Auto products. These items also have IDs. The IDs come from the item that creates them, so the same row always gets the same ID. Nothing is saved for them, and an item you edit in Navi+ keeps its own ID.

Shopify menu

An item from a Shopify menu gets its ID from its title and link. If you rename it or change its link in Shopify, the item's ID changes.

When IDs change

What you do Result
Rename an item, change its link or design, or move it The ID stays the same
Delete an item The ID is lost with the item
Duplicate a menu, or create a menu from a template Every item in the new menu gets a new ID, so a copy never shares an ID with the original
Copy an item to another menu The copy is a new item with a new ID
Import or restore into the same menu The IDs in the file are kept
Import into another menu where the IDs are already in use Duplicate IDs are replaced with new ones

When a menu is copied, your custom CSS that targets items by ID is updated in the copy to the new IDs. The original menu isn’t touched. CSS that comes with a template and points to an old nav- ID may not match the new IDs in a menu created from that template.

Find and copy an item ID

  1. Open your menu in the Navi+ app.

  2. Click the item you want to see to open its Edit form.

  3. Scroll to the bottom of the form, to the More section. The ID line shows the item’s ID.

  4. Hover over the ID and click the copy icon next to it. On touchscreens, the icon is always visible.

Click See more in the same section to see the item’s Type, Level, and Path in the menu. The note in the section says the ID is fixed, can’t be edited, and doesn’t change when you rename, relink, or move the item. The View analytics button is also in this section.

Use the item ID in Data Analytics

Data Analytics can count clicks by item ID, so two items with the same name stay separate. This works once Navi+ analytics has started receiving item IDs from your store. Until then, the page matches clicks by item name, as before, and nothing breaks.

Where What you can do
View analytics in the More section Open Data Analytics already filtered to that item. If the menu has unsaved changes, Navi+ asks you to save them first and keeps you on the page.
Search item name or ID Type a name or ID to filter the menu tree and the list of items nobody clicked
Show IDs Display IDs in small grey text after the name. Click one to copy it. Off by default, and remembered in the browser.
ID: chip Appears when the search text exactly matches an item’s ID. Click × to return to all items.
Download raw data (CSV) The item_id column holds the ID. The item_path column holds the position in the menu, for example Men › Sale.

Clicks without an item ID

  • Only the new 12-character IDs are sent with clicks. Items with an old nav-123456 ID, and clicks recorded before counting by ID started, have no ID.
  • Navi+ matches such clicks to an item by name when exactly one clickable item in the menu has that name. The rest go into a grey row at the bottom of the menu, Clicks without item ID. Hover over this row to see when ID counting started and the related names.
  • A second grey row, Embedded or removed items, holds clicks on IDs that aren’t in the menu tree, such as items from an embedded menu or items you’ve deleted.
  • Older clicks can’t be counted by ID after the fact. From then on, new clicks are counted by ID.

Parent items and header buttons

  • A parent item that only opens a submenu doesn’t count as a click. That tap shows as a small n opens label next to the click count. Opens aren’t added to Clicks.
  • A Dynamic header item is one item with one ID. Its buttons (Search, Cart, Login…) don’t have their own IDs. They appear as rows under the header, with the button’s key, and item_path in the CSV looks like Header › Search.

Set your own HTML id on an item

The IDs above are for Navi+. If your tool needs an HTML id on an item, for example Google Tag Manager, Clarity, or your own CSS and scripts, you can set one yourself.

  1. Open the item’s Edit form, then open the Advanced section.

  2. In the Attributes box, type your id:

    id=menu-item-01
    
  3. Save the menu.

On your store, the item’s <li> tag gets its id as follows:

Case id on the item
You set id=... in Attributes Your id
You don’t set one, and the item has a new 12-character ID The item’s ID in Navi+
Old item with a short nav-123456 ID No id is printed

Use only letters, numbers, hyphens, and underscores. Start with a letter, and keep each id unique on the page.

Note

Navi+ doesn't take over your id. If you set your own id, the item's ID in Data Analytics stays the same. The two are kept separate on purpose. The HTML id you set isn't sent to Navi+ analytics.

Use it with GTM, Clarity, or CSS

Because the item’s <li> tag has an id, you can target an item without any extra setup:

#ahsjgdtaio01 { font-weight: 700; }

In tools such as Google Tag Manager or Microsoft Clarity, use that same id as a CSS selector to target the item. If your trigger fires on the element that’s clicked, include its child elements too, for example #ahsjgdtaio01, #ahsjgdtaio01 *. To write CSS in Navi+, see Custom CSS, reusable classes, and fonts.

  What it identifies Looks like Where to find it
Menu ID A whole menu SF-12345678 The menu list and the menu’s embed settings
Item ID One item in a menu ahsjgdtaio01 The More section at the bottom of the item’s Edit form

A store can have many menus, and each menu has many items. Use the menu ID to tell menus apart, and the item ID to tell items apart.

An item ID isn’t a campaign tag

The two sound alike, but they work in opposite ways.

  Item ID Campaign tag
What it is A fixed code A label such as HOT or SALE that shoppers see
Who sets it Navi+, automatically You, through Campaign
Can you change it No, it’s read-only Yes: add, edit, or remove it. The label can also turn on and off on a schedule.
Do shoppers see it No Yes
What it’s for Reports, tracking, CSS Highlighting an item during a promotion
Where to find it The More section in the Edit form The Campaign tag section in the Edit form, and the Campaign tools

Campaign tags attach to an item through its item ID, which is one more reason IDs never change. See Campaign.

Full example: two “Sale” items

Your menu has Women › Sale and Men › Sale. You want to know which one shoppers click more.

  1. Add both items by hand. Each gets its own ID as soon as it’s created, for example kd3m9x0b7q2a for Women › Sale and w8ratq4n1c6z for Men › Sale. (These are examples only. Your IDs will be different.)

  2. Open the Edit form of each item, scroll to More, and copy the ID. Record both IDs in a note.

  3. Turn on the menu and wait a few days.

  4. Open Data Analytics and turn on Show IDs. The two “Sale” rows now appear with their own IDs and their own click counts.

  5. Paste one ID into Search item name or ID. The page shows only that item, with an ID: chip. Click × to return to all items.

  6. Click Download raw data (CSV). In your spreadsheet, group by item_id, or read item_path: Women › Sale and Men › Sale are two different rows.

  7. If your tag manager needs its own name, open Advanced for each item and type id=sale-women and id=sale-men in Attributes. Data Analytics still uses Navi+’s IDs.

Clicks recorded before counting by ID started can’t be split between the two items. They show under Clicks without item ID, or they’re counted for a “Sale” item only when exactly one item has that name.

If you duplicate this menu later, the copy gets entirely new IDs, and the copy’s custom CSS is updated to match.

Known limits

  • Counting by ID needs Navi+ analytics to have received item IDs from your store. Until then, the page counts by name.
  • Items with an old nav-123456 ID don’t print an ID on the store and have no ID in reports, so items with the same name in this group can’t be separated.
  • An id you type in Attributes isn’t sent to analytics.
  • Rows from a Shopify menu change their ID when you rename them or change their link in Shopify.
  • Group labels, tabs, dividers, blank spaces, and HTML blocks don’t receive clicks, so they never appear in the tree.
  • With very large click volumes, the page may show Very large data set: some per-item counts may be missing.
  • If you use a template with custom CSS that points to old nav- IDs, check that CSS after you create a menu from that template.

Did this page help?

Need a hand? Chat with us in the app or write to [email protected] — send your store URL and the menu name.