How to setup Google Tag Manager and add Analytics
Google Tag Manager is a free tool that makes it easy to add/update website tracking snippets such as conversion tracking, site analytics, remarketing, etc. without the need to edit the website source code. This is perfect for when you have advanced tracking needs or are working with a third party specialist that will need to add/edit tracking snippets on your site.
As RealtyNinja already supports standard Google Analytics to track events on your website, there is no need to use Google Tag Manager unless you have a specific need to do so. What you will find below is a generic guide on how to setup and implement Google Tag Manager on your RealtyNinja website.
Our team can help setup Google Tag Manager (GTM) for you and all we need to do this is the e-mail/password for a Google account that you own. This could be a gmail account or a Google Workspace (Formerly G Suite) e-mail account, but we need it to be able to properly setup Google Tag Manager for you. All you need to do is e-mail email@example.com with the account details (confirm they work by logging into gmail before sending) and a quick note saying that you would like us to set GTM up for you.
Step 1: Go to Google Tag Manager website and click Sign in at the top right
Step 2: Enter your Google account details and login
Step 3: Enter your new account name and click continue
Step 4: Enter your Container Information, select "Web" from the three options and click "Create"
Step 5: Read the "Terms of Service Agreement" that pops up, and then click "Yes" at the bottom left.
Step 6: In the next pop-up box, highlight all of the code and click CTRL + C to copy everything you've selected, then click the blue "OK" button
Step 6A: In a new browser tab, login to the backend of your RealtyNinja website (www.mysite.com/login), then click Settings from the top right, then click "Custom Code" .
Step 6B: Paste the Tracking Code into the appropriate "custom code" setting and save it. Read the instructions of the code snippet provided by Google. It will tell you where the snippet should be placed. For example:
- If it says "before the closing HEAD tag" (or in the HEAD tag) then paste it in the "Custom Header Code" field.
- If it says "after the opening BODY tag" then paste it in the "Custom Body Code" field.
- If it says "before the closing BODY tag" then paste it in the "Custom Footer Code" field.
Step 7: Return to your browser tab with the Google Tag Manager page open. Click "Add a new tag"
Step 8: Rename your Tag and select the Google Analytics button from the menu, then click Continue
Step 9: Select your tag type, then enter your Google Analytics Tracking ID, and follow the other instructions in the screenshot below. Click Continue at the bottom of the page once all this is complete.
(NOTE: If you do not have a Google Analytics account, follow this help document: http://support.realtyninja.com/article/28-setting-up-google-analytics)
Step 10: Select "All Pages" and click "Create Tag"
At this point, you have completed the creation of your Google Analytics Tag. Your Analytics is now a part of your new GTM "Container".