Help Center Build with the Editor Universal settings Add Google Analytics and Google Tag Manager to Elementor

Add Google Analytics and Google Tag Manager to Elementor

Last Update: October 1, 2026

You may use the Elementor Custom code feature to easily add your Google Tracking codes. You may also use the display conditions to target certain pages for events.

pasted-image-1790440452278
  1. Navigate To Elementor > Editor from the WordPress Dashboard.

  2. Navigate to the Code option under the Custom Elements section from the Sidebar.

  3. Create A New Custom Code by clicking on “New Code“, and name it Google Analytics (or as desired)

    pasted-image-1790440513651
  4. Paste the code that you obtain from Google into the main content region of the Custom Code editor

  5. Select the location of the code to load at the header <head>

  6. Set the display conditions to Entire Site, or a selected landing page if needed.

For more info click here.

To add Google Adsense to Elementor, use the HTML widget to enter the code provided to you by Google. 

Have more questions?

Can’t find the answers you’re looking for? We’re more than happy to assist.

Contact support

Related Articles

On this page

Share this article