Site logo

Archived topic

Google analytics and Facebook pixel

5 replies · Started by Melanie Swan on March 20, 2019

Viewing posts 1–6 of 6

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

Hi there,

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

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

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

Thank you David 😄

You're welcome

This archived topic is closed to new replies.