Skip to main content
Frank
Product Guru
May 31, 2018

Adding Third-party Scripts to Your Community (Google Analytics)

  • May 31, 2018
  • 23 replies
  • 2767 views

Do you want to empower your community with external services such as Google Analytics, Surveymonkey or Optimizely? Read on, because in this How To you’ll learn how to add these with the help of our Third-party Scripts feature.

 

How to add Third-party Scripts to your community

  1. Copy the code from a third-party that you want to add to the community.
  2. Administrators go to ControlCustomizationThird-party Scripts.
  3. Paste the code in the area where you want to add the code: in the <head> after the opening <body> or before the closing </body>
  4. Hit Save changes, and you’re done. The script is now injected globally, in all pages of your community.

 

Examples

How to add Google Analytics to your community

  1. Log in to Google Analytics and go to Admin
  2. In the column Account select an account
  3. In the column Property go to Tracking Info Tracking Code
  4. Copy the tracking code (gtag.js)
  5. Go to ControlCustomizationThird-party Scripts
  6. Paste the code in the <HEAD>area
  7. Hit Save changes, and you’re done. Google Analytics is now added to your community.


How to add Google Tag Manager to your community

  1. Log in to Google Tag Manager and click on your Container Name
  2. Click on the GTM Tracking ID (GTM-123ABC)
  3. Copy the tracking codes (2 codes)
  4. Go to Control CustomizationThird-party Scripts
  5. Paste the code in the < HEAD> area and after < BODY> area
  6. Hit Save changes, and you’re done. Google Tag Manager is now added to your community.

 

Supported services

  • Google Analytics
  • Google Tag Manager
  • Adobe Analytics
  • Atlassian Statuspage
  • Survey Monkey
  • Optimizely
  • Many more…

Note:

  • We recommend to test adding third-party scripts to your staging environment first, before adding scripts to your production community.
  • ​We recommend to add scripts before the closing tag. This way they will have the least impact on your community’s performance.
  • ​​​​​​We recommend inviting a professional web developer to help you add third-party scripts. Use any custom code at your own risk, and proceed with extreme caution — inSided support won’t be able to assist you with issues related to third-party scripts.

23 replies

alan.edwards
Contributor ⭐️⭐️⭐️
August 18, 2025

Hey ​@jvdc

Our site doesnt require users to be logged in so I do see a lot of “(not set)”, i haven't drilled in to the data to see if i am getting “not set” in areas where i know users need a login. May need to check this.

 

I only use GA4, nothing in GTM.

 

Created custom dimensions:

  • Scope: User
  • User property: community_user_id

 

jvdc
Expert ⭐️
August 18, 2025

Hey ​@alan.edwards , cool thanks. For us, everything is behind a login. If you have the occasion I'd be curious to hear what you find out.

I wonder if when GA4 collects data the Insided.Data isn't always ready...

alan.edwards
Contributor ⭐️⭐️⭐️
August 18, 2025

Hey ​@alan.edwards , cool thanks. For us, everything is behind a login. If you have the occasion I'd be curious to hear what you find out.

I wonder if when GA4 collects data the Insided.Data isn't always ready...

Or maybe the user has disabled/rejected cookie tracking.. I'm no expert.