Support » Plugin: SOGO Add Script to Individual Pages Header Footer » How to get the sitewide script to come BEFORE the individual page script?

  • Resolved jenclickspring

    (@jenclickspring)


    Hi,

    I want to use this plugin for Google conversion tracking and the page script needs to come AFTER the sitewide global tag. But upon looking at the source code, it looks like the sitewide global tag is inserted after the page script. It needs to be the other way around. Any idea how I can switch the order?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author SOGO

    (@orenhav)

    Hi,

    how do you insert the global tag?

    BR
    Oren

    Hello,

    I have the same issue as the original poster.

    I have the Google AdWords & Google Analytics script which needs to be on all pages/posts added via the Settings > Header Footer Settings (this is part of your plugin). I’ve then gone to the thank you page and added the conversion code to the SOGO “add script / style to be added to the header of the page” box, but the conversion code appears before the Google AdWords & Google Analytics code.

    Google says it should appear right after the global site code. How can we force the individual page scripts to be below the site wide scripts?

    Many thanks.
    Fiona

    • This reply was modified 6 months, 1 week ago by fiona01.
    • This reply was modified 6 months, 1 week ago by fiona01.
    • This reply was modified 6 months, 1 week ago by fiona01.
    Plugin Author SOGO

    (@orenhav)

    Hi Fiona,

    We released a new version now that support it

    BR
    Oren

    fiona01

    (@fiona01)

    Thank you for making some changes, however even though I have updated your plugin the code is still appearing above the global site code. Is there a tick box I’ve missed? Can you provide instructions on how I can get the individual conversion code appearing below the site wide Google Analytics and Google Tag Manager scripts that appear on all pages?

    FYI…In the SOGO section within an individual page, you still have it saying to add the conversion code to the footer, but every article I read from Google says to put it in the <head></head>.

    Plugin Author SOGO

    (@orenhav)

    we have add the option also to the body script now, Please update the plugin and test again

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