Site logo

Archived topic

Insert GAM CODE

3 replies · Started by max on January 9, 2022

Viewing posts 1–4 of 4

Hi please help us to insert GAM Google Ads Manager code using your element features
What option at element need to choose to insert all 4 codes that we shared with you.
Thank you very much

Hi Max,

You can use a Hook element for this.
https://docs.generatepress.com/article/hooks-element-overview/

For the scripts you have to add on the head of the site, you'll have to use wp_head hook.

For the scripts on the footer, use wp_footer.

For both Hook elements, you can use "Entire site" as it's display rule location or change it to where you plan to apply this.

Note: For the codes themselves, make sure to wrap them on a <script> tag.

HI. Please help us is it correct what i'm doing right now?
i shared 4 screenshot

Hi there,

the 2) For in-article scroll mobile ad - you stated that goes in between 11th and 12h parapgraph of your page. There isn't a hook for that. A plugin like Ad Inserter can do that for you though.

How you have added the others is correct.

This archived topic is closed to new replies.