Install BugHerd in Google Tag Manager
- Last updated on February 15, 2021 at 11:22 PM
To install BugHerd in Google Tag Manager you need:
- A working Google Tag Manager container.
- An active BugHerd account and project, and
- The javascript code from your BugHerd project.
Copy the javascript code from your BugHerd project
- Open BugHerd and go to your Task Board.
- Click on Project Settings and select Install BugHerd.
The Install BugHerd window appears.
- From the Install Javascript code tab, copy the javascript code.
You'll need this code for Step 6 of the installation instructions below.
To install BugHerd in Google Tag Manager
- Log in to Google Tag Manager.
- From your container workspace, select Add a new tag.
- In the slide out window, name the tag BugHerd.
- Click Tag Configuration.
- From the Tag types, select Custom HTML.
- Paste your BugHerd javascript code from earlier into the HTML box (see below)
- You need to add a trigger, so click the Triggering box.
- To add a new trigger, click the (+) button in the top right corner.
- Select Page View from the list of triggers.
- Choose All Page Views so BugHerd appears on all pages of your website. (recommended)
You can choose to only show BugHerd on some pages by selecting Some Page Views.
- Save the trigger. To add the trigger to your tag, click Add.
- The trigger is added to your Tag as below.
- Save your tag. In your workspace, you can see the tag and trigger listed.
- Click Submit to publish your changes. You can now view BugHerd on your website.
If BugHerd does not appear, you may need to do a hard refresh.