Site logo

Archived topic

Element for code

9 replies · Started by Simone on November 16, 2021

Viewing posts 1–10 of 10

Hi
How can I add my Google Analytics code to the element?
Thank you!

Hi there,

1. Create a new Hook Element.
2. Add your <script> to the Hook Content.
3. Select the Hook: wp_head
4. Set the Display Rule Location to Entire Site.

If you're using Google Tag Manager it provides a second code for adding after the Body Open tag.
If you're using GTM. Then repeat the above for the second code. And change the Hook to wp_body_open

Thank you, David!

YOu're welcome

I don't find this type of code in Google Analytics. Is there another way I can insert the code in GP theme?

What code are you trying to add ?

Code from Google Analitycs G-Z227365PZ3

This archived topic is closed to new replies.