Insert Google Tag Manager with Elementor

It is not necessary to access the code in the head of the WordPress theme or install a new plugin.

Including JavaScript with Elementor in WordPress is very easy.

In the admin toolbar, hover the mouse over the Elementor option, and you’ll see several options.

Look for the Custom Code option and click on it to open a new window where a table of created custom codes will be displayed, or it will be empty if none have been created yet.

To include a new custom code, click on the New Code button at the top of the window.

A new editing window will open where you must choose a name for your new custom code, the section of the document where it will be inserted: head, the beginning of the body, or the end, the code itself (provided by Google Tag Manager), and the insertion priority over other custom codes.

To insert your Tag Manager code, choose the head option with default priority 1.

Save, and it will be available on your site.

Facebook
Twitter
LinkedIn