All Collections
Getting Started
External Tools
How can I add my Tolstoy widget through Google Tag Manager?
How can I add my Tolstoy widget through Google Tag Manager?

Learn how to easily add your Tolstoy widget to your site using Google Tag Manager.

Dov Kaufmann avatar
Written by Dov Kaufmann
Updated over a week ago

If you're looking to manage Tolstoy in your Google Tag Manager, you've come to the right place πŸ™Œ Follow these simple steps to easily add your Tolstoy Widget in Google Tag Manager.

  1. Go to your dashboard, and click New Tag.
    ​

  2. Select Tag Configuration.
    ​

  3. Select Custom HTML.
    ​

  4. Publish your Tolstoy, and copy the widget code.
    ​
    ​<script> window.tolstoyAppKey="(REPLACE WITH YOUR APPKEY)"; var s = document.createElement("script"); s.type = "text/javascript"; s.async = true; s.src = "https://widget.gotolstoy.com/widget/widget.js"; document.head.appendChild(s); </script>​

  5. Paste it in the Tag Configuration window
    ​

  6. Choose a trigger.
    ​

  7. Click Save.
    ​

  8. Name your tag.
    ​


You're all set! You can now manage Tolstoy in your Google Tag manager.

Have any questions? Feel free to send us a note to support@gotolstoy.com.


​
​

Did this answer your question?