How to Install GetButton Code Using Google Tag Manager (GTM)
Google Tag Manager (GTM) provides a convenient way to insert custom code, such as the GetButton code, into your website without needing direct access to your site’s codebase. Follow these easy steps to install the GetButton code via GTM:
Step-by-Step Guide to Add GetButton Code in GTM
1. Get Your GetButton Code
- Go to https://admin.getbutton.io/.
- Click on the three dots next to your button configuration.
- Click Get Code.
- Copy the JavaScript snippet provided.
2. Create a New Tag in GTM
- Sign in to your Google Tag Manager account.
- Click on Tags from the left-hand menu.
- Click on the New button.
3. Configure the Tag
- Click on the "Tag Configuration" section to open the selection menu.
- Choose Custom HTML from the available tag types.
- Paste your GetButton code into the provided text box.
4. Set a Trigger for Your Tag
- After adding the GetButton code, scroll down to the "Triggering" section.
- Click to add a trigger to specify when your GetButton code should be loaded. For GetButton, selecting All Pages is typically recommended to ensure it appears on every page.
5. Name and Save Your Tag
- Provide a descriptive name for your tag, such as "GetButton Installation".
- Click Save.
6. Preview and Test
- Click Preview at the top right corner of your GTM workspace.
- Open your website in a new tab or window to test and verify that the GetButton widget appears correctly.
- Use GTM’s debug console at the bottom of your webpage to ensure the tag fires appropriately.
7. Publish Your Container
- Once satisfied, go back to Google Tag Manager and click Submit.
- Provide a brief description of changes in the submission details.
- Click Publish to make your GetButton code live on your website.
Additional Tips
- Ensure your GTM container snippet is correctly installed on your website.
- Always test extensively using GTM’s preview mode before publishing any changes.
Regularly monitor tag performance and interactions through GTM’s workspace.
If you're more comfortable following along visually, check out this help video that walks through the setup process step by step:
By following these simple steps, you can effortlessly manage your GetButton integration through Google Tag Manager, enhancing user engagement across your website.