Site logo

Archived topic

Adding a JS Code Snippet

3 replies · Started by Jeff on November 22, 2021

Viewing posts 1–4 of 4

I'm trying to install a social proof site widget and the instructions are the following:

Copy and paste the following JS Code Snippet before the end of the </head> of your website.

<!-- Pixel Code-->
<script async src="XXXXXXXXX"></script>
<!-- END Pixel Code →

What's the best way to add this code snippet? Would it be to create a new Hook in Elements, then select wp_head? Do I check Execute Shortcodes or PHP? How do I determine what priority to use?

Thanks!

Hi there,

thats correct:

1. New Element >> Hook Element
2. Select wp_head hook
3. Leave the priority as the default - it shouldn't matter in this case.
4. No need to check execute PHP or Shortcodes as its a Javascript.

Make sure to set the Display Rules to where you want the pixel to be added

thank you

You're welcome

This archived topic is closed to new replies.