[Resolved] Adding email marketing tracking code

Home Forums Support [Resolved] Adding email marketing tracking code

Home Forums Support Adding email marketing tracking code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1538600
    Charles

    Hi there,

    I’m looking to add some tracking code for my email marketing. I need to add it before the close of the body tag. How would I do this with elements?

    Thanks in advance.

    Charles

    #1538660
    David
    Staff
    Customer Support

    Hi there,

    you can use the Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    There are three core WP hooks for this purpose:

    wp_head – inside the <header></header>
    wp_body_open – immediately after the opening <body> tag
    wp_footer – before the closing </body> tag

    For your need you would use the wp_footer

    Make sure you set the Hook Elements displays to where you want that code to be applied.

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