Help center/Publishing & domains

Add Google Analytics or Tag Manager

Add a Google Analytics or Tag Manager ID, and a cookie banner.

You can see your live site's traffic with Google Analytics, Google Tag Manager, or both. You only need the ID Google gives you. Drome adds Google's code for you.

Add your ID#

  1. In the editor, open the site menu at the top left and choose Settings.
  2. On the General page, find Analytics.
  3. Enter your Google Analytics ID (it starts with G-), your Google Tag Manager ID (it starts with GTM-), or both.
  4. Select Save, then publish your site.

Your ID reaches your live site when you publish. See Preview and publish. The editor and previews never count as visits.

To stop, clear the field, select Save and publish again.

Where to find your ID#

  • Google Analytics: in Google Analytics, open Admin, then Data streams, and choose your web stream. The Measurement ID is at the top.
  • Google Tag Manager: in Tag Manager, the container ID is shown at the top of your workspace.

Count every page#

Your site moves between pages without reloading, so Google needs to be told to count those moves.

  • Google Analytics: in your web stream, keep Enhanced measurement on, with Page changes based on browser history events selected under Page views.
  • Google Tag Manager: use a History Change trigger for tags that should fire on every page.

If you enter both IDs, both load. If your Tag Manager container already holds a tag for the same Google Analytics property, visits are counted twice. Use one or the other for that property.

Ask visitors first#

Turn on Cookie banner to ask visitors before Google loads. It is off until you turn it on.

  • With the banner on, nothing is sent to Google until a visitor selects Accept. If they select Decline, nothing is sent on that visit or later ones.
  • With the banner off, Google loads for every visitor without asking.
  • The banner uses your site's own colors, fonts and button style.

Whether your site needs a banner depends on where your visitors are and the laws that apply to you. That decision is yours.

Let visitors change their choice#

With the banner on, Cookie preferences link gives visitors a way to open the banner again. It is on until you turn it off.

  • If your site shows a footer, a Cookie preferences link appears in it.
  • If your site has no footer, a small Cookie preferences button stays in the corner of the page.

When a visitor changes to Decline, Google stops loading from their next page. Cookies Google already set stay in their browser until they expire or the visitor clears them.

If the ID isn't accepted#

  • "Enter an ID that starts with G-" Use the Measurement ID of a Google Analytics web stream. Older IDs that start with UA- no longer work with Google Analytics.
  • "Enter an ID that starts with GTM-" Use the container ID from Tag Manager, not the account ID.

Still need help? Email support@drome.site and we’ll get back to you, or ask on Discord.