How to fire tags in a specific order

Tag Manager

Needed permissions: owner, manage, edit & publish, edit

If you want to fully control the order in which tags fire on your website, you can set the priority and put them in a specific order. It is useful when you have related tags and one needs to run a script before the other one.

Before you start

Here are some things to know, before you begin sorting tags:

  • By default, tags are fired in an unspecified order.
  • Prioritized tags fire from top to bottom of the list and before other tags. Even if the previous tag hasn’t finished processing, the next tag will still fire because priority only affects the order.
  • All sync tags fire before async tags.

To fire tags in a specific order, follow these steps:

  1. Go to Menu > Tag Manager.
  2. Navigate to Settings.
  3. On the left, click Tag priority.
  4. Choose which tags you want to work with: Async tags or Sync tags.
    Tag priority in Piwik PRO
  5. On the list with available tags, mark tags you want to prioritize.
    Tag priority in Piwik PRO
  6. Click the arrow to add selected tags to the list with prioritized tags.
    Tag priority in Piwik PRO
  7. In Prioritized tags, drag and drop tags to set them in a specific order.
    Tag priority in Piwik PRO
  8. When you’re done, click Save.
  9. Optionally, test your tags in debug mode.
  10. When you’re happy how tags work, click Publish.

Was this article helpful?

Technical support

If you still have some questions, visit our community.
There’s always someone ready to help!

Back to help center