Each Geo Block service you create in our system will come with its own javascript code snippet.

This piece of javascript code needs to be placed into your Hubspot site only once. It does not need to be updated if any changes are made to the block settings.

Steps (for running redirect on all pages):

  1. Click on the Settings icon in the main navigation bar
  2. In the left sidebar menu, navigate to Website > Pages
  3. Click the Modifying dropdown menu and choose the domain you want to update
  4. Paste the JavaScript code provided in the Site Header HTML box
  5. Ensure the code is pasted on line 1 of the box before any other scripts. It must be the first code to execute
  6. Click on Save

Steps (for running redirect only on a selected page):

  1. Navigate to your page
  2. Hover over the page and click Edit
  3. In the page editor, click the Settings tab
  4. Click Advanced Options to open the Advanced Code Snippets
  5. Paste the JavaScript code provided in the Head HTML box
  6. Ensure the code is pasted on line 1 of the  box before any other scripts. It must be the first code to execute.
  7. Click on Update

More information regarding adding scripts in Hubspot can be found here

Did this answer your question?