How to add Google Analytics code with Custom Layouts Module?

Custom Layouts module is available with Astra Pro. It provides hooks so that you can insert custom code at various locations on the website without editing the theme’s core files.

Please follow the steps to add Google Analytics code-

  1. Activate the Custom Layouts module from Astra Pro.
  2.  Insert the code in the Code Editor.
  3. Select Hooks layout and add wp_head action.
  4. Choose to display it on the Entire Website
  5. Publish the layout.
Not the solution you are looking for? Check other articles, or open a support ticket.