Optimizely Snippet tag

Tag Manager

An Optimizely Snippet tag lets you run A/B tests on your website.

To set it up, follow these steps:

  1. Log in to Optimizely.
  2. Find your project.
  3. Look at your project URL and copy the project ID.
    Optimizely Snippet tag in Piwik PRO
  4. Log in to Piwik PRO.
  5. Go to Menu > Tag Manager.
  6. Navigate to Tags.
  7. Click Add a tag.
  8. Name your tag, click Sync and select the following type: Optimizely Snippet.
  9. Click Next.
  10. Paste your project ID.
    Optimizely Snippet tag in Tag Manager in Piwik PRO
  11. In Advanced tag settings, choose Consent type. Set it up if you use a consent form on your site. This tag will only fire for visitors who accept the selected consent type.
  12. Respect opt-out and DNT is turned on by default. Leave it as is if you want to respect visitors who’ve turned on the Do-Not-Track feature in their browsers or who’ve opted out of tracking using our opt-out form.
  13. In Flight dates, set the date and time when the tag will fire.
  14. In Tag triggers, click Add a trigger or Choose existing trigger to set up a trigger for your tag.
  15. Click Save.
  16. Test your tag in debug mode.
  17. When you’re happy with how the tag works, click Publish.

    Note: To run this tag you need to have a synchronous container installed on your website. Read more

  18. All done!

Was this article helpful?

Technical support

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

Back to help center