[Resolved] Google analytics and Facebook pixel

Home Forums Support [Resolved] Google analytics and Facebook pixel

Home Forums Support Google analytics and Facebook pixel

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #844120
    Melanie Swan

    Hello,

    I have read the thread about similar topics but I would love to know how to implement this two scripts properly.

    Is there a performance and readability difference between this two methods?

    In the hook element calling one analytics and post all two script in there.

    Or calling them separately. Google analytics and one Facebook pixel?

    I would love to use wp rockets add on for hosting both scripts on my server to get better performance.

    Thanks Melanie

    GeneratePress 2.2.2
    GP Premium 1.7.8
    #844346
    David
    Staff
    Customer Support

    Hi there,

    using a separate hook for each script would have a minor impact on performance in comparison to using a single hook.

    #844658
    Melanie Swan

    Hello David, thanks for replay. In terms of readability that wouldn’t be an issue, right?

    #844663
    David
    Staff
    Customer Support

    It shouldn’t be as long as the scripts are correct then they will just print out in sequence.

    #844837
    Melanie Swan

    Thank you David 😄

    #844874
    David
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.