Add Google Tag Manager to SpaceCraft

Add Google Tag Manager to SpaceCraft

When adding Google Tag Manager (GTM) to your website, you will want to make sure it "fires" on all pages. To do this, you will need to add an HTML block to your footer with a portion of code and then the other portion you should place into the Head JS panel found under your Developer Tools area.


Obtain the GTM Tag

  1. First, you will need to create a new Google Tag Manager account. Log in to Google Tag Manager via this link: https://tagmanager.google.com
  2. Click Create Account on the top-right corner of the page to create a new Google Tag Manager account. If you've already created a Google Tag Manager account, then you'll click on your website name in the Container Name column, then skip to Step
  3. Enter the Account Name (the name of your website) and enter your website URL under Container name

  4. Under Target platform, select Web, then click Create

    You may be asked to accept the Terms of Service; check the box then click Yes.
  5. In the pop-up that appears, look at the code and in the first field box, highlight only the portion of code between. The screenshot below shows the exact highlighted code that you need. Copy the highlighted code to your clipboard. 

 

Add the GTM tag to your website

Once the code above is copied, open your SpaceCraft dashboard in a new browser tab (keep the Google Tag Manager page open in a separate window or tab, as you'll need to return to it in Step 3 below).
  1. Enter the Developer Tools, then select Head JS.

  2. Paste the copied code in the first empty line in the Head JS panel and then click Save.

  3. Go back to Google Tag Manager. Highlight the entire code in the second field box and copy it to your clipboard.

  4. Return to your SpaceCraft dashboard, and select Content at the top of the page.
  5. Select Footer on the right-hand sidebar under Global Content.

  6. Select the green (+) button at the bottom of the page or between your current content blocks, and select HTML from the menu that appears.


  7. Now, paste the code you copied earlier into the large field box of your HTML block and select the blue Save button.

  8. Select the green Publish button in the top righthand corner of the Dashboard to make your changes live on the site and your Google Tag Manager install is complete.

Optional: If you would like to verify that your pixel installation was a success, download this Google Chrome Extension and run it to verify your pixel.