For the complete documentation index, see llms.txt. This page is also available as Markdown.

Parameterless Attribution

By default Nosto tracks campaign attribution without additional url parameters. The tracking happens by registering click listeners to the campaign elements that detect product url clicks and associate them with the attribution metadata of the rendered campaign. The pair of url and campaign attribution is stored in the local storage of the Browser.

In most cases this will work out of the box, but in certain scenarios adjustments need to be made. For a comprehensive overview, please read our personalization attribution guide.

Capturing clicks

The following tracking modes are supported:

  • a[data-nosto-product]

    • Attributions are tracked based on the id of the clicked product supplied in the data-nosto-product attribute

    • Recommended for most reliable attribution

    • Example: <a href="..." data-nosto-product="1234">...</a>

  • a[href]

    • Attributions are tracked based on the URL of the clicked product supplied in the href attribute

    • Fallback logic that requires that the source and target URL of the product are aligned

    • Example: <a href="https://example.com/products/1234">...</a>

  • :not(a)[data-nosto-product]

    • Attributions are tracked based on the id of the clicked product supplied in the data-nosto-product attribute, triggering an immediate network call to Nosto

    • Useful for any interaction that doesn't trigger a navigation to a PDP page, e.g. ATC dialogs, modals etc.

    • Example: <span atc-dialog data-nosto-product="1234">...</span>

Product url redirects

In case the product urls used in Nosto campaigns have HTTP level redirects applied the HTML should link back to the canonical url used in Nosto campaign via link[refl="canonical"] elements in the head element. Nosto uses both the current location and the canonical page url as lookup keys for the attribution metadata.

Session API based usage

When combined with Session API based requests and HTML based campaign results it is advisable to let the Nosto API handle the campaign injection by enabling campaign injection on the session level:

Check out the API documentation for defaultSession

Reliance on the legacy nosto parameters

Parameterless attribution became the default attribution mechanism on May 26th 2025. If your setup relies on the legacy nosto parameters being present you can enable the legacy behavior in your main account settings page.

JS API based usage: JSON Rendering Attribution

Attribution in custom element based Nosto campaign rendeirng

Below is an example of a custom element that fetches JSON results based on the placement attribute, renders them and register parameterless attribution for product link clicks:

Rendering of campaign markup in non-managed placement elements

In case the campaign markup is rendered into a non-placement element the element will need to be registered with parameterless attribution handling via api.attributeProductClicksInCampaign:

Check out the API documentation for attributeProductClicksInCampaign

Last updated

Was this helpful?