Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1100315

    I need to add google conversion tracking scripts. 1 to the entire site (footer.php?), and 1 to my “thank you” page (page-id-734) after submitting my form. What is the easiest way to do this?

    Thanks!

    #1100525

    Hey cheerema,

    You probably need functions for that, what code are you looking to add and where? We can’t guess if the code should go in the footer or not, you need to know where it should go.

    Best regards,
    Rikard

    #1100633

    Thanks for the reply. I left the code below that needs to go on the site. How can I accomplish this? Thanks!

    #1100842

    Hi,

    Thanks for that. Should they go in the header, footer, or just after the opening body tag?

    Best regards,
    Rikard

    #1101099

    It looks like the sitewide tag can go anywhere between the head tags. The conversion page tag can be placed directly after the sitewide script, but only on my thank you page.

    Google doc about these tags: https://support.google.com/google-ads/answer/6331314?hl=en

    Thanks for the help!

    #1101864

    I really need to get this accomplished, please help. I’ve added my development site info below if you are able to make the changes there and test this out?

    The sitewide script goes after the page title before closing the head tag.

    The conversation script goes between the body tags on the thank you page is page-id-9475.

    Thanks for the help!!

    #1102679

    Hi,

    Thank you for using Enfold.

    Have you tried adding the gtag function or script inside a code block element? It doesn’t really have to be located before the closing tag.

    Best regards,
    Ismael

    #1102889

    Thanks for getting back to me Ismael. I believe that worked fine for the conversion page. Thanks! How exactly should I add the sitewide script? Do I copy the parent theme footer.php via FTP to my child theme folder and them add only my google script to the child footer.php file or do I need to duplicate the entire contents from the parent theme? Thanks.

    #1103797

    Hi,

    Yes, the solution you provided is correct :)

    Best regards,
    Basilis

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