# Google Tag Manager

### To install Zigpoll via Google Tag Manager, follow the steps below:

1. **Log into Google Tag Manager** and select your container.
2. In the left-hand menu, click **"Tags"** > **"New"**.
3. Click **"Tag Configuration"** > choose **"Custom HTML"**.
4. Paste the Zigpoll embed script into the HTML field:

   ```html
   <script type='application/javascript'>
     ;(function () {
       window.Zigpoll = {
         accountId: '$YOUR_ACCOUNT_ID'
       };

       var script = document.createElement("script");
       script.type = "text/javascript";
       script.charset = "utf-8";
       script.src = "//cdn.zigpoll.com/static/js/main.js";
       script.async = true;

       document.head.appendChild(script);
     }());
   </script>
   ```
5. Under **Triggering**, choose **"All Pages"** (or a specific page trigger if you only want Zigpoll to run on certain pages).
6. Click **"Save"** and name your tag (e.g., `"Zigpoll Embed"`).
7. Click **"Submit"** in GTM to publish your changes.
