Create a tag

A tag is a piece of code which you can place in your website’s code through Tag Manager. With tags you don’t need to engage web developers in changes on your website and you can add a code independently.

Tags are mostly used to enrich analytics, run marketing campaigns, and integrate products into your website or app. In this article, we’ll explain how to create a tag.

To create a tag, follow these steps:

  1. Go to Menu > Tag Manager.
  2. Navigate to Tags.
  3. Click + Create new tag.
  4. Create a new tag

  5. Name the tag and choose a tag type. You can choose a tag type from two categories:
    • Asynchronous tags: load at the same time as the page’s content. Tags may fire after loading the page’s content. It’s a good practice to use asynchronous tags for tracking tags.
    • Synchronous tags: fire and load first, even before the page loads. The content of a page won’t appear until the tag fires. It’s a good practice to use synchronous tags for A/B tests.

    Tip: For more about tag types, see a full list of tags in Tag Manager section.

  6. Set conditions relevant to the chosen tag. For example, category, action, name for a custom event tag.
  7. Custom event tag for tracking Facebook clicks in Tag Manager
  8. In Advanced tag settings, choose a tag type. This setup allows you to choose when to fire a tag. Any tag type other than Does not require consent will need a visitor’s consent to fire.
  9. Advanced tag type

  10. By default, the Respect visitor privacy is turned on. Leave it as is, if you want to respect visitors who set a do-not-track option in their browser or opted out from tracking.
  11. Rescpect visitor privacy

  12. By default, the tag will fire in a debug mode. But you can change it and set Do not fire in debug mode.
  13. Don't fire a tag in a debug mode

  14. In Flight dates, set time during which you want to display the tag.
  15. Set flight dates for a tag in Tag Manager.
  16. In Tag triggers, click + New trigger or + Existing trigger to set up a trigger for your pop-up.
  17. Add a trigger to the tag in Tag Manager.

    Tip: You can add a trigger to a tag anytime, but it’s a good practice to do it while creating a tag.

  18. If you’re setting up a new trigger, name the trigger.
  19. In Event type, choose the trigger type. For example, a page view.
  20. Tip: For more about trigger types, see a full list of triggers in Tag Manager section.

  21. In Trigger conditions, define conditions for the trigger. For example, Page URL contains blog.
  22. In Audiences, pick an audience for which you want to display the tag. For example, we’ve got an audience Apple product users and we want to run the tag only for visitors from this audience.
  23. Tip: For more about audiences, read Create an audience.

  24. Set how often you want to fire the tag. For example, Fire tag multiple times.
  25. When you’re done, click Save for the trigger and click Save for the tag.
  26. Test your tag in the debug mode.
  27. When you’re happy how the pop-up looks and works, click Publish.

Tip: Tags are fired in the order in which they were added, but you can set your own order. For more, read How to fire tags in a specific order?.

Was this article helpful?

Be the first to rate this article.

Technical Support

If you have any questions, drop us a line at support_SPC@piwik_SPC.pro.

We’re happy to help!