[Support request] Insert GAM CODE

Home Forums Support [Support request] Insert GAM CODE

Home Forums Support Insert GAM CODE

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2074775
    max

    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

    #2074813
    Elvin
    Staff
    Customer Support

    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.

    A wise man once said:
    "Have you cleared your cache?"

    #2074959
    max

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

    #2075206
    David
    Staff
    Customer Support

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.