New Landing How can we help? Themeforest Theme Support Dante Google Analytics code in the HEADER

Viewing 15 posts - 1 through 15 (of 15 total)
  • Posted in: Dante
  • #110702
    Juanma
    Member
    Post count: 27

    Hi! ¿How could I add the Google Analytics script code Not in the footer, but in the HEADER?
    Is neccesary for get report of adwords. Thanks

    #110743
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You can copy the header.php file to your child theme and add the analytics code in the head section

    – Kyle

    #193850
    edenbkks
    Member
    Post count: 6

    Hi, sorry to hijack this thread, but thought rather that than start a new one.

    I am having a problem with GA.

    I tried using the Dante’s built in setting to add the GA code and was getting “Tracking Not Installed” on the GA administration page.

    I left it 24hrs and checked again still with “Tracking Not Installed”.

    So I jumped on this forum and found this thread, have copied the header.php to my child theme and added the code to just above the </head> tag and am still receiving “Tracking Not Installed” on the GA administration page.

    Please advise, website http://www.edenbookkeeping.co.uk

    Thanks,
    Craig

    #193900
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Which analytic code are you inserting in theme options? You can try this plugin https://wordpress.org/plugins/google-analytics-for-wordpress/.
    Thanks
    Mohammad

    #197747
    edenbkks
    Member
    Post count: 6

    Just to say it all is working now no plugin required.

    It seems it takes a while (as in hours) for Google to see the code on the pages.

    Thanks,
    Craig

    #197751
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Glad it’s sorted.

    – Ed

    #218277
    alemarengo
    Member
    Post count: 695
    This reply has been marked as private.
    #218441
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Thanks for the heads up. Will forward to Ed so he can reply about it.

    -Rui

    #218454
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Have changed the output to the head tag for the next update.

    Thanks,

    – Ed

    #221385
    alemarengo
    Member
    Post count: 695

    Ok thanks Ed!
    Are you planning to release a 3.17 version of Dante?

    #221411
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Yes – will be out in the near future.

    – Ed

    #223095
    alemarengo
    Member
    Post count: 695

    H Ed!
    Sorry to bother you, do you have any news about that update you mentioned?

    #223168
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    We’re looking to send out some updates this week

    – Kyle

    #226433
    pssweany
    Member
    Post count: 1

    Hey Kyle, I was just checking out if Google Analytics was being added to the header or footer with the 3.17 update. After investigating, it looks like it’s being added to both places. When I remove the code, it isn’t on the site at all, so it doesn’t look like anything I’ve added in a child theme. Any solutions? Thanks!

    #226449
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @pssweany

    Do you have a child theme with modified templates? How did you update?

    It was definitely removed from the footer in the update, so definitely shouldn’t be showing twice.

    – Ed

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register