Support » Plugin: Head & Footer Code » How to edit an individual post’s head section

  • Resolved passiveinc

    (@passiveinc)


    Hi,

    I want to add Google conversion tracking to some buttons on my WordPress post pages.

    Regarding the global site tag, Google Ads tells me “Copy the tag below and paste it in between the <head></head> tags of every page of your website. You only need to install the global site tag once per account, even if you are tracking multiple actions.”
    -> For this, I used the Header & Footer Plugin and copied to provided code snippet into the plugin’s tab “Head and footer” in the box “ON EVERY PAGE”. I think, this should be fine.

    My question is however on the event snippet. Google Ads tells me “Copy the snippet below and paste it in between the <head></head> tags of the page(s) you’d like to track, right after the global site tag. Then, call gtag_report_conversion when someone clicks on the chosen link or button.”

    Question: How to I edit the head section of an individual posts page with the plugin?

    Thanks,
    Paul

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Aleksandar Urošević

    (@urkekg)

    Hello @passiveinc,

    Thank you for choosing Head & Footer Code for your website!

    To achieve what you wish, first make sure that you have enabled proper Post Types in “Article specific Head and Footer Code” section on plugin settings.
    Then edit individual post/page where you have to insert additional code, in Head & Footer Code metabox choose method to “append code to site-wide code”, and insert additional Google code snippet to HEAD section of post/page.
    Then save changes on page and that’s it.

    Please let me know if this answer your question well?

    Kind regards,
    Aleksandar

    Hi Aleksander,

    thank you for your quick response. I was checking but was not able to find the “Article specific Head and Footer Code” section.

    I checked under Settings -> Header and Footer was am not sure where to define the post types. Can you please elaborate?

    Thanks
    Paul

    Plugin Author Aleksandar Urošević

    (@urkekg)

    Hi @passiveinc,

    Please check out bottom of this screenshot (plugin settings) https://ps.w.org/head-footer-code/assets/screenshot-2.png?rev=2252335 – there you has to enable article-specific HFC.

    Than, on page/post edit there will be HFC metabox like on this screenshot https://ps.w.org/head-footer-code/assets/screenshot-3.png?rev=2252335

    Please let me know if you need further clarification.

    Kind regards,
    Aleksandar

    Hi Aleksander,

    thanks for the screenshot. I checked, but under Tools I find no section “Head & Footer Code”. I am using Version 3.1.6 of the plugin.

    Is there another option to activate the Article specific Head and Footer Code?

    Regards,
    Paul

    Plugin Author Aleksandar Urošević

    (@urkekg)

    Hi @passiveinc,

    Then you obviously does not use our plugin Head & Footer Code as latest version is 1.1.0.

    For further support here please replace your plugin with Head & Footer Code form https://wordpress.org/plugins/head-footer-code/

    Thank you for understanding,
    Aleksandar

    Thanks Alexander, I just realized that I am using the right plugin. 🙂
    So the menus looked little bit different but now I found the Article specific head and footer code.

    But when I click on “Posts” in the menu, I do not find the meta box to the head section. Can you help me finding it for my individual posts?

    • This reply was modified 1 month, 1 week ago by passiveinc.

    @urkekg Hope you saw my post even though I by accident marked the post as resolved.

    Plugin Author Aleksandar Urošević

    (@urkekg)

    Hi @passiveinc,

    I have recorded detailed video for Head & Footer Code plugin. Please check it here https://youtu.be/Gd41Dv09UC4

    Hopefully this will help you to find where elements are.
    Please let me know if this was helpful for you?

    Kind regards,
    Aleksadnar

    Thanks Aleksander, I will check it.

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